surface_sim.layouts.overwrite_interaction_order#
- overwrite_interaction_order(layout, schedule)[source]#
Overwrites (in place) any existing schedule in a layout with the specified one.
- Parameters:
- layout
Layout whose schedule is going to be overwritten.
- schedule
Schedule for the syndrome extraction circuit. The format corresponds to a dictionary whose keys correspond to the ancillas in
layoutand the values correspond to a list where thei``th element specifies the data qubit that the ancilla interacts with on the ``i``th CNOT layer. If the ancilla does not interact with any data qubit, the element is ``None.