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

Examples PR 3: Grovers example #43

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kris524
Copy link

@kris524 kris524 commented Jul 23, 2022

Old example is here

@kris524
Copy link
Author

kris524 commented Jul 23, 2022

I only don't know what to replace run_local with

@Renmusxd
Copy link
Owner

run_local is a function that just runs the circuit through a specific backend, in this case the "local" one. Now that functionality is in the CircuitBuilder with the calculate_state function, or calculate_state_with_init if you want to provide an initial state. See the examples in the README for details.

@kris524
Copy link
Author

kris524 commented Jul 24, 2022

I wanted to ask, could you give me an additional perspective/info on the project. Is there something similar from IBM or Google code-wise that you can compare it to? Maybe point me to the simplest example we have? (is it simple.rs?) Or maybe a paper that's relevant?

@Renmusxd
Copy link
Owner

Sorry about the delay, I've been heavily invested into a work project this month so open source projects are going slowly.

Code wise I don't know how to compare this to qiskit or cirq, I haven't contributed to either project. This aims to be a circuit manipulation and simulation library, and maybe down the line add some transpiling code. I'd say the README has the simplest code examples of the overarching api goals and thought process. The idea is to leverage the borrow checker to provide some safety that python and c++ libraries cannot.
Does this help?

@Renmusxd Renmusxd marked this pull request as draft August 3, 2022 16:08
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