2.2. Build a Quantum Error Correction Experiment
Loom provides a high-level abstraction dataclass, named Eka, to work with the stabilizers for your quantum error correction code. The tool can be accessed via the Eka package.
from loom.eka import Eka
The Eka class takes in three inputs — a Lattice object, a list of Block objects, and a list of Operation objects — and builds all of the necessary components for the experiment.
eka_obj = Eka(
lattice=...,
blocks=[...],
operations=[...],
)
This provides a simple yet compact representation of a logical circuit, though the logical circuit needs to be interpreted before it can be executed using a backend.
To learn more about using Eka, please refer to the Eka Architecture documentation.
To proceed on to visualization features, please refer to the Visualize stabilizers and qubits documentation.
To learn more about backends and interpretation, please refer to the Run an experiment documentation.