Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 25, 2024
1 parent 1a706c7 commit 3692716
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/qibochem/ansatz/basis_rotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions tests/test_basis_rotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,3 @@ def test_basis_rotation_gates():

vqe = models.VQE(circuit, ham)
assert np.isclose(vqe[0], mol.e_hf)


0 comments on commit 3692716

Please sign in to comment.