From 5df19bed08a2a10845b40ad7ba5bcc8347980cfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=A5=E5=81=A5?= Date: Tue, 6 Jan 2026 11:10:38 +0800 Subject: [PATCH 1/2] update: update `test_fsim` testcase --- tests/simulator/test_statevector_sim.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/simulator/test_statevector_sim.py b/tests/simulator/test_statevector_sim.py index 2b7e151..7e554d9 100644 --- a/tests/simulator/test_statevector_sim.py +++ b/tests/simulator/test_statevector_sim.py @@ -710,6 +710,7 @@ def test_fsim(): circuit.h(1) circuit.h(2) circuit.fsim(1, 2, theta=theta, phi=phi) + circuit.h(2) circuit.measure_all() c = circuit.assign_parameters({ @@ -718,6 +719,11 @@ def test_fsim(): }) sim = StatevectorSimulator(c) probs = sim.probs() + assert all_close(probs, { + '000': 0.1875, '100': 0.0625, '010': 0.24574071, + '110': 0.004259271, '001': 0.1875, '101': 0.0625, + '011': 0.24574071, '111': 0.004259271 + }) def test_memory(): -- Gitee From 571c4f8fd0e22285ab670637051370eaeb7850d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=A5=E5=81=A5?= Date: Tue, 6 Jan 2026 11:46:48 +0800 Subject: [PATCH 2/2] chore(version): Update version number to 1.3.7 - Update the version number in [VERSION.txt] from 1.3.5 to 1.3.7 --- cqlib/VERSION.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cqlib/VERSION.txt b/cqlib/VERSION.txt index 6f96ed0..8ed486a 100644 --- a/cqlib/VERSION.txt +++ b/cqlib/VERSION.txt @@ -1 +1 @@ -1.3.6 \ No newline at end of file +1.3.7 \ No newline at end of file -- Gitee