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: BB84 states #326

Closed
vprusso opened this issue Dec 3, 2023 · 0 comments · Fixed by #327
Closed

Feature: BB84 states #326

vprusso opened this issue Dec 3, 2023 · 0 comments · Fixed by #327
Milestone

Comments

@vprusso
Copy link
Owner

vprusso commented Dec 3, 2023

Add the BB84 basis states to states/. The BB84 basis states

def bb84():
    # Computational basis states |0>, |1>:
    e_0, e_1 = standard_basis(2)
    # Plus/minus basis |+>, |->
    e_p, e_m = (e_0 + e_1) / np.sqrt(2), (e_0 - e_1) / np.sqrt(2)
    return [[e_0, e_1], [e_p, e_m]]
@vprusso vprusso added this to the Release 1.0.7 milestone Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant