-
Notifications
You must be signed in to change notification settings - Fork 52
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
Silq REPL #17
Comments
Reading is easy, but it's not entirely clear how it would evaluate and print for quantum state.
How should this work? Otherwise, implementation should be pretty straightforward. |
Also, measurements can lead to destructive state updates, maybe there should be a way to undo them. |
well, clearly measurements shouldn't be done unless explicitly asked. Printing out the ket notation is a good alternative imo |
In my example, |
we could either disregard entanglement and only show the probabilities or do something like
in other words, detecting variables that are entangled and showing all of them when one of them is asked. Note that x evaluates to the same thing after typing in the second statement |
As a user I like the probability approach @LordPos mentions — and I think for beginners it'll feel similar to what people have seen in tools like Quantum Experience etc! |
I think it'd be great to have a repl for the language, for toying with code before writing it down. Shouldn't be too hard to implement (not too sure). Thoughts?
The text was updated successfully, but these errors were encountered: