4f20b008e57e02408454803b844ca2b9bdc7a556,cirq/pasqal/pasqal_device_test.py,,test_to_json,#,155

Before Change



def test_to_json():
    dev = cirq.pasqal.PasqalDevice(
        control_radius=5, qubits=[cirq.pasqal.ThreeDGridQubit(1, 1, 1)])
    d = dev._json_dict_()
    assert d == {
        "cirq_type": "PasqalDevice",

After Change




def test_to_json():
    dev = PasqalDevice(qubits=[cirq.NamedQubit("q4")])
    d = dev._json_dict_()
    assert d == {"cirq_type": "PasqalDevice", "qubits": [cirq.NamedQubit("q4")]}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: quantumlib/Cirq
Commit Name: 4f20b008e57e02408454803b844ca2b9bdc7a556
Time: 2020-07-20
Author: henrique.silverio@tecnico.ulisboa.pt
File Name: cirq/pasqal/pasqal_device_test.py
Class Name:
Method Name: test_to_json


Project Name: quantumlib/Cirq
Commit Name: 4f20b008e57e02408454803b844ca2b9bdc7a556
Time: 2020-07-20
Author: henrique.silverio@tecnico.ulisboa.pt
File Name: cirq/pasqal/pasqal_device_test.py
Class Name:
Method Name: test_decompose_error


Project Name: quantumlib/Cirq
Commit Name: 4f20b008e57e02408454803b844ca2b9bdc7a556
Time: 2020-07-20
Author: henrique.silverio@tecnico.ulisboa.pt
File Name: cirq/pasqal/pasqal_device_test.py
Class Name:
Method Name: test_value_equal