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

QASM3ExporterError / QASM3ParserError from IonQ native gate program #217

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

Comments

@ryanhill1
Copy link

Information

  • Qiskit IonQ Provider version: 0.5.12

  • API URL or version: n/a

  • Python version: 3.11

  • Operating system: Darwin (arm64)

What is the current behavior?

Circuit created using GPIGate or GPI2Gate creates invalid OpenQASM program according to openqasm3.parser

Steps to reproduce the problem

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)

# qasm_str = qiskit.qasm3.dumps(transpiled_circuit) # QASM3ExporterError
qasm_str = qiskit.qasm2.dumps(transpiled_circuit)

qasm_program = openqasm3.parser.parse(qasm_str)  # QASM3ParserError

What is the expected behavior?

It should be able to parse in the program

Suggested solutions

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