From da9f6b135a9cc8902c195d127125c641d15fddd7 Mon Sep 17 00:00:00 2001 From: cqc-melf <70640934+cqc-melf@users.noreply.github.com> Date: Wed, 18 Dec 2024 17:54:37 +0000 Subject: [PATCH] release 0.62.0 (#441) * update changelog * fix typo in changelog * fix mypy --- docs/changelog.md | 4 ++-- pytket/extensions/qiskit/qiskit_convert.py | 2 +- tests/qiskit_convert_test.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index 00605d8b..8e56bfa6 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -4,9 +4,9 @@ # Changelog -## unreleased +## 0.62.0 (December 2024) -- AerBackend now reject circuits with too many qubits +- AerBackend now rejects circuits with too many qubits - Update pytket version requirement to 1.37.0. - Update qiskit version requirement to 1.3.1. - Fix conversion of circuits containing multiple operations conditioned on the diff --git a/pytket/extensions/qiskit/qiskit_convert.py b/pytket/extensions/qiskit/qiskit_convert.py index 31fad552..5e0f7b09 100644 --- a/pytket/extensions/qiskit/qiskit_convert.py +++ b/pytket/extensions/qiskit/qiskit_convert.py @@ -663,7 +663,7 @@ def append_tk_command_to_qiskit( qb = qregmap[qubit.reg_name][qubit.index[0]] b = cregmap[bit.reg_name][bit.index[0]] # If the bit is storing a range predicate it should be invalidated: - range_preds.pop(bit, None) + range_preds.pop(bit, None) # type: ignore return qcirc.measure(qb, b) if optype == OpType.Reset: diff --git a/tests/qiskit_convert_test.py b/tests/qiskit_convert_test.py index a90da2b4..254044f8 100644 --- a/tests/qiskit_convert_test.py +++ b/tests/qiskit_convert_test.py @@ -1193,7 +1193,7 @@ def test_nonregister_bits() -> None: tk_to_qiskit(c) -def test_range_preds_with_conditionals(): +def test_range_preds_with_conditionals() -> None: # https://github.com/CQCL/pytket-qiskit/issues/375 c = Circuit(1, 1) treg = c.add_c_register(_TEMP_BIT_NAME, 1)