import numpy as np

from common import PLUS
from qsim import apply_cnot, kron

before = kron(PLUS, PLUS)
after = apply_cnot(before, control=0, target=1)
print("CNOT sur |+⟩|+⟩ ne change rien :", np.allclose(after, before))
