Maestro 0.1.0
Unified interface for quantum circuit simulation
Loading...
Searching...
No Matches
Circuits Namespace Reference

Classes

class  Circuit
 Circuit class for holding the sequence of operations. More...
class  ComparableCircuit
 Circuit class for holding the sequence of operations that can be compared with another circuit. More...
class  ICondition
 Interface for a condition. More...
class  EqualCondition
 Condition that checks if the bits are equal to a given value. More...
class  IConditionalOperation
 An operation conditioned on classical values. More...
class  ConditionalGate
 A conditional quantum gate. More...
class  ConditionalMeasurement
 A conditional measurement. More...
class  ConditionalRandomGen
 A conditional random generator. More...
class  Converter
 The converter class. More...
class  CircuitFactory
 Factory for quantum gates and other operations. More...
class  MeasurementOperation
 Measurement operation class. More...
class  OperationState
 The state class that stores the classical state of a quantum circuit execution. More...
class  IOperation
 The operation interface. More...
class  NoOperation
 The no operation. More...
class  IGateOperation
 The gate operation interface. More...
class  IQuantumGate
 The interface for quantum gates. More...
class  SingleQubitGate
 The interface for single qubit quantum gates. More...
class  TwoQubitsGate
 The interface for two qubits quantum gates. More...
class  ThreeQubitsGate
 The interface for three qubits quantum gates. More...
class  PhaseGate
 The phase gate. More...
class  XGate
 The X gate. More...
class  YGate
 The Y gate. More...
class  ZGate
 The Z gate. More...
class  HadamardGate
 The Hadamard gate. More...
class  SGate
 The S gate. More...
class  SdgGate
 The S dagger gate. More...
class  TGate
 The T gate. More...
class  TdgGate
 The T dagger gate. More...
class  SxGate
 The Sx gate. More...
class  SxDagGate
 The Sx dagger gate. More...
class  KGate
 The K gate. More...
class  RotationGate
 The rotation gate. More...
class  RxGate
 The Rx gate. More...
class  RyGate
 The Ry gate. More...
class  RzGate
 The Rz gate. More...
class  UGate
 The U gate. More...
class  SwapGate
 The swap gate. More...
class  CXGate
 The controlled x gate. More...
class  CYGate
 The controlled y gate. More...
class  CZGate
 The controlled z gate. More...
class  CPGate
 The controlled P gate. More...
class  ControlledRotationGate
class  CRxGate
 The controlled x rotation gate. More...
class  CRyGate
 The controlled y rotation gate. More...
class  CRzGate
 The controlled z rotation gate. More...
class  CHGate
 The controlled H gate. More...
class  CSxGate
 The controlled Sx gate. More...
class  CSxDagGate
 The controlled Sx dagger gate. More...
class  CUGate
 The controlled U gate. More...
class  CCXGate
 The controlled controlled x gate. More...
class  CSwapGate
 The controlled swap gate. More...
class  Random
 Random operation. More...
class  Reset
 Reset operation class. More...

Enumerations

enum class  OperationType {
  kGate , kMeasurement , kRandomGen , kConditionalGate ,
  kConditionalMeasurement , kConditionalRandomGen , kReset , kNoOp ,
  kComposite
}
 The type of operations. More...
enum class  QuantumGateType : int {
  kPhaseGateType = 0 , kXGateType , kYGateType , kZGateType ,
  kHadamardGateType , kSGateType , kSdgGateType , kTGateType ,
  kTdgGateType , kSxGateType , kSxDagGateType , kKGateType ,
  kRxGateType , kRyGateType , kRzGateType , kUGateType ,
  kSwapGateType , kCXGateType , kCYGateType , kCZGateType ,
  kCPGateType , kCRxGateType , kCRyGateType , kCRzGateType ,
  kCHGateType , kCSxGateType , kCSxDagGateType , kCUGateType ,
  kCSwapGateType , kCCXGateType , kNone
}
 The type of quantum gates. More...

Enumeration Type Documentation

◆ OperationType

enum class Circuits::OperationType
strong

The type of operations.

Enumerator
kGate 

the usual quantum gate, result stays in simulator's state

kMeasurement 

measurement, result in 'OperationState'

kRandomGen 

random classical bit generator, result in 'OperationState'

kConditionalGate 

conditional gate, similar with gate, but conditioned on something from 'OperationState'

kConditionalMeasurement 

conditional measurement, similar with measurement, but conditioned on something from 'OperationState'

kConditionalRandomGen 

conditional random generator, similar with random gen, but conditioned on something from 'OperationState'

kReset 

reset, no result in 'state', just apply measurement, then apply not on all qubits that were measured as 1, the measurements are then discarded

kNoOp 

no operation, just a placeholder, could be used to erase some operation from a circuit

kComposite 

a composite operation, contains other operations - should not be used in the beginning, only the 'Circuit' is a composite for now

Definition at line 26 of file Operations.h.

◆ QuantumGateType

enum class Circuits::QuantumGateType : int
strong

The type of quantum gates.

Enumerator
kPhaseGateType 
kXGateType 
kYGateType 
kZGateType 
kHadamardGateType 
kSGateType 
kSdgGateType 
kTGateType 
kTdgGateType 
kSxGateType 
kSxDagGateType 
kKGateType 
kRxGateType 
kRyGateType 
kRzGateType 
kUGateType 
kSwapGateType 
kCXGateType 
kCYGateType 
kCZGateType 
kCPGateType 
kCRxGateType 
kCRyGateType 
kCRzGateType 
kCHGateType 
kCSxGateType 
kCSxDagGateType 
kCUGateType 
kCSwapGateType 
kCCXGateType 
kNone 

Definition at line 27 of file QuantumGates.h.