Variational Quantum Algorithm
A class of hybrid quantum-classical algorithms using parameterized circuits optimized by classical computers.
Variational Quantum Algorithms (VQAs) are the primary approach for near-term (NISQ) quantum computing. They combine quantum circuit evaluation with classical optimization.
The Structure
┌─────────────────────────────────────────────────────┐
│ Classical Computer │
│ ┌─────────────┐ ┌────────────┐ │
│ │ Optimizer │◄──── Cost ◄───────│ Measure │ │
│ │ (θ→θ') │ │ expectation│ │
│ └──────┬──────┘ └─────▲──────┘ │
│ │ New θ │ │
│ ▼ │ │
│ ┌──────────────────────────────────────────────┐ │
│ │ Quantum Computer │ │
│ │ |0⟩ ──[Ansatz U(θ)]──── Measure │ │
│ └──────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────┘
- Ansatz: Parameterized quantum circuit
- Evaluate: Measure expectation value
- Optimize: Classical optimizer updates
- Repeat: Until convergence
Key Components
Ansatz (Circuit Structure)
Parameterized circuit that can represent the solution:
| Ansatz Type | Description |
|---|---|
| Hardware-efficient | Uses native gates |
| Problem-inspired | Encodes domain knowledge |
| UCCSD | Chemistry-motivated |
Cost Function
What you’re minimizing:
Classical Optimizer
Updates parameters based on cost:
- Gradient-based: ADAM, L-BFGS
- Gradient-free: COBYLA, Nelder-Mead
- Quantum-aware: SPSA, QNG
Popular VQAs
| Algorithm | Application |
|---|---|
| VQE | Ground state energy |
| QAOA | Combinatorial optimization |
| VQLS | Linear systems |
| VQC | Classification |
| QGAN | Generative models |
Why Variational?
NISQ-Friendly
- Short circuits (low depth)
- Resilient to some noise
- Flexible structure
Trainable
- Classical optimizer handles complexity
- Adapts to problem instance
- No deep understanding needed
Challenges
| Challenge | Issue |
|---|---|
| Barren plateaus | Vanishing gradients |
| Noise | Corrupts cost landscape |
| Optimization | Local minima, long training |
| Expressibility | Can ansatz represent solution? |
| Trainability | Can we find the solution? |
Outlook
VQAs are pragmatic but limited:
- Good for exploring NISQ capabilities
- Unclear when they outperform classical
- May not scale to large problems
Bridge to fault-tolerant era or dead end? Jury’s out.