tket
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tket::Node Class Reference

Architectural qubit location. More...

#include <UnitID.hpp>

Inheritance diagram for tket::Node:
Inheritance graph
[legend]
Collaboration diagram for tket::Node:
Collaboration graph
[legend]

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)
 
- Public Member Functions inherited from tket::Qubit
 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.
 
- Public Member Functions inherited from tket::UnitID
 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

- Protected Member Functions inherited from tket::UnitID
 UnitID (const std::string &name, const std::vector< unsigned > &index, UnitType type)
 

Detailed Description

Architectural qubit location.

Definition at line 267 of file UnitID.hpp.

Constructor & Destructor Documentation

◆ Node() [1/7]

tket::Node::Node ( )
inline

Definition at line 269 of file UnitID.hpp.

◆ Node() [2/7]

tket::Node::Node ( unsigned  index)
inlineexplicit

Qubit in default register.

Definition at line 272 of file UnitID.hpp.

◆ Node() [3/7]

tket::Node::Node ( const std::string &  name,
unsigned  index 
)
inline

Named register with a one-dimensional index.

Definition at line 275 of file UnitID.hpp.

◆ Node() [4/7]

tket::Node::Node ( const std::string &  name,
unsigned  row,
unsigned  col 
)
inline

Named register with a two-dimensional index.

Definition at line 278 of file UnitID.hpp.

◆ Node() [5/7]

tket::Node::Node ( const std::string &  name,
unsigned  row,
unsigned  col,
unsigned  layer 
)
inline

Named register with a three-dimensional index.

Definition at line 282 of file UnitID.hpp.

◆ Node() [6/7]

tket::Node::Node ( const std::string &  name,
std::vector< unsigned >  index 
)
inline

Named register with a multi-dimensional index.

Definition at line 286 of file UnitID.hpp.

◆ Node() [7/7]

tket::Node::Node ( const UnitID other)
inlineexplicit

Definition at line 289 of file UnitID.hpp.


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