Spanish
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.pulse.InstructionScheduleMap.qubits_with_instruction

InstructionScheduleMap.qubits_with_instruction(instruction)[fuente]

Return a list of the qubits for which the given instruction is defined. Single qubit instructions return a flat list, and multiqubit instructions return a list of ordered tuples.

Parámetros

instruction (Union[str, Instruction]) – The name of the circuit instruction.

Tipo del valor devuelto

List[Union[int, Tuple[int]]]

Devuelve

Qubit indices which have the given instruction defined. This is a list of tuples if the instruction has an arity greater than 1, or a flat list of ints otherwise.

Muestra

PulseError – If the instruction is not found.