diff --git a/tests/python/variational/uccsd_test.py b/tests/python/variational/uccsd_test.py index 1c6a58ba1..fc366c2f7 100644 --- a/tests/python/variational/uccsd_test.py +++ b/tests/python/variational/uccsd_test.py @@ -69,7 +69,8 @@ def test_parameters_roundtrip(): np.testing.assert_allclose(roundtripped.t2, operator.t2) if with_final_orbital_rotation: np.testing.assert_allclose( - roundtripped.final_orbital_rotation, operator.final_orbital_rotation + np.asarray(roundtripped.final_orbital_rotation), + np.asarray(operator.final_orbital_rotation), )