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

Need more types in lambda-qs grammar #7

Open
jakezweifler opened this issue Oct 9, 2022 · 4 comments
Open

Need more types in lambda-qs grammar #7

jakezweifler opened this issue Oct 9, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@jakezweifler
Copy link
Collaborator

jakezweifler commented Oct 9, 2022

Some types (like str and int) in the Q# grammar don't map over to types in the lambda-Q# grammar. I added str and int to the lambda-Q# cf file, but do not know how to deal with some of the other types. Should all the types without any additional constructors have a corresponding type in lambda-Q#? There are also n-tuples in Q# but only pairs in lambda-Q# and other similar mismatches.

@k4rtik k4rtik self-assigned this Oct 9, 2022
@k4rtik k4rtik added the bug Something isn't working label Oct 9, 2022
@k4rtik
Copy link
Member

k4rtik commented Oct 9, 2022

Thanks, let me take a closer look later.

@k4rtik
Copy link
Member

k4rtik commented Nov 9, 2022

  • Arrays expression and its operation
  • for loops
  • ranges
  • early returns (e.g., see Arrays/Search.qs)
  • less than and greater than, etc binary operators
  • Mutable bindings and update operator

@jakezweifler
Copy link
Collaborator Author

jakezweifler commented Nov 9, 2022

Hi! Additionally, can you add some basic ops like < and >? These are used a lot in arrays functions. Thanks!

@k4rtik
Copy link
Member

k4rtik commented Nov 10, 2022

Hi @jakezweifler, how do the operators in 294bafe look like to you?

I think we will run into issues trying to define arrays of unique qubits with this syntax, but can we see how far we can go with the arrays library with this syntax?

@k4rtik k4rtik added enhancement New feature or request and removed bug Something isn't working labels Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants