PennyLane
Install
Install
Back to Codebook Map

Distance Measures

Loading...

How good is the preparation of our state? Learn how to compare two quantum state using different measures.

Metrics and Distance

Calculate the distance between probability distributions.

Measuring Similarity

Use the Battacharyya coefficient to compare probability distributions.

The Trace Distance

Measure the distance between quantum states.

Fidelity

Calculate how close two quantum states are.

PennyLane

PennyLane is a cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry. Built by researchers, for research. Created with ❤️ by Xanadu.

Research

  • Research
  • Performance
  • Hardware & Simulators
  • Demos
  • Quantum Compilation
  • Quantum Datasets

Education

  • Teach
  • Learn
  • Codebook
  • Coding Challenges
  • Videos
  • Glossary

Software

  • Install PennyLane
  • Features
  • Documentation
  • Catalyst Compilation Docs
  • Development Guide
  • API
  • GitHub
Stay updated with our newsletter

© Copyright 2025 | Xanadu | All rights reserved

TensorFlow, the TensorFlow logo and any related marks are trademarks of Google Inc.

Privacy Policy|Terms of Service|Cookie Policy|Code of Conduct