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 Apr 17, 2024
1 parent 69b2f4c commit bcc8586
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/qibochem/ansatz/basis_rotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,10 @@ def basis_rotation_gates(A, z_array, parameters):
for j in range(N):
for i in range(N):
if A[i][j] == 0:
#gate_list.append(gates.CNOT(i + 1, i))
#gate_list.append(gates.CRY(i, i + 1, z_array[A[i + 1][j] - 1]))
gate_list.append(gates.GIVENS(i+1, i, z_array[A[i+1][j] - 1]))
# gate_list.append(gates.CNOT(i + 1, i))
# gate_list.append(gates.CRY(i, i + 1, z_array[A[i + 1][j] - 1]))
gate_list.append(gates.GIVENS(i + 1, i, z_array[A[i + 1][j] - 1]))
ordered_angles.append(z_array[A[i + 1][j] - 1])
#gate_list.append(gates.CNOT(i + 1, i))
# gate_list.append(gates.CNOT(i + 1, i))

return gate_list, ordered_angles

0 comments on commit bcc8586

Please sign in to comment.