d848611149d110c47ab611d7e690e29d1f0adce2,cirq/pasqal/pasqal_sampler_test.py,,test_run_sweep,#Any#Any#,61

Before Change


    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]))

After Change



    ex_circuit_odd = copy.deepcopy(ex_circuit)
    ex_circuit_odd.append(cirq.X(qs[0]))
    ex_circuit_odd.append(cirq.measure(*qs))

    xpow = cirq.XPowGate(exponent=par)
    ex_circuit.append([xpow(qs[0])])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: quantumlib/Cirq
Commit Name: d848611149d110c47ab611d7e690e29d1f0adce2
Time: 2020-07-31
Author: henrique.silverio@tecnico.ulisboa.pt
File Name: cirq/pasqal/pasqal_sampler_test.py
Class Name:
Method Name: test_run_sweep


Project Name: nipy/dipy
Commit Name: 1b46c1cb1650ef0b332cd2e3a84b3c0e4a764975
Time: 2017-01-07
Author: marc.cote.19@gmail.com
File Name: dipy/tracking/benchmarks/bench_streamline.py
Class Name:
Method Name: bench_length


Project Name: nipy/dipy
Commit Name: d7dcfeeb5b50fc3f9cf670b2b148efafef0ad3b7
Time: 2017-10-05
Author: marc.cote.19@gmail.com
File Name: dipy/tracking/benchmarks/bench_streamline.py
Class Name:
Method Name: bench_set_number_of_points