-
Notifications
You must be signed in to change notification settings - Fork 12
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 a full-featured serializer from a qiskit.QuantumCircuit
to a quantum-viz.js
JSON
#44
Conversation
478a359
to
59ae7c2
Compare
94ad6b5
to
e8f51d8
Compare
Initial commit of a parser for IBM Qiskit quantum circuits to output to json file compatible with Quantum-Viz.
Rename and reformat the files
"isControlled"
All the previous functionality is implemented
Add logic for storing identifiers for qubits and classical bits
Works for circuits with a single qubit
This reverts commit 36e9c13.
Add P and R gates
TdgGate, SdgGate, SXdgGate
These gates are already adjoints - no need to add `'`
Use the indices, hopefully that's enough
This is a great contribution. Thank you @jond01 for it! There are a few things that we need to clean up, otherwise looks great. |
Co-authored-by: Andres Paz <[email protected]>
Co-authored-by: Andres Paz <[email protected]>
Co-authored-by: Andres Paz <[email protected]>
By `pre-commit run --all-files`
Use `json.dumps` for the dict
qiskit.QuantumCircuit
to a quantum-viz.js
jsonqiskit.QuantumCircuit
to a quantum-viz.js
json
qiskit.QuantumCircuit
to a quantum-viz.js
jsonqiskit.QuantumCircuit
to a quantum-viz.js
JSON
sigh... @jond01, our new CI checks caught a lot of small things, like docstrings and coverage, if you have time could you add them? otherwise I'll try to get this done early next week. |
We'll merge the fixes to CI pipeline on the next commit. |
Description
qiskit-terra
, added as an optional dependency to the Python package.Installable with:
pip install -U "quantum-viz[qiskit]"
Type of change
How Has This Been Tested?
nox -s tests
Checklist: