Implementations¶
Gate base¶
A custom gate implementation must derive from the gate_base
class.
-
class
gate_base
¶ Simple class to hold information about the operation of a gate.
Subclassed by tweedledum::io3_gate, tweedledum::mcmt_gate
Custom gates¶
All gate implementations are located in tweedledum/gates/:
Interface method |
io3_gate |
mcmt |
---|---|---|
Constants |
||
|
3 |
32 |
|
32 |
|
Properties |
||
|
✓ |
✓ |
|
✓ |
✓ |
Iterators |
||
|
✓ |
✓ |
|
✓ |
✓ |
Networks¶
All network implementations are located in tweedledum/networks/:
Interface method |
netlist |
gate graph (gg) |
---|---|---|
I/O and ancillae qubits |
I/O and ancillae qubits |
|
|
✓ |
✓ |
|
✓ |
✓ |
|
||
Properties |
Properties |
|
|
✓ |
✓ |
|
✓ |
✓ |
Structural properties |
Structural properties |
|
|
✓ |
✓ |
|
✓ |
✓ |
|
✓ |
✓ |
|
✓ |
✓ |
Iterators |
Iterators |
|
|
✓ |
✓ |
|
✓ |
✓ |
|
✓ |
✓ |
|
✓ |
✓ |
|
✓ |
✓ |
|
✓ |
✓ |
|
✓ |
✓ |
Node iterators |
Node iterators |
|
|
✓ |