without noise and checks if the results match.
qs = cirq.NamedQubit.range(9, prefix="q")
par = sympy.Symbol("par")
sweep = cirq.Linspace(key="par", start=0.0, stop=1.0, length=2)
num = np.random.randint(0, 2**9)
binary = bin(num)[2:].zfill(9)
device = cirq.pasqal.PasqalDevice(qubits=qs)
ex_circuit = cirq.Circuit(device=device)
for i, b in enumerate(binary[:-1]):
if b == "1":
ex_circuit.append(cirq.X(qs[-i - 1]))
ex_circuit.append([cirq.measure(q) for q in qs])
ex_circuit_odd = copy.deepcopy(ex_circuit)
ex_circuit_odd.append(cirq.X(qs[0]))