Skip to main content

Module wire

Module wire 

Source
Expand description

Wire/qubit mapping types for the PennyLane JSON protocol.

PennyLane represents qubits as “wires” (integers or strings). This module provides the mapping between PennyLane wires and QuantRS2 QubitId values.

Structs§

WireId
A PennyLane wire identifier (integer wire index in the device JSON).
WireMap
Bidirectional mapping between PennyLane wire labels and qubit indices.