From 0ff0e505e9422217ff2a4d8327d845fa47d18928 Mon Sep 17 00:00:00 2001 From: Andrea Papaluca Date: Fri, 23 Feb 2024 10:05:47 +0400 Subject: [PATCH] fix: revert some pylint suggestions --- src/qibojit/backends/clifford_operations_cpu.py | 4 ++-- src/qibojit/backends/clifford_operations_gpu.py | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/qibojit/backends/clifford_operations_cpu.py b/src/qibojit/backends/clifford_operations_cpu.py index 603dbc9f..9d595165 100644 --- a/src/qibojit/backends/clifford_operations_cpu.py +++ b/src/qibojit/backends/clifford_operations_cpu.py @@ -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 diff --git a/src/qibojit/backends/clifford_operations_gpu.py b/src/qibojit/backends/clifford_operations_gpu.py index 438ea794..1039c2bc 100644 --- a/src/qibojit/backends/clifford_operations_gpu.py +++ b/src/qibojit/backends/clifford_operations_gpu.py @@ -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