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

Support qiskit.qasm3.dumps for circuits with IonQ native gates #218

Open
ryanhill1 opened this issue Jan 25, 2025 · 0 comments
Open

Support qiskit.qasm3.dumps for circuits with IonQ native gates #218

ryanhill1 opened this issue Jan 25, 2025 · 0 comments

Comments

@ryanhill1
Copy link

What feature would you like to see added? Why is it valuable?

Support conversion of circuits with IonQ native gates to OpenQASM 3

What is the expected behavior, in detail?

import openqasm3.parser
import qiskit
import qiskit.qasm2
import qiskit.qasm3
import qiskit_ionq

circuit = qiskit.QuantumCircuit(1)
circuit.u(0.1, 0.2, 0.3, 0)

provider = qiskit_ionq.IonQProvider()

backend = provider.get_backend("simulator", gateset="native")

transpiled_circuit = qiskit.transpile(circuit, backend=backend)

qasm3_str = qiskit.qasm3.dumps(transpiled_circuit)

Can you help make this feature a reality? By yourself? If not, what support would you need?

It's already implemented for qasm2 so hopefully shouldn't be that hard

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

No branches or pull requests

1 participant