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

[Constraint] Introducing BoolVariable #91

Closed
alxiong opened this issue Aug 3, 2022 · 0 comments · Fixed by #94
Closed

[Constraint] Introducing BoolVariable #91

alxiong opened this issue Aug 3, 2022 · 0 comments · Fixed by #94
Assignees

Comments

@alxiong
Copy link
Contributor

alxiong commented Aug 3, 2022

we could introduce a struct BoolVariable which on initialization would enforce it's binary value. This would makes our API for gates like unpack() or logic_gate() clearer and less error-prone when it comes to deciding when to enforce/check {0,1} on the wire variable.

cc @zhenfeizhang

@alxiong alxiong self-assigned this Aug 8, 2022
@alxiong alxiong mentioned this issue Aug 8, 2022
6 tasks
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