Skip to content

Commit

Permalink
fix: removed commented lines
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLiegiBastonLiegi committed Apr 19, 2024
1 parent 529f741 commit d30f6ad
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/qibojit/backends/clifford_operations_cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ def CNOT(symplectic_matrix, control_q, target_q, nqubits):
)
x[i, target_q] = x[i, target_q] ^ x[i, control_q]
z[i, control_q] = z[i, control_q] ^ z[i, target_q]
"""
r[:] = r ^ (x[:, control_q] & z[:, target_q]) & (
x[:, target_q] ^ ~z[:, control_q]
)
x[:, target_q] = x[:, target_q] ^ x[:, control_q]
z[:, control_q] = z[:, control_q] ^ z[:, target_q]
"""
return symplectic_matrix


Expand All @@ -63,18 +56,6 @@ def CZ(symplectic_matrix, control_q, target_q, nqubits):
z_target_q = z[i, target_q] ^ x[i, control_q]
z[i, control_q] = z_control_q
z[i, target_q] = z_target_q
"""
r[:] = (
r
^ (x[:, target_q] & z[:, target_q])
^ (x[:, control_q] & x[:, target_q] & (z[:, target_q] ^ ~z[:, control_q]))
^ (x[:, target_q] & (z[:, target_q] ^ x[:, control_q]))
)
z_control_q = x[:, target_q] ^ z[:, control_q]
z_target_q = z[:, target_q] ^ x[:, control_q]
z[:, control_q] = z_control_q
z[:, target_q] = z_target_q
"""
return symplectic_matrix


Expand Down

0 comments on commit d30f6ad

Please sign in to comment.