tqec.plaquette.plaquette.Plaquette

class Plaquette(qubits: PlaquetteQubits, circuit: ScheduledCircuit)[source]
__init__(qubits: PlaquetteQubits, circuit: ScheduledCircuit) None[source]

Represents a QEC plaquette.

This class stores qubits in the plaquette local coordinate system and a scheduled circuit that should be applied on those qubits to perform the QEC experiment.

By convention, the local plaquette coordinate system is composed of a X-axis pointing to the right and a Y-axis pointing down.

Parameters:
  • qubits – qubits used by the plaquette circuit, given in the local plaquette coordinate system.

  • circuit – scheduled quantum circuit implementing the computation that the plaquette should represent.

Raises:

TQECException – if the provided circuit uses qubits not in the list of PlaquetteQubit.

Methods

__init__(qubits, circuit)

Represents a QEC plaquette.

get_mergeable_tag()

Attributes

circuit

measurements

origin

qubits