surface_sim.circuit_blocks.repetition_code#

Functions

qubit_coords(model, *layouts)

Returns a stim circuit that sets up the coordinates of the qubits.

log_meas(model, layout, detectors[, ...])

Returns stim circuit corresponding to a logical measurement of the given model.

log_meas_iterator(model, layout[, rot_basis])

Yields stim circuit blocks which in total correspond to a logical measurement of the given model without the definition of the detectors and observables.

log_x(model, layout, detectors)

Returns stim circuit corresponding to a logical X gate of the given model.

log_z(model, layout, detectors)

Returns stim circuit corresponding to a logical Z gate of the given model.

init_qubits(model, layout, detectors, data_init)

Returns stim circuit corresponding to a logical initialization of the given model.

init_qubits_iterator(model, layout, data_init)

Yields stim circuits corresponding to a logical initialization of the given model.

qec_round(model, layout, detectors[, ...])

Returns stim circuit corresponding to a QEC round of the given model.