surface_sim.circuit_blocks.unrot_surface_code_css#

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.

log_fold_trans_s(model, layout, detectors)

Returns the stim circuit corresponding to a transversal logical S gate implemented following:

log_fold_trans_h(model, layout, detectors)

Returns the stim circuit corresponding to a transversal logical H gate implemented following the circuit show in:

log_trans_cnot(model, layout_c, layout_t, ...)

Returns the stim circuit corresponding to a transversal logical CNOT gate.

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

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

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

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

encoding_qubits_iterator(model, layout, ...)

Yields stim circuit blocks which as a whole correspond to an encoding circuit to an unrotated surface code of the given model without the detectors.