From 872b67d5bca54f1e3d598727593b5cee6564fb93 Mon Sep 17 00:00:00 2001 From: TimWeaving Date: Tue, 28 Nov 2023 14:56:09 +0000 Subject: [PATCH] Fixed test after switching target_sqp X->Z in QubitTapering --- tests/test_projection/test_contextual_subspace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_projection/test_contextual_subspace.py b/tests/test_projection/test_contextual_subspace.py index 8449a213..24bd448e 100644 --- a/tests/test_projection/test_contextual_subspace.py +++ b/tests/test_projection/test_contextual_subspace.py @@ -150,7 +150,7 @@ def test_project_state_onto_subspace(up_method): CS.update_stabilizers(3, aux_operator=CC_taper, strategy='aux_preserving') CS.project_onto_subspace() projected_state = CS.project_state_onto_subspace(QT.tapered_ref_state) - assert projected_state == QuantumState([[0,0,0]], [1]) + assert projected_state == QuantumState([[0,0,0]], [-1]) def test_project_state_onto_subspace_before_operator(): CS = ContextualSubspace(H_taper, noncontextual_strategy='StabilizeFirst')