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/update pyqir #101

Merged
merged 3 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _metadata.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__extension_version__ = "0.6.0"
__extension_version__ = "0.7.0"
__extension_name__ = "pytket-qir"
5 changes: 5 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
~~~~~~~~~

0.7.0 (Unreleased)
------------------

* updated pyqir version requirement to 0.10.0.

0.6.0 (November 2023)
---------------------

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
include_package_data=True,
install_requires=[
"pytket ~= 1.22",
"pyqir == 0.9.0",
"pyqir == 0.10.0",
],
classifiers=[
"Environment :: Console",
Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir.ll
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ declare void @__quantum__rt__tuple_end_record_output()

declare void @__quantum__qis__h__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="3" "num_required_results"="3" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="3" "required_num_results"="3" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_10.ll
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ declare void @__quantum__rt__tuple_start_record_output()

declare void @__quantum__rt__tuple_end_record_output()

attributes #0 = { "entry_point" "num_required_qubits"="1" "num_required_results"="1" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="1" "required_num_results"="1" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_11.ll
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ declare void @__quantum__rt__tuple_start_record_output()

declare void @__quantum__rt__tuple_end_record_output()

attributes #0 = { "entry_point" "num_required_qubits"="1" "num_required_results"="1" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="1" "required_num_results"="1" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_12.ll
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ declare void @__quantum__rt__tuple_start_record_output()

declare void @__quantum__rt__tuple_end_record_output()

attributes #0 = { "entry_point" "num_required_qubits"="1" "num_required_results"="1" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="1" "required_num_results"="1" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_13.ll
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ declare void @__quantum__rt__tuple_start_record_output()

declare void @__quantum__rt__tuple_end_record_output()

attributes #0 = { "entry_point" "num_required_qubits"="1" "num_required_results"="1" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="1" "required_num_results"="1" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_14.ll
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ declare void @__quantum__rt__tuple_end_record_output()

declare void @__quantum__qis__x__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="1" "num_required_results"="1" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="1" "required_num_results"="1" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_14_b.ll
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ declare void @__quantum__rt__tuple_end_record_output()

declare void @__quantum__qis__x__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="1" "num_required_results"="1" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="1" "required_num_results"="1" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_15.ll
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ declare void @__quantum__rt__tuple_start_record_output()

declare void @__quantum__rt__tuple_end_record_output()

attributes #0 = { "entry_point" "num_required_qubits"="0" "num_required_results"="0" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="0" "required_num_results"="0" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_17.ll
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ declare void @__quantum__qis__h__body(%Qubit*)

declare void @__quantum__qis__cnot__body(%Qubit*, %Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="2" "num_required_results"="2" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="2" "required_num_results"="2" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_2.ll
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ declare void @__quantum__rt__tuple_end_record_output()

declare void @__quantum__qis__h__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="3" "num_required_results"="3" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="3" "required_num_results"="3" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_3.ll
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ declare void @__quantum__rt__tuple_end_record_output()

declare void @__quantum__qis__h__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="3" "num_required_results"="3" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="3" "required_num_results"="3" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_4.ll
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ declare void @__quantum__rt__tuple_end_record_output()

declare void @__quantum__qis__h__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="3" "num_required_results"="3" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="3" "required_num_results"="3" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_5.ll
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ declare void @__quantum__rt__tuple_end_record_output()

declare void @__quantum__qis__h__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="3" "num_required_results"="3" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="3" "required_num_results"="3" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_6.ll
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ declare void @__quantum__qis__h__body(%Qubit*)

declare void @__quantum__qis__z__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="3" "num_required_results"="3" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="3" "required_num_results"="3" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_7.ll
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ declare void @__quantum__rt__tuple_start_record_output()

declare void @__quantum__rt__tuple_end_record_output()

attributes #0 = { "entry_point" "num_required_qubits"="2" "num_required_results"="2" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="2" "required_num_results"="2" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_8.ll
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ declare void @__quantum__rt__tuple_start_record_output()

declare void @__quantum__rt__tuple_end_record_output()

attributes #0 = { "entry_point" "num_required_qubits"="1" "num_required_results"="1" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="1" "required_num_results"="1" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_9.ll
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ declare void @__quantum__rt__tuple_start_record_output()

declare void @__quantum__rt__tuple_end_record_output()

attributes #0 = { "entry_point" "num_required_qubits"="1" "num_required_results"="1" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="1" "required_num_results"="1" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_barrier.ll
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ declare void @__quantum__qis__barrier1__body(%Qubit*)

declare void @__quantum__qis__barrier4__body(%Qubit*, %Qubit*, %Qubit*, %Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="5" "num_required_results"="5" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="5" "required_num_results"="5" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_barrier_ii.ll
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ declare void @__quantum__qis__group3__body(%Qubit*, %Qubit*, %Qubit*)

declare void @__quantum__qis__sleep__body(%Qubit*, double)

attributes #0 = { "entry_point" "num_required_qubits"="5" "num_required_results"="5" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="5" "required_num_results"="5" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_conditional.ll
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ declare void @__quantum__rt__tuple_end_record_output()

declare void @__quantum__qis__h__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="3" "num_required_results"="3" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="3" "required_num_results"="3" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_conditional_10.ll
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ declare void @__quantum__qis__y__body(%Qubit*)

declare void @__quantum__qis__h__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="4" "num_required_results"="4" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="4" "required_num_results"="4" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_conditional_11.ll
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ declare void @__quantum__rt__tuple_end_record_output()

declare void @__quantum__qis__x__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="7" "num_required_results"="7" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="7" "required_num_results"="7" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_conditional_6.ll
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ declare void @__quantum__qis__h__body(%Qubit*)

declare void @__quantum__qis__phasedx__body(double, double, %Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="2" "num_required_results"="2" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="2" "required_num_results"="2" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_conditional_7.ll
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ declare void @__quantum__rt__tuple_end_record_output()

declare void @__quantum__qis__x__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="7" "num_required_results"="7" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="7" "required_num_results"="7" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_conditional_8.ll
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ declare void @__quantum__rt__tuple_end_record_output()

declare void @__quantum__qis__h__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="4" "num_required_results"="4" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="4" "required_num_results"="4" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_conditional_9.ll
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ declare void @__quantum__qis__y__body(%Qubit*)

declare void @__quantum__qis__h__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="4" "num_required_results"="4" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="4" "required_num_results"="4" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_conditional_ii.ll
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ declare void @__quantum__rt__tuple_end_record_output()

declare void @__quantum__qis__h__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="3" "num_required_results"="3" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="3" "required_num_results"="3" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_conditional_iii.ll
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ declare void @__quantum__rt__tuple_end_record_output()

declare void @__quantum__qis__h__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="1" "num_required_results"="1" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="1" "required_num_results"="1" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_conditional_iv.ll
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ declare void @__quantum__rt__tuple_end_record_output()

declare void @__quantum__qis__h__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="2" "num_required_results"="2" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="2" "required_num_results"="2" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_conditional_v.ll
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ declare void @__quantum__rt__tuple_end_record_output()

declare void @__quantum__qis__h__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="2" "num_required_results"="2" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="2" "required_num_results"="2" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_module.ll
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ declare void @__quantum__rt__tuple_end_record_output()

declare void @__quantum__qis__h__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="3" "num_required_results"="3" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="3" "required_num_results"="3" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_qasm.ll
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ declare void @__quantum__rt__tuple_start_record_output()

declare void @__quantum__rt__tuple_end_record_output()

attributes #0 = { "entry_point" "num_required_qubits"="10" "num_required_results"="10" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="10" "required_num_results"="10" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_quantum.ll
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ declare void @__quantum__rt__tuple_end_record_output()

declare void @__quantum__qis__h__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="1" "num_required_results"="1" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="1" "required_num_results"="1" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_quantum_ii.ll
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ declare void @__quantum__qis__z__body(%Qubit*)

declare void @__quantum__qis__rx__body(double, %Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="4" "num_required_results"="4" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="4" "required_num_results"="4" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_quantum_iii.ll
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ declare void @__quantum__qis__h__body(%Qubit*)

declare void @__quantum__qis__cnot__body(%Qubit*, %Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="2" "num_required_results"="2" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="2" "required_num_results"="2" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_quantum_iv.ll
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ declare void @__quantum__qis__zzmax__body(%Qubit*, %Qubit*)

declare void @__quantum__qis__cnot__body(%Qubit*, %Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="4" "num_required_results"="4" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="4" "required_num_results"="4" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_quantum_v.ll
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ declare void @__quantum__qis__rxxyyzz__body(double, double, double, %Qubit*, %Qu

declare void @__quantum__qis__cnot__body(%Qubit*, %Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="4" "num_required_results"="4" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="4" "required_num_results"="4" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_rangepredicate.ll
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ declare void @__quantum__rt__tuple_end_record_output()

declare void @__quantum__qis__h__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="3" "num_required_results"="3" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="3" "required_num_results"="3" }

!llvm.module.flags = !{!0, !1, !2, !3}

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_wasm.ll
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ declare i32 @new_function() #1

declare void @__quantum__qis__h__body(%Qubit*)

attributes #0 = { "entry_point" "num_required_qubits"="1" "num_required_results"="1" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="1" "required_num_results"="1" }

attributes #1 = { "wasm" }

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_wasm_ii.ll
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ declare i32 @no_parameters() #1

declare i32 @new_function() #1

attributes #0 = { "entry_point" "num_required_qubits"="6" "num_required_results"="6" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="6" "required_num_results"="6" }

attributes #1 = { "wasm" }

Expand Down
2 changes: 1 addition & 1 deletion tests/qir/test_pytket_qir_wasm_ii_64.ll
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ declare void @init() #1

declare i64 @add_something(i64) #1

attributes #0 = { "entry_point" "num_required_qubits"="6" "num_required_results"="6" "output_labeling_schema" "qir_profiles"="custom" }
attributes #0 = { "entry_point" "output_labeling_schema" "qir_profiles"="custom" "required_num_qubits"="6" "required_num_results"="6" }

attributes #1 = { "wasm" }

Expand Down