7.4. Shor Code Factory
7.4.1. Shor Code Block
The ShorCode is a simple \([9, 1, 3]\) error-correcting code that encodes a single logical qubit with \(9\) physical qubits.
from loom_shor_code.code_factory import ShorCode
from loom.eka import Lattice
lattice = Lattice.linear((10,))
# Create a block for a shor code
myLogicalqubit = ShorCode.create(
lattice=lattice,
unique_label="shor_code",
position=(0,),
)
7.4.2. Operations on Shor Code
We currently do not provide any special code operations specific to the Shor code.
The operations available are the ones defined in loom’s operations module.