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. If set toNone
this will return the names for any globally defined operations in the target.- Returns
The set of operation names that apply to the specified qargs`.
- Return type
set
- Raises
KeyError – If qargs is not in target