diff --git a/azure-quantum/azure/quantum/qiskit/backends/backend.py b/azure-quantum/azure/quantum/qiskit/backends/backend.py index 45b95596..122dff1e 100644 --- a/azure-quantum/azure/quantum/qiskit/backends/backend.py +++ b/azure-quantum/azure/quantum/qiskit/backends/backend.py @@ -440,6 +440,8 @@ def _generate_qir( for circuit in circuits: qir_str = backend.qir(circuit) module = pyqir.Module.from_ir(context, qir_str) + entry_point = next(filter(pyqir.is_entry_point, module.functions)) + entry_point.name = circuit.name llvm_module.link(module) err = llvm_module.verify() if err is not None: diff --git a/azure-quantum/requirements-qiskit.txt b/azure-quantum/requirements-qiskit.txt index 5745302d..57e4a889 100644 --- a/azure-quantum/requirements-qiskit.txt +++ b/azure-quantum/requirements-qiskit.txt @@ -1,5 +1,5 @@ qiskit-ionq>=0.5,<0.6 qsharp[qiskit]>=1.9.0,<2.0 -pyqir>=0.10.5,<0.11 +pyqir>=0.10.6,<0.11 Markdown>=3.4.1,<4.0 python-markdown-math>=0.8.0,<1.0 \ No newline at end of file