iqm.benchmarks.compressive_gst.mgst.qiskit_interface.add_idle_gates#
- iqm.benchmarks.compressive_gst.mgst.qiskit_interface.add_idle_gates(gate_set: list[IQMCircuit], active_qubits: list[int], gate_qubits: list[list[int]]) list[IQMCircuit]#
Add additional idle gates to a gate set.
Each gate in the output gate_set acts on exactly the number of qubits on which the GST experiment ist defined. For instance if the GST experiment is supposed to be run on qubits [0,1,2], then a X-Gate on the 0-th qubit turns into X otimes Idle otimes Idle. This representation is needed for the internal handling in mGST.
- Parameters:
gate_set (list[IQMCircuit]) – Each element is a gate to be used for GST, stored as a circuit.
active_qubits (list[int]) – Specifies the list of qubits on which GST-circuits are run.
gate_qubits (list[list[int]]) – The i-th elements in the active_qubit list specifies on which qubits the original i-th gate in the input gate set is supposed to act.
- Returns:
The output gate set with added idle gates.
- Return type: