Maestro 0.3.1
Unified interface for quantum circuit simulation
Loading...
Searching...
No Matches
qasm::CircToQasm< Time > Class Template Reference

#include <CircQasm.h>

Collaboration diagram for qasm::CircToQasm< Time >:

Public Types

enum class  QasmGateType : size_t {
  X ,
  Y ,
  Z ,
  H ,
  S ,
  SDG ,
  Sx ,
  SxDG ,
  K ,
  T ,
  TDG ,
  Rx ,
  Ry ,
  Rz ,
  U ,
  CZ ,
  CY ,
  CH ,
  CRZ ,
  CU1 ,
  CU3 ,
  CRX ,
  CRY ,
  CS ,
  CSDAG ,
  CSX ,
  CSXDAG ,
  SWAP ,
  IncludedGate ,
  NoGate
}
enum class  QasmVersion {
  V2 ,
  V3
}

Static Public Member Functions

static std::string Generate (const std::shared_ptr< Circuits::Circuit< Time > > &circuit, QasmVersion version=QasmVersion::V2)
static std::string GenerateWithMapping (const std::shared_ptr< Circuits::Circuit< Time > > &circuit, const std::unordered_map< Types::qubit_t, Types::qubit_t > &bitsMap, QasmVersion version=QasmVersion::V2)

Detailed Description

template<typename Time = Types::time_type>
class qasm::CircToQasm< Time >

Definition at line 23 of file CircQasm.h.

Member Enumeration Documentation

◆ QasmGateType

template<typename Time = Types::time_type>
enum class qasm::CircToQasm::QasmGateType : size_t
strong
Enumerator
SDG 
Sx 
SxDG 
TDG 
Rx 
Ry 
Rz 
CZ 
CY 
CH 
CRZ 
CU1 
CU3 
CRX 
CRY 
CS 
CSDAG 
CSX 
CSXDAG 
SWAP 
IncludedGate 
NoGate 

Definition at line 30 of file CircQasm.h.

◆ QasmVersion

template<typename Time = Types::time_type>
enum class qasm::CircToQasm::QasmVersion
strong
Enumerator
V2 
V3 

Definition at line 28 of file CircQasm.h.

Member Function Documentation

◆ Generate()

template<typename Time = Types::time_type>
std::string qasm::CircToQasm< Time >::Generate ( const std::shared_ptr< Circuits::Circuit< Time > > & circuit,
QasmVersion version = QasmVersion::V2 )
inlinestatic

Definition at line 87 of file CircQasm.h.

References V2.

◆ GenerateWithMapping()

template<typename Time = Types::time_type>
std::string qasm::CircToQasm< Time >::GenerateWithMapping ( const std::shared_ptr< Circuits::Circuit< Time > > & circuit,
const std::unordered_map< Types::qubit_t, Types::qubit_t > & bitsMap,
QasmVersion version = QasmVersion::V2 )
inlinestatic

Definition at line 69 of file CircQasm.h.

References V2.


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