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

Circuit arguments don't include all possible classical argument types #25

Open
ecpeterson opened this issue Jan 18, 2019 · 0 comments
Open

Comments

@ecpeterson
Copy link
Contributor

The trinary-classical-instruction method specialization of instantiate-instruction is essentially unusable (and untested) except as a pass-through. Specifically, the typing system in Quil is too awkward to allow for programs like

DECLARE values INT[80]
DEFCIRCUIT STORE-CIRCUIT a b c:
    STORE a b c

STORE-CIRCUIT values 20 values[10]

where it freaks out about passing the naked value 20 in as an argument (and probably parses the first argument values as the reference values[0] rather than as the region name).

@ecpeterson ecpeterson changed the title Circuit arguments don't include classical argument types Circuit arguments don't include all possible classical argument types Jan 18, 2019
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