surface_sim.experiments.rot_surface_code_xzzx.memory_experiment_google#
- memory_experiment_google(model, layout, detectors, num_rounds, data_init=None, rot_basis=False, anc_detectors=None)[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. By default
Nonemearning that it initializes the qubits using the reset given bygate_to_iterator.- rot_basis
If
True, the memory experiment is performed in the X basis. IfFalse, the memory experiment is performed in the Z basis. By deafultFalse.- anc_detectors
List of ancilla qubits for which to define the detectors. If
None, adds all detectors. By defaultNone.