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
No documentation for "circuit_file" in example #12
Comments
The circuit simulation example reads an input file in the "qsim format" described in https://github.com/quantumlib/qsim/blob/master/docs/input_format.md, although we haven't implemented all those gates, but only We call this format the "GRCS format" because it is the same circuit format used in https://github.com/sboixo/GRCS. It also appears in the public dataset of the Nature paper by Google that claims quantum supremacy. Maybe we should add a docstring for the |
Hi, I tried writing a simplest circuit using the "qsim" format:
It only contains one qubit, using one X gate and one H gate. I then ran the circuit with circuit_simulation example:
But I got error from the example:
|
A relative comment: The qsim format is deprecated. Is it possible to import circuit from Cirq's JSON format? |
Another related question: How do I add measurements to the circuit, e.g. something like what I did this notebook:
|
As mentioned above, we did not implement all the gates supported by the "qsim" format, but only the ones used in Google's random circuits. The Maybe we could try to implement importing circuits from Cirq's JSON format if you could link to a complete format specification. |
Measurements are a bit complicated. If you want to calculate the amplitude (or the probability) of a specific measurement result, you can use |
The "circuit_simulation" example expects an input "circuit_file", but there is no documentation about how to construct this file. Could you please add some document and/or samples for this?
The text was updated successfully, but these errors were encountered: