From 36927161c1a5df648fcc9d7709cc6fd1fef13b9d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Mar 2024 02:45:39 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/qibochem/ansatz/basis_rotation.py | 4 ++-- tests/test_basis_rotation.py | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/qibochem/ansatz/basis_rotation.py b/src/qibochem/ansatz/basis_rotation.py index 4feb11f..a2ee7fd 100644 --- a/src/qibochem/ansatz/basis_rotation.py +++ b/src/qibochem/ansatz/basis_rotation.py @@ -137,7 +137,7 @@ def col_op(U, row, col): U, row, col = move_step(U, row, col, 0, 1) z, U = col_op(U, row, col) z_array.append(z) - #else: + # else: # break while col > 0: U, row, col = move_step(U, row, col, -1, -1) @@ -234,7 +234,7 @@ def assign_element(A, row, col, k): # print('jump left') A, row, col, updown = jump_left(A, row, col, updown) A, row, col = assign_element(A, row, col, k) - #else: + # else: # raise ValueError("Bad direction") # print(row, col) diff --git a/tests/test_basis_rotation.py b/tests/test_basis_rotation.py index 5eeb98b..0e63e6e 100644 --- a/tests/test_basis_rotation.py +++ b/tests/test_basis_rotation.py @@ -138,5 +138,3 @@ def test_basis_rotation_gates(): vqe = models.VQE(circuit, ham) assert np.isclose(vqe[0], mol.e_hf) - -