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:
generate_circuit()
that is the most convenient method for external users.generate_circuit_from_instantiation()
that gives more freedom to the user (and is used internally bygenerate_circuit()
) at the expense of often less convenient inputs.
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 a quantum circuit from a template and its plaquettes. |
Generate a quantum circuit from an array of plaquette indices and the associated plaquettes. |