Skip to content

Commit

Permalink
Set QIR entry point to match circuit name
Browse files Browse the repository at this point in the history
  • Loading branch information
idavis committed Oct 21, 2024
1 parent a3a971f commit 17cf9e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions azure-quantum/azure/quantum/qiskit/backends/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion azure-quantum/requirements-qiskit.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 17cf9e8

Please sign in to comment.