Quantum Expectation Values

Compute expectation values of quantum states
17 Downloads
Updated 2 May 2024

View License

In general, the expectation value is the average over all measurement outcomes, weighted by their probability of occuring. Expectation values are a fundamental concept and arise in many quantum computing applications. This contribution allows you to:
  • Construct an observable from a Hermitian matrix or an array of Pauli strings and weights.
  • Compute expection values of the observable on a quantum state

Cite As

Quantum Computing (2024). Quantum Expectation Values (https://www.mathworks.com/matlabcentral/fileexchange/165101-quantum-expectation-values), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2024a
Compatible with R2023a to R2024a
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0