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 36 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 77 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 145 of file Factory.cpp.

◆ InitGpuLibrary()

static bool Simulators::SimulatorsFactory::InitGpuLibrary ( )
inlinestatic

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

◆ IsGpuLibraryAvailable()

static bool Simulators::SimulatorsFactory::IsGpuLibraryAvailable ( )
inlinestatic

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


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