Skip to content

Commit

Permalink
Fixed test after switching target_sqp X->Z in QubitTapering
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWeaving committed Nov 28, 2023
1 parent fab68e9 commit 872b67d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_projection/test_contextual_subspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 872b67d

Please sign in to comment.