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

Qiskit support #37

Closed
anpaz opened this issue Sep 17, 2021 · 1 comment · Fixed by #44
Closed

Qiskit support #37

anpaz opened this issue Sep 17, 2021 · 1 comment · Fixed by #44
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers Hacktoberfest Good for Hacktoberfest participants help wanted Extra attention is needed

Comments

@anpaz
Copy link
Member

anpaz commented Sep 17, 2021

Is your feature request related to a problem? Please describe.
It would be nice to have a way to generate qviz's json from a Qiskit QuantumCircuit object.

Describe the solution you'd like
Something on the lines of adding a creating a convert_to_qviz() method that takes a Qiskit's Circuit object and returns a dictionary/ojbect that can be serialized to the json that qviz supports. For example:

import json

from qiskit import QuantumCircuit
from quantum_viz import convert_to_qviz

circuit = QuantumCircuit(2, 2)
circuit.name = "Qiskit Sample - Bell circuit"
circuit.h(0)
circuit.cx(0, 1)
circuit.measure([0,1], [0, 1])

qviz = convert_to_qviz(circuit)
print(json.dumps(qviz))
@anpaz anpaz added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Sep 17, 2021
@guenp guenp added the Hacktoberfest Good for Hacktoberfest participants label Sep 20, 2021
@jond01
Copy link
Contributor

jond01 commented Oct 11, 2021

Hi, I'd like to take this one :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers Hacktoberfest Good for Hacktoberfest participants help wanted Extra attention is needed
Projects
None yet
3 participants