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

Prefer init_reg over reg2var for empty classical registers #59

Closed
wants to merge 4 commits into from

Conversation

qartik
Copy link
Member

@qartik qartik commented Aug 1, 2023

As discussed in #57 and later.

I would like to use this PR for stabilizing the design of the API. For example, here are a couple options:

  1. remove reg2var completely and keep init_reg as is
  2. use reg2var for only creating registers with initial values and init_reg for empty cregs
  3. add an additional parameter to init_reg for an initial value and remove reg2var.

PS: Please ignore changes from #58, see b3a04dd for the changes introduced in this PR.

Also:
- improve README
- update package versions
- add Makefile
- resolve typos and linting issues reported by above tools
- remove lark warnings from pytest output
@qartik
Copy link
Member Author

qartik commented Aug 7, 2023

Also see another option #61

@qartik qartik marked this pull request as draft August 7, 2023 14:31
@qartik
Copy link
Member Author

qartik commented Aug 9, 2023

Closing in favor of #61

@qartik qartik closed this Aug 9, 2023
@qartik qartik deleted the init_reg branch August 9, 2023 12:24
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 this pull request may close these issues.

1 participant