loom.eka.stabilizer
Copyright (c) Entropica Labs Pte Ltd 2025.
Use, distribution and reproduction of this program in its source or compiled form is prohibited without the express written consent of Entropica Labs Pte Ltd.
- class loom.eka.stabilizer.Stabilizer(*args, **kwargs)[source]
Bases:
PauliOperatorA stabilizer, representing the parity of a set of data qubits in the basis as defined in pauli.
- Parameters:
pauli (str) – The Pauli string of the stabilizer, i.e. in which basis the data qubits are included in the stabilizer.
data_qubits (tuple[tuple[int, ...], ...]) – Data qubits involved in the stabilizer. They are referred to by their coordinates in the lattice.
uuid (str) – Unique identifier of the stabilizer. This is automatically set to a random UUID.
ancilla_qubits (tuple[tuple[int, ...], ...], optional) – Ancilla qubits involved in the stabilizer. They are referred to by their coordinates in the lattice. Default is an empty tuple.
-
ancilla_qubits:
tuple[tuple[int,...],...] = FieldInfo(annotation=tuple[tuple[int, ...], ...], required=False, default_factory=tuple, validate_default=True)
-
uuid:
str= FieldInfo(annotation=str, required=False, default_factory=<lambda>, validate_default=True)