Skip to content

Commit

Permalink
Go back to qiskit 1.2.4. (#432)
Browse files Browse the repository at this point in the history
* use qiskti 1.2.4

* fix

* fix mypy

* Update docs/changelog.md

---------

Co-authored-by: Alec Edgington <[email protected]>
  • Loading branch information
cqc-melf and cqc-alec authored Dec 11, 2024
1 parent d1ce833 commit 9fb6472
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
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.60.0"
__extension_version__ = "0.61.0"
__extension_name__ = "pytket-qiskit"
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

# Changelog

## 0.61.0 (December 2024)

- Restrict qiskit version to ~= 1.2.4, to avoid breaking changes in 1.3.0

## 0.60.0 (November 2024)

- Fix an unhelpful warning message about implicit swaps when using optimisation level 2 with {py:class}`AerBackend`
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
include_package_data=True,
install_requires=[
"pytket >= 1.35.0",
"qiskit >= 1.2.4",
"qiskit ~= 1.2.4",
"qiskit-ibm-runtime >= 0.30.0",
"qiskit-aer >= 0.15.1",
"numpy >= 1.26.4",
Expand Down
6 changes: 3 additions & 3 deletions tests/backend_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,15 +645,15 @@ def test_swaps_basisorder() -> None:
qbs = c.qubits
for result in b.get_results(handles):
assert (
result.get_state([qbs[1], qbs[2], qbs[3], qbs[0]]).real.tolist().index(1.0)
result.get_state([qbs[1], qbs[2], qbs[3], qbs[0]]).real.tolist().index(1.0) # type: ignore
== 6
)
assert (
result.get_state([qbs[2], qbs[1], qbs[0], qbs[3]]).real.tolist().index(1.0)
result.get_state([qbs[2], qbs[1], qbs[0], qbs[3]]).real.tolist().index(1.0) # type: ignore
== 9
)
assert (
result.get_state([qbs[2], qbs[3], qbs[0], qbs[1]]).real.tolist().index(1.0)
result.get_state([qbs[2], qbs[3], qbs[0], qbs[1]]).real.tolist().index(1.0) # type: ignore
== 12
)

Expand Down

0 comments on commit 9fb6472

Please sign in to comment.