tqec.circuit#
Defines core classes and functions to represent and manipulate quantum circuits.
This package defines the core class ScheduledCircuit
that is used to represent a quantum circuit in the tqec library. It also
defines a few core functions:
generate_circuit()
that takes aTemplate
instance and a description of plaquettes via aPlaquettes
instance and generates aScheduledCircuit
instance that corresponds to the circuit described.merge_scheduled_circuits()
that is a function that helps merging severalScheduledCircuit
instances containing gates that are potentially scheduled at the same time (but not on the same qubits).
Functions from this package are really the backbone of the tqec
library and are re-used in higher-level packages (such as tqec.compile
).
Functions
|
Merge several |
Classes
|
Represent a bijection between |
|
Represent a quantum circuit with scheduled moments. |
Exceptions