Equation Used for Fidelity in The Walrus Lib

Hello! While studying the fidelity between Gaussian states, I found this method fidelity() from The Walrus, which I would like to use:

According to the documentation, this function implements the square of equation (96) from the paper “Gaussian states and operations – a quick reference” by Jonatan Bohr Brask (arXiv:2102.05748v2). However, after reading the paper, it seems that the correct reference should be equation (112), not (96). Anyone knows if this is right?

Hi @Gabriel_Moreira, welcome to the Forum!

Indeed it looks like the reference updated from a v1 to a v2, and the equation number was updated in the v2.

Would you like to open a Pull Request to fix this in the repo for The Walrus? I can open one if you prefer not to.

And thanks for making us aware of this!

Thanks for the answer. I’ll open a pull request for this.

1 Like