It would be great to have a "fidelity" function that takes two quantum states and returns the fidelity between the two. Since it is likely going to be used to track fidelity w.r.t. Bell states it would be probably beneficial to have one of the two states defaulting to a Bell state or some other mechanism like this.
More generally, other measures such as the Helstrom bound or the quantum Chernoff bound could also be similarly useful, but fidelity is by far the most used and it should take priority.
Note: function should check that the size of the compared quantum states matches.
It would be great to have a "fidelity" function that takes two quantum states and returns the fidelity between the two. Since it is likely going to be used to track fidelity w.r.t. Bell states it would be probably beneficial to have one of the two states defaulting to a Bell state or some other mechanism like this.
More generally, other measures such as the Helstrom bound or the quantum Chernoff bound could also be similarly useful, but fidelity is by far the most used and it should take priority.
Note: function should check that the size of the compared quantum states matches.