GTorlai / PastaQ.jl

Package for Simulation, Tomography and Analysis of Quantum Computers
Apache License 2.0
142 stars 23 forks source link

Change distance measure to handle zero fidelity case #226

Open GTorlai opened 2 years ago

GTorlai commented 2 years ago

Right now, since we are computing the logarithm of the inner product directly, we get a NaN for fidelity measurements of orthogonal states.

mtfishman commented 2 years ago

Should it just check for 0 before the logarithm is taken and return 0 in that case?