tket
|
Architectural qubit location. More...
#include <UnitID.hpp>
Public Member Functions | |
Node () | |
Node (unsigned index) | |
Qubit in default register. | |
Node (const std::string &name, unsigned index) | |
Named register with a one-dimensional index. | |
Node (const std::string &name, unsigned row, unsigned col) | |
Named register with a two-dimensional index. | |
Node (const std::string &name, unsigned row, unsigned col, unsigned layer) | |
Named register with a three-dimensional index. | |
Node (const std::string &name, std::vector< unsigned > index) | |
Named register with a multi-dimensional index. | |
Node (const UnitID &other) | |
![]() | |
Qubit () | |
Qubit (unsigned index) | |
Qubit in default register. | |
Qubit (const std::string &name) | |
Named register with no index. | |
Qubit (const std::string &name, unsigned index) | |
Named register with a one-dimensional index. | |
Qubit (const std::string &name, unsigned row, unsigned col) | |
Named register with a two-dimensional index. | |
Qubit (const std::string &name, unsigned row, unsigned col, unsigned layer) | |
Named register with a three-dimensional index. | |
Qubit (const std::string &name, std::vector< unsigned > index) | |
Named register with a multi-dimensional index. | |
Qubit (const UnitID &other) | |
Copy constructor. | |
![]() | |
UnitID () | |
std::string | repr () const |
String representation including name and index. | |
std::string | reg_name () const |
Register name. | |
unsigned | reg_dim () const |
Index dimension. | |
std::vector< unsigned > | index () const |
Index. | |
UnitType | type () const |
Unit type. | |
register_info_t | reg_info () const |
Register dimension and type. | |
bool | operator< (const UnitID &other) const |
bool | operator> (const UnitID &other) const |
bool | operator== (const UnitID &other) const |
bool | operator!= (const UnitID &other) const |
Additional Inherited Members | |
![]() | |
UnitID (const std::string &name, const std::vector< unsigned > &index, UnitType type) | |
Architectural qubit location.
Definition at line 267 of file UnitID.hpp.
|
inline |
Definition at line 269 of file UnitID.hpp.
|
inlineexplicit |
Qubit in default register.
Definition at line 272 of file UnitID.hpp.
|
inline |
Named register with a one-dimensional index.
Definition at line 275 of file UnitID.hpp.
|
inline |
Named register with a two-dimensional index.
Definition at line 278 of file UnitID.hpp.
|
inline |
Named register with a three-dimensional index.
Definition at line 282 of file UnitID.hpp.
|
inline |
Named register with a multi-dimensional index.
Definition at line 286 of file UnitID.hpp.
|
inlineexplicit |
Definition at line 289 of file UnitID.hpp.