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.
Attributes
code/api/jet.circuit.Wire
Download Python script
Download Notebook
View on GitHub