6.4. Shor Code Factory

6.4.1. Shor Code Block

The Shor code 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,),
)

6.4.2. Operations on Shor Code

We currently do not provide any special code operations specific to the Shor code. The only operations available are the ones that already apply to all Block objects in Loom.