tqec.circuit.qubit#
Defines GridQubit
and helper functions to manage qubits.
This module defines a central class to represent a qubit placed on a
2-dimensional grid, GridQubit
, and a few functions to extract
qubit-related information from stim.Circuit instances.
Functions
|
Count the number of times a given qubit is used by an instruction that is not an annotation. |
|
Returns the indices of qubits that are used by at least one non- annotation instruction. |
Classes
|
Represent a qubit placed on a 2-dimensional grid. |