Fiveable

๐Ÿ”ฌQuantum Machine Learning Unit 12 Review

QR code for Quantum Machine Learning practice questions

12.2 Variational Quantum Eigensolver (VQE)

๐Ÿ”ฌQuantum Machine Learning
Unit 12 Review

12.2 Variational Quantum Eigensolver (VQE)

Written by the Fiveable Content Team โ€ข Last updated September 2025
Written by the Fiveable Content Team โ€ข Last updated September 2025
๐Ÿ”ฌQuantum Machine Learning
Unit & Topic Study Guides

The Variational Quantum Eigensolver (VQE) is a hybrid quantum-classical algorithm that finds the lowest eigenvalue of a Hamiltonian. It combines a quantum circuit to prepare trial states with classical optimization to minimize energy, making it suitable for near-term quantum devices.

VQE has applications in quantum chemistry and materials science, where it can calculate molecular ground states and material properties. Its flexibility in ansatz design and optimization techniques allows for problem-specific tailoring, making it a versatile tool for quantum-enhanced optimization.

Variational Quantum Eigensolver

Overview and Components

  • VQE combines quantum state preparation and measurement with classical optimization to find the lowest eigenvalue of a given Hamiltonian
  • The VQE algorithm consists of three main components:
    • Parameterized quantum circuit (ansatz) prepares a trial wave function approximating the ground state of the target Hamiltonian
    • Cost function (typically the expectation value of the Hamiltonian) is evaluated by measuring the output of the ansatz circuit and guides the optimization process
    • Classical optimization routine iteratively updates the parameters of the ansatz to minimize the cost function, effectively finding the best approximation to the ground state
  • VQE leverages the strengths of both quantum and classical computation
    • Quantum hardware efficiently evaluates the cost function
    • Classical resources optimize the parameters

Algorithm Workflow

  • The ansatz is a quantum circuit with tunable parameters that prepares a trial wave function
    • Trial wave function is an approximation of the ground state of the target Hamiltonian
  • The cost function is evaluated by measuring the output of the ansatz circuit
    • Expectation value of the Hamiltonian is a common choice for the cost function
  • The classical optimization routine iteratively updates the parameters of the ansatz
    • Goal is to minimize the cost function
    • Effectively finds the best approximation to the ground state
  • The process continues until convergence criteria are met or a maximum number of iterations is reached

Variational Quantum Circuits

Ansatz Design Considerations

  • Variational quantum circuits, or ansatzes, are parameterized quantum circuits designed to prepare trial wave functions for VQE
  • The choice of ansatz depends on the problem at hand and the available quantum hardware
    • Balances expressibility, entangling capability, and circuit depth
  • Hardware-efficient ansatzes maximize the use of available quantum resources while minimizing circuit depth
    • Suitable for near-term quantum devices
    • Examples include the Ry variational form (layers of single-qubit rotations and entangling gates)
  • Problem-specific ansatzes incorporate knowledge about the target Hamiltonian or the expected structure of the ground state
    • Potentially leads to faster convergence and better approximations
    • Examples include the unitary coupled cluster (UCC) ansatz (quantum chemistry) and the Hamiltonian variational ansatz (HVA) (general Hamiltonians)

Constructing and Analyzing Ansatzes

  • Ansatzes can be constructed using a modular approach
    • Combines basic building blocks such as single-qubit rotations, entangling gates (CNOT, CZ), and parameter-sharing techniques
  • The expressibility and entangling capability of an ansatz can be analyzed using various measures
    • Meyer-Wallach entanglement measure quantifies the amount of entanglement in the ansatz
    • Expressibility score assesses the ability of the ansatz to represent a wide range of quantum states
  • Analyzing the properties of ansatzes helps in designing effective circuits for VQE and understanding their limitations

Classical Optimization for VQE

Optimization Methods

  • Classical optimization routines minimize the cost function in VQE by iteratively updating the parameters of the variational quantum circuit
  • Gradient-based optimization methods (gradient descent) can be used when the gradient of the cost function with respect to the parameters can be efficiently computed
    • Parameter-shift rule allows for the estimation of gradients using a finite difference approach, requiring additional quantum circuit evaluations
  • Gradient-free optimization methods (Nelder-Mead simplex, Powell's method, COBYLA) can be used when gradients are difficult to compute or the cost function landscape is complex
  • Bayesian optimization techniques (Gaussian process regression) model the cost function landscape and guide the search for optimal parameters

Optimization Techniques and Considerations

  • The choice of optimizer depends on various factors
    • Number of parameters
    • Complexity of the cost function landscape
    • Available computational resources
  • Techniques to improve the convergence and robustness of the optimization process include:
    • Parameter initialization strategies (random, heuristic)
    • Learning rate scheduling (constant, adaptive)
    • Early stopping criteria (based on convergence or maximum iterations)
  • Careful selection and tuning of optimization techniques are crucial for the success and efficiency of VQE

VQE Applications in Science

Quantum Chemistry

  • VQE has been successfully applied to solve quantum chemistry problems
    • Calculating the ground state energies of molecules
    • Studying chemical reactions
  • The electronic structure Hamiltonian is mapped to a qubit Hamiltonian using techniques like the Jordan-Wigner or Bravyi-Kitaev transformation
  • The UCC ansatz is commonly used for quantum chemistry problems
    • Incorporates the structure of the electronic wave function
  • VQE can be extended to excited states using techniques like the quantum subspace expansion (QSE) or the folded spectrum method (FSM)

Material Science

  • VQE can be used to study materials properties
    • Band structure
    • Density of states
    • Transport properties of solid-state systems
  • The Hamiltonian of the material system is discretized and mapped to a qubit Hamiltonian
    • Often uses the tight-binding or Hubbard model
  • Problem-specific ansatzes can be employed for material science applications
    • Hamiltonian variational ansatz (HVA)
    • Fermionic Neural Network (FermiNet)
  • Error mitigation techniques (Richardson extrapolation, zero-noise extrapolation) can be incorporated into VQE
    • Reduces the impact of hardware noise on the computed energies and properties