-
Notifications
You must be signed in to change notification settings - Fork 16
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
Introduce a modulo operator #4
Labels
2024.1
Changes for the 2024.1 specification.
Comments
@stylewarning would this be written
|
another option is to do division and remainder simultaneously |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tracking a value modulo 2*pi is a relatively useful thing to do, perhaps Quil's expressions should be extended to include a modulo operator.
Since % is already used for variables this wouldn't be a good choice. Instead we could:
mod(dividend, divisor)
, although this would be the first named function in quil with >1 arguments\
)The text was updated successfully, but these errors were encountered: