-
Notifications
You must be signed in to change notification settings - Fork 272
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
Suggestion: generate commands with assignment-operations on quregisters #105
Comments
Some downsides:
|
Sure! But as mentioned in #71 , I'd prefer to put such functionality in a new type (e.g., Indeed, this works nicely for some functions and not so nicely for others... I think we should nevertheless try to make "quantum math" easy to use and implementing, e.g., addition and multiplication would be a good first step. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add
+=
,^=
, etc operators to Qureg:Also add RValue-producing
+
,~
,&
etc operators:Add RValue classes:
And then users can do arithmetic in a way that looks quite like normal python:
The text was updated successfully, but these errors were encountered: