|
numerics
|
Compact gate description used by visualisation code. More...
#include <circuit.hpp>
Public Attributes | |
| std::string | label |
| e.g. "H", "CX", "RY(1.57)", "SWAP" | |
| int | q0 = -1 |
| primary qubit (target for 1Q; control for 2/3Q) | |
| int | q1 = -1 |
| secondary qubit (-1 if 1Q) | |
| int | q2 = -1 |
| tertiary qubit (-1 if not 3Q) | |
| int | col = 0 |
| int | kind = 0 |
Compact gate description used by visualisation code.
Definition at line 61 of file circuit.hpp.
| int num::GateView::col = 0 |
time-slot column after layout pass
Definition at line 66 of file circuit.hpp.
Referenced by num::Circuit::views().
| int num::GateView::kind = 0 |
0 = single-qubit, 1 = controlled (q0=ctrl, q1=tgt), 2 = swap, 3 = Toffoli/Fredkin
Definition at line 69 of file circuit.hpp.
Referenced by num::Circuit::views().
| std::string num::GateView::label |
e.g. "H", "CX", "RY(1.57)", "SWAP"
Definition at line 62 of file circuit.hpp.
Referenced by num::Circuit::views().
| int num::GateView::q0 = -1 |
primary qubit (target for 1Q; control for 2/3Q)
Definition at line 63 of file circuit.hpp.
Referenced by num::Circuit::views().
| int num::GateView::q1 = -1 |
secondary qubit (-1 if 1Q)
Definition at line 64 of file circuit.hpp.
Referenced by num::Circuit::views().
| int num::GateView::q2 = -1 |
tertiary qubit (-1 if not 3Q)
Definition at line 65 of file circuit.hpp.
Referenced by num::Circuit::views().