Maestro 0.1.0
Unified interface for quantum circuit simulation
Loading...
Searching...
No Matches
Simulators::SimulatorsFactory Class Reference

Factory for simulators. More...

#include <Factory.h>

Static Public Member Functions

static std::shared_ptr< ISimulatorCreateSimulator (SimulatorType t=SimulatorType::kQCSim, SimulationType method=SimulationType::kMatrixProductState)
 Create a quantum computing simulator.
static std::unique_ptr< ISimulatorCreateSimulatorUnique (SimulatorType t=SimulatorType::kQCSim, SimulationType method=SimulationType::kMatrixProductState)
 Create a quantum computing simulator.
static bool IsGpuLibraryAvailable ()
static bool InitGpuLibrary ()

Detailed Description

Factory for simulators.

Create either a qiskit aer or qcsim simulator.

Definition at line 33 of file Simulators/Factory.h.

Member Function Documentation

◆ CreateSimulator()

std::shared_ptr< ISimulator > Simulators::SimulatorsFactory::CreateSimulator ( SimulatorType t = SimulatorType::kQCSim,
SimulationType method = SimulationType::kMatrixProductState )
static

Create a quantum computing simulator.

Parameters
tThe type of simulator to create.
Returns
The simulator wrapped in a shared pointer.

Definition at line 78 of file Factory.cpp.

◆ CreateSimulatorUnique()

std::unique_ptr< ISimulator > Simulators::SimulatorsFactory::CreateSimulatorUnique ( SimulatorType t = SimulatorType::kQCSim,
SimulationType method = SimulationType::kMatrixProductState )
static

Create a quantum computing simulator.

Parameters
tThe type of simulator to create.
Returns
The simulator wrapped in a unique pointer.

Definition at line 135 of file Factory.cpp.

◆ InitGpuLibrary()

bool Simulators::SimulatorsFactory::InitGpuLibrary ( )
inlinestatic

Definition at line 89 of file Simulators/Factory.h.

◆ IsGpuLibraryAvailable()

bool Simulators::SimulatorsFactory::IsGpuLibraryAvailable ( )
inlinestatic

Definition at line 87 of file Simulators/Factory.h.


The documentation for this class was generated from the following files: