surface_sim.circuit_blocks.rot_surface_code_css.init_qubits_iterator#

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

Yields stim circuits corresponding to a logical initialization of the given model. By default, the logical initialization is in the Z basis. If rot_basis, the logical initialization is in the X basis.