Skip to content

Commit

Permalink
fix: revert some pylint suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLiegiBastonLiegi committed Feb 23, 2024
1 parent a1405fe commit 0ff0e50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/qibojit/backends/clifford_operations_cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,9 @@ def _rowsum(symplectic_matrix, h, i, nqubits, determined=False):
g_zi_zh = xi.copy()
for j in prange(len(h)): # pylint: disable=not-an-iterable
exp = np.zeros(nqubits, dtype=uint64)
x1_eq_z1 = (xi[j] ^ zi[j]) is False
x1_eq_z1 = (xi[j] ^ zi[j]) == False
x1_neq_z1 = ~x1_eq_z1
x1_eq_0 = xi[j] is False
x1_eq_0 = xi[j] == False
x1_eq_1 = ~x1_eq_0
ind2 = x1_eq_z1 & x1_eq_1
ind3 = x1_eq_1 & x1_neq_z1
Expand Down
3 changes: 0 additions & 3 deletions src/qibojit/backends/clifford_operations_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
from functools import cache

import cupy as cp # pylint: disable=E0401
import numpy as np
from scipy import sparse

name = "cupy"

np = cp

GRIDDIM, BLOCKDIM = 1024, 128
Expand Down

0 comments on commit 0ff0e50

Please sign in to comment.