KnowledgeCookies logo Understanding the language of quantum science
QPicDepict / Quantum computing

Quantum machine learning

A quantum circuit can encode data, generate features or serve as a trainable component of a learning model.

Quantum machine learning infographic. A reading guide and explanation follow.
A variational classifier. Input, Encode x into gates. Model, Apply U(θ\theta). Readout, Estimate ⟨O⟩\langle O\rangle. Training, Update θ\theta from loss. Open full-size image Download PNG

How it works

  1. Encode

    Choose how input features affect preparation, such as rotation angles.

  2. Evaluate

    Run the circuit many times to estimate observables or kernel overlaps.

  3. Train

    Update parameters using a classical loss and compare held-out performance with classical baselines.

Equation and quantities

fθ(x)=⟨ψθ(x)∣O∣ψθ(x)⟩f_\theta(x)=\langle\psi_\theta(x)\lvert O\rvert\psi_\theta(x)\rangle

Worked example

With RγR_{\gamma }(x) followed by RγR_{\gamma }(θ\theta) and a Z measurement, the mean is cos(x + θ\theta). The one-qubit example is a simple periodic model with a classical formula.

Why it matters

Research explores quantum kernels, generative models and classifiers for quantum-origin data.

Limits and assumptions

Accounting for data loading, noise, sampling and baseline quality is essential. Adding a quantum circuit does not establish a speedup.

Can you estimate fθ(x) from a single run?

A single run samples one eigenvalue. A mean generally needs repeated runs.

Related reading