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::mcmt_gate, tweedledum::mcst_gate

Custom gates

All gate implementations are located in tweedledum/gates/:

Interface method mcst mcmt
  Constants
max_num_qubits 3 32
network_max_num_qubits   32
  Properties
num_controls
num_targets
  Iterators
foreach_control
foreach_target

Networks

All network implementations are located in tweedledum/networks/:

Interface method netlist
  I/O and ancillae qubits
add_qubit
add_ancilla  
  Structural properties
size
num_qubits
num_gates
  Iterators
foreach_cqubit
foreach_cinput
foreach_coutput
foreach_cgate
foreach_cnode