|
Maestro 0.1.0
Unified interface for quantum circuit simulation
|
The converter class. More...
#include <Converter.h>
Static Public Member Functions | |
| static std::shared_ptr< Circuit< Time > > | ToCircuit (const std::shared_ptr< IOperation< Time > > &operation) |
| Converts a smart pointer to the IOperation interface/base class to a smart pointer to the Circuit class. | |
| static std::shared_ptr< IQuantumGate< Time > > | ToQuantumGate (const std::shared_ptr< IOperation< Time > > &operation) |
| Converts a smart pointer to the IOperation interface/base class to a smart pointer to the QuantumGate class. | |
| static std::shared_ptr< SingleQubitGate< Time > > | ToSingleQubitGate (const std::shared_ptr< IOperation< Time > > &operation) |
| Converts a smart pointer to the IOperation interface/base class to a smart pointer to the SingleQubitGate class. | |
| static std::shared_ptr< TwoQubitsGate< Time > > | ToTwoQubitsGate (const std::shared_ptr< IOperation< Time > > &operation) |
| Converts a smart pointer to the IOperation interface/base class to a smart pointer to the TwoQubitsGate class. | |
| static std::shared_ptr< ThreeQubitsGate< Time > > | ToThreeQubitsGate (const std::shared_ptr< IOperation< Time > > &operation) |
| Converts a smart pointer to the IOperation interface/base class to a smart pointer to the ThreeQubitsGate class. | |
| static std::shared_ptr< Random< Time > > | ToRandom (const std::shared_ptr< IOperation< Time > > &operation) |
| Converts a smart pointer to the IOperation interface/base class to a smart pointer to the Random class. | |
| static std::shared_ptr< Reset< Time > > | ToReset (const std::shared_ptr< IOperation< Time > > &operation) |
| Converts a smart pointer to the IOperation interface/base class to a smart pointer to the Reset class. | |
| static std::shared_ptr< MeasurementOperation< Time > > | ToMeasurement (const std::shared_ptr< IOperation< Time > > &operation) |
| Converts a smart pointer to the IOperation interface/base class to a smart pointer to the MeasurementOperation class. | |
| static std::shared_ptr< ConditionalGate< Time > > | ToConditionalGate (const std::shared_ptr< IOperation< Time > > &operation) |
| Converts a smart pointer to the IOperation interface/base class to a smart pointer to the ConditionalGate class. | |
| static std::shared_ptr< ConditionalMeasurement< Time > > | ToConditionalMeasurement (const std::shared_ptr< IOperation< Time > > &operation) |
| Converts a smart pointer to the IOperation interface/base class to a smart pointer to the ConditionalMeasurement class. | |
| static std::shared_ptr< ConditionalRandomGen< Time > > | ToConditionalRandom (const std::shared_ptr< IOperation< Time > > &operation) |
| Converts a smart pointer to the IOperation interface/base class to a smart pointer to the ConditionalRandomGen class. | |
| static std::shared_ptr< EqualCondition > | ToEqualCondition (const std::shared_ptr< ICondition > &cond) |
| Converts a smart pointer to the ICondition interface/base class to a smart pointer to the EqualCondition class. | |
The converter class.
Contains static functions to convert smart pointers to the IOperation interface/base class to smart pointers to the derived classes.
| Time | The time type. |
Definition at line 33 of file Converter.h.
|
inlinestatic |
Converts a smart pointer to the IOperation interface/base class to a smart pointer to the Circuit class.
| operation | The operation. |
Definition at line 44 of file Converter.h.
|
inlinestatic |
Converts a smart pointer to the IOperation interface/base class to a smart pointer to the ConditionalGate class.
| operation | The operation. |
Definition at line 177 of file Converter.h.
|
inlinestatic |
Converts a smart pointer to the IOperation interface/base class to a smart pointer to the ConditionalMeasurement class.
| operation | The operation. |
Definition at line 193 of file Converter.h.
|
inlinestatic |
Converts a smart pointer to the IOperation interface/base class to a smart pointer to the ConditionalRandomGen class.
| operation | The operation. |
Definition at line 210 of file Converter.h.
|
inlinestatic |
Converts a smart pointer to the ICondition interface/base class to a smart pointer to the EqualCondition class.
| operation | The operation. |
Definition at line 227 of file Converter.h.
|
inlinestatic |
Converts a smart pointer to the IOperation interface/base class to a smart pointer to the MeasurementOperation class.
| operation | The operation. |
Definition at line 161 of file Converter.h.
|
inlinestatic |
Converts a smart pointer to the IOperation interface/base class to a smart pointer to the QuantumGate class.
| operation | The operation. |
Definition at line 60 of file Converter.h.
|
inlinestatic |
Converts a smart pointer to the IOperation interface/base class to a smart pointer to the Random class.
| operation | The operation. |
Definition at line 129 of file Converter.h.
|
inlinestatic |
Converts a smart pointer to the IOperation interface/base class to a smart pointer to the Reset class.
| operation | The operation. |
Definition at line 145 of file Converter.h.
|
inlinestatic |
Converts a smart pointer to the IOperation interface/base class to a smart pointer to the SingleQubitGate class.
| operation | The operation. |
Definition at line 76 of file Converter.h.
|
inlinestatic |
Converts a smart pointer to the IOperation interface/base class to a smart pointer to the ThreeQubitsGate class.
| operation | The operation. |
Definition at line 110 of file Converter.h.
|
inlinestatic |
Converts a smart pointer to the IOperation interface/base class to a smart pointer to the TwoQubitsGate class.
| operation | The operation. |
Definition at line 93 of file Converter.h.