import numpy as np

from common import X, Y, Z, show
from qsim.etape1_un_qubit import ONE, ZERO

print("Y|0⟩ =", show(Y @ ZERO), "  Y|1⟩ =", show(Y @ ONE))
# Y combine X et Z, avec un facteur i
print("X·Z =", show(X @ Z))
print("Y égale i·X·Z :", np.allclose(Y, 1j * X @ Z))
