qiskit.transpiler.Target.operation_names_for_qargs¶
- Target.operation_names_for_qargs(qargs)[source]¶
Get the operation names for a specified qargs tuple
- Parameters
qargs (tuple) – A qargs tuple of the qubits to get the gates that apply to it. For example,
(0,)
will return the set of all instructions that apply to qubit 0.- Returns
The set of operation names that apply to the specified qargs`.
- Return type
set
- Raises
KeyError – If qargs is not in target