From 1b0d24e92cf96affa19192a497cab66ee9d10f42 Mon Sep 17 00:00:00 2001 From: Pablo Andres-Martinez Date: Wed, 17 Apr 2024 03:07:41 -0700 Subject: [PATCH] Updated tests --- tests/test_structured_state.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_structured_state.py b/tests/test_structured_state.py index 73675a6b..f38f45f0 100644 --- a/tests/test_structured_state.py +++ b/tests/test_structured_state.py @@ -530,7 +530,7 @@ def test_circ_approx_explicit_ttn(circuit: Circuit) -> None: # Check for TTNxGate cfg = Config(truncation_fidelity=0.99, leaf_size=3, float_precision=np.float32) ttn_gate = simulate(libhandle, circuit, SimulationAlgorithm.TTNxGate, cfg) - assert np.isclose(ttn_gate.get_fidelity(), 0.769, atol=1e-3) + assert np.isclose(ttn_gate.get_fidelity(), 0.751, atol=1e-3) assert ttn_gate.is_valid() assert np.isclose(ttn_gate.vdot(ttn_gate), 1.0, atol=cfg._atol) @@ -538,7 +538,7 @@ def test_circ_approx_explicit_ttn(circuit: Circuit) -> None: # Check for TTNxGate cfg = Config(chi=120, leaf_size=3, float_precision=np.float32) ttn_gate = simulate(libhandle, circuit, SimulationAlgorithm.TTNxGate, cfg) - assert np.isclose(ttn_gate.get_fidelity(), 0.857, atol=1e-3) + assert np.isclose(ttn_gate.get_fidelity(), 0.854, atol=1e-3) assert ttn_gate.is_valid() assert np.isclose(ttn_gate.vdot(ttn_gate), 1.0, atol=cfg._atol)