jet.gate

Module containing the Gate and GateFactory classes in addition to all Gate subclasses.

Classes

Gate(name, num_wires, dim, params)

Gate represents a quantum gate.

GateFactory()

GateFactory is an implementation of the factory design pattern for the Gate class.

Adjoint(gate)

Adjoint is a decorator which computes the conjugate transpose of an existing Gate.

Scale(gate, scalar)

Scale is a decorator which linearly scales an existing Gate.

FockGate(name, num_wires, cutoff, params)

FockGate represents a (continuous variable) Fock gate.

Displacement(r, phi, cutoff)

Displacement represents a displacement gate.

Squeezing(r, theta, cutoff)

Squeezing represents a squeezing gate.

TwoModeSqueezing(r, theta, cutoff)

TwoModeSqueezing represents a two-mode squeezing gate.

Beamsplitter(theta, phi, cutoff)

Beamsplitter represents a beamsplitter gate.

QubitGate(name, num_wires, params)

QubitGate represents a qubit gate.

Hadamard()

Hadamard represents a Hadamard gate.

PauliX()

PauliX represents a Pauli-X gate.

PauliY()

PauliY represents a Pauli-Y gate.

PauliZ()

PauliZ represents a Pauli-Z gate.

S()

S represents a single-qubit phase gate.

T()

T represents a single-qubit T gate.

SX()

SX represents a single-qubit Square-Root X gate.

CX()

CX represents a controlled-X gate.

CY()

CY represents a controlled-Y gate.

CZ()

CZ represents a controlled-Z gate.

SWAP()

SWAP represents a SWAP gate.

ISWAP()

ISWAP represents a ISWAP gate.

CSWAP()

CSWAP represents a CSWAP gate.

Toffoli()

Toffoli represents a Toffoli gate.

RX(theta)

RX represents a single-qubit X rotation gate.

RY(theta)

RY represents a single-qubit Y rotation gate.

RZ(theta)

RZ represents a single-qubit Z rotation gate.

PhaseShift(phi)

PhaseShift represents a single-qubit local phase shift gate.

CPhaseShift(phi)

CPhaseShift represents a controlled phase shift gate.

Rot(phi, theta, omega)

Rot represents an arbitrary single-qubit rotation gate with three Euler angles.

CRX(theta)

CRX represents a controlled-RX gate.

CRY(theta)

CRY represents a controlled-RY gate.

CRZ(theta)

CRZ represents a controlled-RZ gate.

CRot(phi, theta, omega)

CRot represents a controlled-rotation gate.

U1(phi)

U1 represents a U1 gate.

U2(phi, lam)

U2 represents a U2 gate.

U3(theta, phi, lam)

U3 represents a U3 gate.

Class Inheritance Diagram

Inheritance diagram of jet.gate.Gate, jet.gate.GateFactory, jet.gate.Adjoint, jet.gate.Scale, jet.gate.FockGate, jet.gate.Displacement, jet.gate.Squeezing, jet.gate.TwoModeSqueezing, jet.gate.Beamsplitter, jet.gate.QubitGate, jet.gate.Hadamard, jet.gate.PauliX, jet.gate.PauliY, jet.gate.PauliZ, jet.gate.S, jet.gate.T, jet.gate.SX, jet.gate.CX, jet.gate.CY, jet.gate.CZ, jet.gate.SWAP, jet.gate.ISWAP, jet.gate.CSWAP, jet.gate.Toffoli, jet.gate.RX, jet.gate.RY, jet.gate.RZ, jet.gate.PhaseShift, jet.gate.CPhaseShift, jet.gate.Rot, jet.gate.CRX, jet.gate.CRY, jet.gate.CRZ, jet.gate.CRot, jet.gate.U1, jet.gate.U2, jet.gate.U3