Measurement of a Pauli observable
ID: measurement-of-a-pauli-observable
The expectation of a Hermitian Pauli string can be obtained by basis rotation and measurement, or by a Hadamard test with the Pauli string as its controlled unitary.
New to topics? Read the docs here!