State Fidelities (qiskit_machine_learning.state_fidelities)

Algorithms that compute the fidelity of two given quantum states.

State fidelities

BaseStateFidelity

An interface to calculate state fidelities (state overlaps) for pairs of (parametrized) quantum circuits.

ComputeUncompute

This class leverages the sampler primitive to calculate the state fidelity of two quantum circuits following the compute-uncompute method (see [1] for further reference).

Results

StateFidelityResult

This class stores the result of StateFidelity computations.