qiskit.transpiler.Target.operation_names_for_qargs¶
- Target.operation_names_for_qargs(qargs)[source]¶
Get the operation names for a specified qargs tuple
- Paramètres
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.- Renvoie
The set of operation names that apply to the specified qargs`.
- Type renvoyé
set
- Lève
KeyError – If qargs is not in target