QuISP
Loading...
Searching...
No Matches
quisp_test::backends::graph_state::Backend Class Reference

#include <test.h>

Inheritance diagram for quisp_test::backends::graph_state::Backend:
Collaboration diagram for quisp_test::backends::graph_state::Backend:

Public Member Functions

 Backend (std::unique_ptr< IRandomNumberGenerator > rng, std::unique_ptr< StationaryQubitConfiguration > config)
 
IQubitcreateQubit (int id)
 
IQubitgetQubit (int id)
 
IQubitcreateQubitInternal (const IQubitId *id)
 
IQubitgetQubitInternal (const IQubitId *id)
 
- Public Member Functions inherited from quisp::backends::graph_state::GraphStateBackend
 GraphStateBackend (std::unique_ptr< IRandomNumberGenerator > rng, std::unique_ptr< StationaryQubitConfiguration > configuration)
 
 GraphStateBackend (std::unique_ptr< IRandomNumberGenerator > rng, std::unique_ptr< StationaryQubitConfiguration > configuration, ICallback *callback)
 
 ~GraphStateBackend ()
 
IQubitcreateQubit (const IQubitId *id, std::unique_ptr< IConfiguration > conf) override
 
IQubitcreateQubit (const IQubitId *id) override
 
IQubitcreateShortLiveQubit () override
 
IQubitgetQubit (const IQubitId *id) override
 
IQubitgetShortLiveQubit () override
 
void returnToPool (IQubit *) override
 
void deleteQubit (const IQubitId *id) override
 
std::unique_ptr< IConfigurationgetDefaultConfiguration () const override
 
const SimTime & getSimTime () override
 
void setSimTime (SimTime time) override
 
double dblrand ()
 
- Public Member Functions inherited from quisp::backends::abstract::IQuantumBackend
 IQuantumBackend ()
 
virtual ~IQuantumBackend ()
 

Additional Inherited Members

- Protected Attributes inherited from quisp::backends::graph_state::GraphStateBackend
std::unordered_map< const IQubitId *, std::unique_ptr< GraphStateQubit >, IQubitId::Hash, IQubitId::Predqubits
 
SimTime current_time
 
const std::unique_ptr< IRandomNumberGeneratorrng
 
std::unique_ptr< StationaryQubitConfigurationconfig
 
ICallbackcallback = nullptr
 
std::deque< IQubit * > short_live_qubit_pool
 
int short_live_qubit_pool_size
 

Constructor & Destructor Documentation

◆ Backend()

quisp_test::backends::graph_state::Backend::Backend ( std::unique_ptr< IRandomNumberGenerator > rng,
std::unique_ptr< StationaryQubitConfiguration > config )
inline

Member Function Documentation

◆ createQubit()

IQubit * quisp_test::backends::graph_state::Backend::createQubit ( int id)
inline

◆ createQubitInternal()

IQubit * quisp_test::backends::graph_state::Backend::createQubitInternal ( const IQubitId * id)
inline

◆ getQubit()

IQubit * quisp_test::backends::graph_state::Backend::getQubit ( int id)
inline

◆ getQubitInternal()

IQubit * quisp_test::backends::graph_state::Backend::getQubitInternal ( const IQubitId * id)
inline

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