from common import grover, rounded, success
from qsim import sample

n, marked = 2, ["11"]
state = grover(marked, n, iterations=1)
print(f"P(11) après 1 itération : {rounded(success(state, marked, n)):.3f}")
print("lectures :", sample(state, 1000, seed=42))
