Lightning Qubit device

The lightning.qubit device is an extension of PennyLane’s built-in default.qubit device. It uses a custom-built backend to perform fast linear algebra calculations for simulating quantum state-vector evolution.

A lightning.qubit device can be loaded using:

import pennylane as qml
dev = qml.device("lightning.qubit", wires=2)

Supported operations and observables

Supported operations:

BasisState Prepares a single computational basis state.
CNOT The controlled-NOT operator
Hadamard The Hadamard operator
PauliX The Pauli X operator
PauliY The Pauli Y operator
PauliZ The Pauli Z operator
QubitStateVector Prepare subsystems using the given ket vector in the computational basis.
Rot Arbitrary single qubit rotation
RX The single qubit X rotation
RY The single qubit Y rotation
RZ The single qubit Z rotation
S The single-qubit phase gate
T The single-qubit T gate

Supported observables:

Hadamard The Hadamard operator
Identity The identity observable \(\I\).
PauliX The Pauli X operator
PauliY The Pauli Y operator
PauliZ The Pauli Z operator