mqt.qecc.codes.constructions.color_codes.square_octagon_color_code

Square Octagon Color Code. Created by Peter-Jan Derks.

Classes

SquareOctagonColorCode

4.8.8 triangular colour code.

Module Contents

class SquareOctagonColorCode(distance: int)[source]

Bases: mqt.qecc.codes.constructions.color_codes.color_code.ColorCode

4.8.8 triangular colour code.

add_qubits() → None[source]

Add qubits to the code.

even_ancilla_qubit_row(x_max: int, y: int) → None[source]

Create even ancilla qubits.

odd_ancilla_qubit_row(x_max: int, y: int) → None[source]

Create odd ancilla qubits.

even_data_qubit_row(x_max: int, y: int) → None[source]

Create even data qubits.

odd_data_qubit_row(x_max: int, y: int) → None[source]

Create odd data qubits.

bottom_row_ancillas() → None[source]

Create ancilla qubits on the bottom row of the lattice.

construct_layout() → None[source]

Construct the layout of the code.