-
Notifications
You must be signed in to change notification settings - Fork 121
Add sample notebooks #2437
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
base: main
Are you sure you want to change the base?
Add sample notebooks #2437
Conversation
"from qsharp import run, DepolarizingNoise\n", | ||
"from qsharp_widgets import Histogram\n", | ||
"\n", | ||
"Histogram(run(\"bell()\", shots=1000, noise=DepolarizingNoise(0.01)))" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works fine, but why not use the callable object like the other samples? I think there was a bug previously where this didn't work as expected, but now it seems to work just fine.
"Histogram(run(\"bell()\", shots=1000, noise=DepolarizingNoise(0.01)))" | |
"Histogram(run(bell, shots=1000, noise=DepolarizingNoise(0.01)))" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The text above this line talks about how to call it just like you would in a %%qsharp cell. We can change this but we need to update more for consistency.
This PR adds sample Python integration and resource estimation notebooks for OpenQASM. There is more here than just those changes as existing external issues require workarounds.