Japanese
言語
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

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 to None 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