Maestro 0.2.5
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
}
 

Static Public Member Functions

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

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 25 of file CircQasm.h.

Member Function Documentation

◆ Generate()

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

Definition at line 81 of file CircQasm.h.

◆ GenerateWithMapping()

template<typename Time = Types::time_type>
static 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 
)
inlinestatic

Definition at line 64 of file CircQasm.h.


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