File size: 455 Bytes
2a87ede
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
# Measurement (shot sampling & pure-state fidelity)

Turning a statevector into finite-shot counts (`sample_counts`, a Qiskit-`get_counts()`
equivalent), and comparing two pure states directly (`statevector_fidelity`) without building a
density matrix first.

::: dense_evolution.utils.measurement



---



**See also**: [`uhlmann_fidelity`](mitigation.md) for the density-matrix fidelity `statevector_fidelity`
is the pure-state counterpart of.