surface_sim.layouts.repetition_stability#

repetition_stability(num_stabs, stab_type, observable='O0', init_point=(1, 1), init_data_qubit_id=1, init_zanc_qubit_id=1, init_xanc_qubit_id=1, init_ind=0, interaction_order='shallow')[source]#

Generates a repetition layout for stability experiments.

Parameters:
stab_type

Stabilizer type for the repetition layout: "x_type" or "z_type".

num_stabs

Number of stabilizers that this layout will contain. Note that all stabilizers will be of type stab_type.

observable

Label for the observable, by default "L0".

init_point

Coordinates for the bottom left (i.e. southest west) data qubit. By default (1, 1).

init_data_qubit_id

Index for the bottom left (i.e. southest west) data qubit. By default 1, so the label is "D1".

init_zanc_qubit_id

Index for the bottom left (i.e. southest west) Z-type ancilla qubit. By default 1, so the label is "Z1".

init_xanc_qubit_id

Index for the bottom left (i.e. southest west) X-type ancilla qubit. By default 1, so the label is "X1".

init_ind

Minimum index that is going to be associated to a qubit.

interaction_order

There are two options for interaction order: "shallow" and "surface_code". The "shallow" one corresponds to two two-qubit-gate layers, while the "surface_code" one corresponds to the same schedule as the surface code layout (mimic what it is usually done in experiments). By default "shallow".

Returns:
Layout

The layout.