Skip to content

Commit

Permalink
fix: fixed some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLiegiBastonLiegi committed Jan 4, 2024
1 parent 57399ab commit 6c0e59e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/qibojit/backends/clifford_operations_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def apply_CZ(symplectic_matrix, control_q, target_q, nqubits):
"""Decomposition --> H-CNOT-H"""
cqz = nqubits + control_q
tqz = nqubits + target_q
tid = jit.blockIdx.xq * jit.blockDim.xq + jit.threadIdx.xq
ntid = jit.gridDim.xq * jit.blockDim.xq
tid = jit.blockIdx.x * jit.blockDim.x + jit.threadIdx.x
ntid = jit.gridDim.x * jit.blockDim.x
for i in range(tid, symplectic_matrix.shape[0] - 1, ntid):
symplectic_matrix[i, -1] = (
symplectic_matrix[i, -1]
Expand Down Expand Up @@ -147,7 +147,7 @@ def apply_Y(symplectic_matrix, q, nqubits):
qz = nqubits + q
for i in range(tid, symplectic_matrix.shape[0] - 1, ntid):
symplectic_matrix[i, -1] = (
rsymplectic_matrix[i, -1]
symplectic_matrix[i, -1]
^ (
symplectic_matrix[i, qz]
& (symplectic_matrix[i, qz] ^ symplectic_matrix[i, q])
Expand Down

0 comments on commit 6c0e59e

Please sign in to comment.