6.1. Five Qubit Perfect Code Factory
6.1.1. Five Qubit Perfect Code Block
The five qubit perfect code is a simple \([5, 1, 3]\) error-correcting code that encodes a single logical qubit with \(5\) physical qubits.
from loom_five_qubit_perfect_code.code_factory import FiveQubitPerfectCode
from loom.eka import Lattice
lattice = Lattice.poly_2d((10, 10), 5, anc=4)
# Create a block for a five qubit perfect code
myLogicalqubit = FiveQubitPerfectCode.create(
lattice=lattice,
unique_label="five_qubit_perfect_code",
position=(0, 0),
)
6.1.2. Operations on Five Qubit Perfect Code
We currently do not provide any special code operations specific to the Five Qubit Perfect Code. The only operations available are the ones that already apply to all Block objects in Loom.