tqec.circuit.generation#

Defines generate_circuit(), one of the core method of the tqec package.

This module defines two of core methods of the tqec package:

Both of these methods are used to generate the stim.Circuit instance representing one time slice (often equivalent to “one QEC round”). Users are expected to call these methods several times and concatenate the output stim.Circuit instances in time to obtain a full QEC implementation.

Note that these methods do not work with REPEAT instructions.

Functions

generate_circuit(template, k, plaquettes)

Generate a quantum circuit from a template and its plaquettes.

generate_circuit_from_instantiation(...)

Generate a quantum circuit from an array of plaquette indices and the associated plaquettes.