jet¶
The Jet Python API includes bindings for the core Jet C++ library along with an interpreter for Xanadu IR (XIR) scripts and a set of classes to model quantum gates, states, and circuits.
Functions¶
|
Constructs a qubit state using an optional state vector. |
|
Constructs a qubit register state with the given size and optional state vector. |
|
Constructs a task-based contractor (TBC) with the specified data type. |
|
Constructs a tensor with the specified data type. |
|
Constructs a tensor network with the specified data type. |
|
Constructs a tensor network file with the specified data type. |
|
Constructs a tensor network serializer with the specified data type. |
|
Overloaded function. |
|
Overloaded function. |
|
Overloaded function. |
Returns an XIR program that is populated with declarations for the gates and outputs supported by Jet. |
|
|
Overloaded function. |
|
Executes an XIR program. |
|
Overloaded function. |
Classes¶
|
Adjoint is a decorator which computes the conjugate transpose of an existing |
|
Beamsplitter represents a beamsplitter gate. |
|
CPhaseShift represents a controlled phase shift gate. |
|
CRX represents a controlled-RX gate. |
|
CRY represents a controlled-RY gate. |
|
CRZ represents a controlled-RZ gate. |
|
CRot represents a controlled-rotation gate. |
|
CSWAP represents a CSWAP gate. |
|
CX represents a controlled-X gate. |
|
CY represents a controlled-Y gate. |
|
CZ represents a controlled-Z gate. |
|
Circuit represents a quantum circuit composed of wires, each of which is intitialized with a qudit of the specified dimension in the vacuum state. |
|
Displacement represents a displacement gate. |
|
FockGate represents a (continuous variable) Fock gate. |
|
Gate represents a quantum gate. |
GateFactory is an implementation of the factory design pattern for the Gate class. |
|
|
Hadamard represents a Hadamard gate. |
|
ISWAP represents a ISWAP gate. |
|
Operation represents the application of a gate or state to a |
PathInfo represents a contraction path in a tensor network. |
|
|
PauliX represents a Pauli-X gate. |
|
PauliY represents a Pauli-Y gate. |
|
PauliZ represents a Pauli-Z gate. |
|
PhaseShift represents a single-qubit local phase shift gate. |
|
QubitGate represents a qubit gate. |
|
Qudit represents a qudit state. |
|
QuditRegister represents a qudit register state. |
|
RX represents a single-qubit X rotation gate. |
|
RY represents a single-qubit Y rotation gate. |
|
RZ represents a single-qubit Z rotation gate. |
|
Rot represents an arbitrary single-qubit rotation gate with three Euler angles. |
|
S represents a single-qubit phase gate. |
|
SWAP represents a SWAP gate. |
|
SX represents a single-qubit Square-Root X gate. |
|
Scale is a decorator which linearly scales an existing |
|
Squeezing represents a squeezing gate. |
|
State represents a quantum state. |
|
T represents a single-qubit T gate. |
|
Toffoli represents a Toffoli gate. |
|
TwoModeSqueezing represents a two-mode squeezing gate. |
|
U1 represents a U1 gate. |
|
U2 represents a U2 gate. |
|
U3 represents a U3 gate. |
|
Wire represents a collection of tensor indices that are directly or transitively associated with a qudit of a quantum circuit. |