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

[FEATURE] Add option to qasm3_to_qir to omit barriers in conversion #194

Open
ryanhill1 opened this issue Jan 23, 2025 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@ryanhill1
Copy link
Member

ryanhill1 commented Jan 23, 2025

Feature Description

The qBraid QIR simulator does not currently support barriers, and qiskit.QuantumCircuit.measure_all() implicitly adds barriers. This means that in the qBraid-SDK, the following code currently fails:

from qbraid import QbraidProvider
from qiskit import QuantumCircuit

circuit = QuantumCircuit(2)

circuit.h(0)
circuit.cx(0, 1)
circuit.measure_all()

provider = QbraidProvider()
device = provider.get_device("qbraid_qir_simulator")
job = device.run(circuit, shots=100)

It would be nice if we could somehow remove barriers from the pyqir.Module after conversion, or add an optional argument to qasm3_to_qir that allows one to exclude barriers from the output of the conversion.

Implementation (Optional)

No response

@ryanhill1 ryanhill1 added the enhancement New feature or request label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant