From b89a0e7a9abf27b77f6018e80b2a966cbe0a9796 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 13 Dec 2023 16:31:54 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_models_dbi.py | 2 +- tests/test_models_variational.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_models_dbi.py b/tests/test_models_dbi.py index 39afec87c2..a3b22d1bbe 100644 --- a/tests/test_models_dbi.py +++ b/tests/test_models_dbi.py @@ -105,4 +105,4 @@ def test_energy_fluctuations(backend): state = np.array([1, 0]) dbf = DoubleBracketIteration(Hamiltonian(1, matrix=h0, backend=backend)) energy_fluctuation = dbf.energy_fluctuation(state=state) - assert energy_fluctuation == 0 \ No newline at end of file + assert energy_fluctuation == 0 diff --git a/tests/test_models_variational.py b/tests/test_models_variational.py index 4d882e5710..2ff9170361 100644 --- a/tests/test_models_variational.py +++ b/tests/test_models_variational.py @@ -346,9 +346,10 @@ def test_custom_loss(test_input, test_param, expected): ) assert abs(best - expected) <= 0.01 + def test_energy_fluctuations(backend): h0 = np.array([[1, 0], [0, -1]]) state = np.array([1, 0]) dbf = DoubleBracketIteration(Hamiltonian(1, matrix=h0, backend=backend)) energy_fluctuation = dbf.energy_fluctuation(state=state) - assert energy_fluctuation == 0 \ No newline at end of file + assert energy_fluctuation == 0