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

Qubit integrity #3

Closed
stewdio opened this issue Jun 2, 2019 · 1 comment
Closed

Qubit integrity #3

stewdio opened this issue Jun 2, 2019 · 1 comment

Comments

@stewdio
Copy link
Owner

stewdio commented Jun 2, 2019

When integrating ComplexNumber in to Q, I commented out the check in Qubit initialization for a^2 + b^2 = 1. (I just wanted everything to function again as quickly as possible.) So we (I?) need to re-implement that using ComplexNumber now...

@stewdio
Copy link
Owner Author

stewdio commented Jun 4, 2019

Done. And Qubit verifies that |𝒂|² + |𝒃|² = 1. Note those absolute value operations are before the values are squared! Complex numbers are weird. Fixed by df5a12a

@stewdio stewdio closed this as completed Jun 4, 2019
Altanali added a commit that referenced this issue Aug 13, 2021
Update bundle.js, no longer creates default AmazonBraketSymbols for Qjs
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

No branches or pull requests

1 participant