Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Bures angle #171

Closed
vprusso opened this issue Jun 3, 2023 · 2 comments · Fixed by #181
Closed

Feature: Bures angle #171

vprusso opened this issue Jun 3, 2023 · 2 comments · Fixed by #181
Labels
enhancement New feature or request feature request good first issue Good for newcomers

Comments

@vprusso
Copy link
Owner

vprusso commented Jun 3, 2023

Calculate the Bures angle is a measure of distance between two quantum states [1].

The Bures angle can be computed as follows:

def bures_angle(rho: np.ndarray, sigma: np.ndarray) -> float:
    """Returns the Bures angle between two density operators."""
    return np.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.

[1]: Wikipedia: Bures angle

@vprusso vprusso added enhancement New feature or request good first issue Good for newcomers feature request labels Jun 3, 2023
@epelaaez
Copy link
Contributor

Hey! Are you looking for people to work on this?

@vprusso
Copy link
Owner Author

vprusso commented Jun 24, 2023

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!

@epelaaez epelaaez mentioned this issue Jun 25, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants