surface_sim.circuit_blocks.small_stellated_dodecahedron_code.init_qubits#

init_qubits(model, layout, detectors, data_init, rot_basis=False)[source]#

Returns stim circuit corresponding to a logical initialization of the given model. The ancilla qubits are also initialized in the correct basis for the case anc_reset = False.

By default, the logical measurement is in the Z basis. If rot_basis, the logical measurement is in the X basis.