surface_sim.util.merge_circuits#
- merge_circuits(*circuits)[source]#
Returns a circuit in which the given circuits have been merged following the TICK blocks.
The number of operations between TICKs must be the same for all qubits. The circuit must not include any measurement because if they get moved, then the
rec[-i]indexes do not work.- Parameters:
- *circuits
Circuits to merge.
- Returns:
- merged_circuit
Circuit from merging the given circuits.