VQE demo labelled helium hydride cation (HeH+), the first molecule to form in the universe: a simplified 2-qubit model Hamiltonian with a UCCSD-inspired 3-parameter ansatz. The model is not HeH+'s real Hamiltonian, so its energies are not HeH+'s (FCI/STO-3G gives -2.8516 Hartree). Explains what changes in the qubit Hamiltonian of a heteronuclear molecule.
Applies QAOA to the Traveling Salesman Problem with constraint penalties. Uses city-timestep encoding (n^2 qubits for n cities): qubit (c, t) = 1 means city c is visited at timestep t. Default: 2 cities with distance 5, 4 qubits. The cost Hamiltonian combines distance terms with row and column constraint penalties.
VQE scaling demo labelled beryllium hydride (BeH2): a 6-qubit, 14-term illustrative model Hamiltonian, a 2-layer hardware-efficient ansatz and 24 variational parameters. The model is not computed from BeH2, so its energies are not BeH2's (FCI/STO-3G gives -15.5951 Hartree). Shows how VQE scales to 6 qubits and a harder parameter landscape.
Optimizes quantum kernel parameters to maximize centered kernel-target alignment (CKA) — a principled score measuring how well a kernel matrix matches label structure. Uses a parameterized encoding with data-dependent and trainable rotations, optimized via Adam with PennyLane autograd.
Applies the Quantum Approximate Optimization Algorithm (QAOA) to the 0/1 Knapsack problem with a QUBO penalty method: select items to maximize total value within a weight capacity. Default: 4 items, capacity 18, optimal value 35 (items {1,2} or {0,3}). A quadratic penalty P(Σwᵢxᵢ - C)², which favors filling exactly to C, folds the capacity into a cost layer of RZ and RZZ rotations.
Applies the Quantum Approximate Optimization Algorithm (QAOA) to asset portfolio selection. Encodes the Markowitz mean-variance model as a QUBO with a return term, a covariance risk term and a quadratic budget penalty, in a cost layer of RZ and RZZ rotations. Default: 4 assets, budget of 2, risk factor 0.5. Walks through the QUBO-to-QAOA pipeline for financial optimization.
Runs VQD for ground and excited states on a simplified 4-qubit toy model labelled LiH, not an electronic-structure Hamiltonian for LiH, so its energies are not LiH's. Shows how VQD scales from 2 to 4 qubits with multi-circuit Pauli measurement; the model cannot show LiH's ionic-covalent mixing or avoided crossing.
Quantum kernel with learnable parameters optimized via kernel-target alignment (KTA). Interleaves data encoding (angle encoding) with trainable RZ/RY rotations and CNOT entanglement, then uses PennyLane autograd to maximize KTA, a differentiable proxy for classification performance. Compares the trained kernel with a random baseline; at the default budget the gain is small and not always positive.
Teleports an unknown quantum state from one qubit to another using a shared Bell pair and two classical bits. Demonstrates that quantum information can be transferred without physically sending the qubit — at the cost of consuming entanglement and requiring classical communication.
The simplest quantum error correcting code: encodes 1 logical qubit into 3 physical qubits (+ 2 syndrome ancillae) to detect and correct a single bit-flip (X) error. Introduces syndrome extraction, conditional correction, and the stabilizer formalism. It does not protect against phase (Z) errors.
Quantifies ansatz expressiveness via fidelity sampling and KL divergence from the Haar-random distribution, comparing simple, HEA, and strongly entangling architectures (Sim et al. 2019).
Detects and quantifies vanishing gradients (barren plateaus) in variational quantum circuits by measuring gradient variance scaling with system size. Uses the parameter-shift rule and exponential decay fitting to determine if an ansatz is trainable.
Trains a classical Support Vector Machine on a kernel matrix computed from quantum circuits. The ZZ feature map encodes data into an exponentially large Hilbert space via entangling RZ(xi·xj·π) gates, and the inversion test measures K(x,y) = |⟨φ(x)|φ(y)⟩|² as the all-zeros probability. Includes synthetic data generation, SVM dual optimization, and classification evaluation.
Creates the Bell state |Phi+> = (|00> + |11>)/sqrt(2), the simplest demonstration of quantum entanglement. Two qubits are prepared so that their measurement outcomes are perfectly correlated. Such pairs are the resource behind teleportation, superdense coding, and entanglement-based quantum key distribution.
Finds ground and first excited states of a two-qubit model Hamiltonian based on H2 using Variational Quantum Deflation (VQD), a sequential variational algorithm that adds overlap penalties to enforce orthogonality between solutions. The model adds a Y0Y1 term to H2's Hamiltonian, so its gap (~0.85 Ha) is not H2's (about 0.61 Ha in STO-3G).
VQE for the H2 molecule with a one-parameter ansatz, in simulation. Named after Peruzzo et al. (Nature Communications, 2014), the first VQE experiment, which computed the ground-state energy of the helium hydride ion (HeH+) on a photonic chip.
Applies the Quantum Approximate Optimization Algorithm (QAOA) to Graph 2-Coloring: assign one of two colors to each vertex to minimize edge conflicts (adjacent vertices sharing a color). Default: 4-vertex graph with a triangle subgraph (chromatic number 3, minimum 1 conflict). Same circuit structure as MaxCut: coloring minimizes conflicts while MaxCut maximizes cuts.