surface_sim.experiments.rot_surface_code_xzzx_google.memory_experiment#

memory_experiment(model, layout, detectors, num_rounds, data_init, anc_detectors=None, rot_basis=False, gauge_detectors=True)[source]#

Returns the circuit for running a memory experiment.

Parameters:
model

Noise model for the gates.

layout

Code layout.

detectors

Detector definitions to use.

num_rounds

Number of QEC round to run in the memory experiment.

data_init

Bitstring for initializing the data qubits.

rot_basis

If True, the memory experiment is performed in the X basis. If False, the memory experiment is performed in the Z basis. By deafult False.

anc_detectors

List of ancilla qubits for which to define the detectors. If None, adds all detectors. By default None.

gauge_detectors

If True, adds gauge detectors (coming from the first QEC round). If False, the resulting circuit does not have gauge detectors. By default True.