qiskit.transpiler.Target.operations_for_qargs¶
- Target.operations_for_qargs(qargs)[소스]¶
Get the operation class object for a specified qargs tuple
- 매개변수
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 any globally defined operations in the target.- 반환
The list of
Instruction
instances that apply to the specified qarg. This may also be a class if a variable width operation is globally defined.- 반환 형식
list
- 예외 발생
KeyError – If qargs is not in target