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)
After Change
mock_get.return_value = MockGet(cirq.to_json(ex_circuit_odd))
sampler = _make_sampler()
with pytest.raises(ValueError, match="Non-empty moment after measurement"):
wrong_circuit = copy.deepcopy(ex_circuit)
wrong_circuit.append(cirq.X(qs[0]))
sampler.run_sweep(program=wrong_circuit, params=sweep, repetitions=1)
data = sampler.run_sweep(program=ex_circuit, params=sweep, repetitions=1)
submitted_json = mock_post.call_args[1]["data"]
assert cirq.read_json(json_text=submitted_json) == ex_circuit_odd
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: Featuretools/featuretools
Commit Name: 80286b609c446c1d9bb1af1f70056c1af727835a
Time: 2018-06-07
Author: roy.wedge@gmail.com
File Name: featuretools/tests/computational_backend/test_calculate_feature_matrix.py
Class Name:
Method Name: test_calc_feature_matrix
Project Name: mne-tools/mne-python
Commit Name: c2d9a3fab4de5cc9974cc4bc23ec84c0a3e5bfca
Time: 2020-10-14
Author: larson.eric.d@gmail.com
File Name: mne/preprocessing/tests/test_ica.py
Class Name:
Method Name: test_ica_core