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

Add bell inequality example #31

Merged
merged 1 commit into from
Aug 26, 2021

Conversation

oxarbitrage
Copy link
Contributor

I was testing the bell inequality in the simulator and i ended up with some decent code to present as an example. Feel free to do whatever you prefer with it.

This example is based on the circuits presented in https://arxiv.org/pdf/1712.05642.pdf

@Renmusxd
Copy link
Owner

I'll need to check these when I'm back at my work computer later this week but I really like the idea. I'll get back to you soon.

@Renmusxd
Copy link
Owner

Ok! All looks good. This also makes me think of two things that the library really should have: noise 'gates' to simulate real machines. This would let you check how quickly results like this break down with environmental noise (related to #12 and #16).
Also there should be a way to add arguments to gates in the program! macro to do things like Rz(theta).

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.

2 participants