import numpy as np

H = np.array([[1, 1], [1, -1]]) / np.sqrt(2)
product = H.conj().T @ H

# La case en haut à gauche devrait valoir 1 : l'arrondi la fait tomber juste en dessous
print("H† @ H, case (0, 0) :", product[0, 0])
print("comparée avec ==    :", product[0, 0] == 1.0)
print("np.allclose         :", np.allclose(product, np.eye(2)))
