You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calculate the Bures angle is a measure of distance between two quantum states [1].
The Bures angle can be computed as follows:
defbures_angle(rho: np.ndarray, sigma: np.ndarray) ->float:
"""Returns the Bures angle between two density operators."""returnnp.real(np.arccos(np.sqrt(fidelity(rho, sigma))))
As this is a metric, the location for this should be in state_metrics/bures_angle.py. Ensure that proper tests in tests/test_state_metrics/test_bures_angle.py and documentation in docs/state_metrics.rst are included.
Hi @epelaaez. Yes, by all means, if you'd like to go ahead and attempt this issue, by all means!
Thank you for your interest in toqito, and if you enjoy the project, give it a star and let me know if I can help out with using or contributing! Cheers!
Calculate the Bures angle is a measure of distance between two quantum states [1].
The Bures angle can be computed as follows:
As this is a metric, the location for this should be in
state_metrics/bures_angle.py
. Ensure that proper tests intests/test_state_metrics/test_bures_angle.py
and documentation indocs/state_metrics.rst
are included.[1]: Wikipedia: Bures angle
The text was updated successfully, but these errors were encountered: