Skip to main content
IBM Quantum Platform
翻訳情報

このページの追加言語翻訳は近日公開予定です。

Wire

qiskit_paulice.wire

Wires: the stretches of a qubit’s timeline between consecutive gates.

Wire

class Wire(qubit, after_instruction)

GitHub

Bases: NamedTuple

A stretch of one qubit’s timeline between two consecutive gates on that qubit.

Barriers and measurements are not gates, so they do not start or end a wire.

qubit

Index of the qubit.

Type

int

after_instruction

Index into QuantumCircuit.data of the gate on qubit that the wire follows. None denotes the qubit’s input wire, before its first gate.

Type

int | None

Create new instance of Wire(qubit, after_instruction)

count

count(value, /)

Return number of occurrences of value.

index

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

このページは役に立ちましたか?
バグや誤字の報告、またはコンテンツの要求はGitHubで行ってください。