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:

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_scheduled_circuits(circuits, ...[, ...])

Merge several ScheduledCircuit instances into one instance.

Classes

QubitMap([i2q])

Represent a bijection between GridQubit instances and indices.

ScheduledCircuit(moments, schedule, qubit_map)

Represent a quantum circuit with scheduled moments.

Exceptions