jet.circuit.Wire

class Wire(id_: int, depth: int = 0, closed: bool = False)[source]

Bases: object

Wire represents a collection of tensor indices that are directly or transitively associated with a qudit of a quantum circuit.

Parameters
  • id (int) – Position of the wire in the circuit.

  • depth (int) – Number of gates applied to this wire.

  • closed (bool) – Whether this wire has been terminated with a state.

closed

depth

index

Returns the current index label of this wire.

closed: bool = False
depth: int = 0
index

Returns the current index label of this wire.