# 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.