4f20b008e57e02408454803b844ca2b9bdc7a556,cirq/pasqal/pasqal_device_test.py,,test_init_errors,#,52

Before Change


        _ = PasqalDevice(control_radius=1.5, qubits=line)

    with pytest.raises(ValueError):
        _ = PasqalDevice(control_radius=-1, qubits=[ThreeDGridQubit(0, 0, 0)])


def test_decompose_error():
    d = cubic_device(2, 2, 1, holes=[ThreeDGridQubit(1, 1, 0)])

After Change


def test_init_errors():
    line = cirq.devices.LineQubit.range(3)
    with pytest.raises(TypeError, match="Unsupported qubit type"):
        PasqalDevice(qubits=line)
    with pytest.raises(ValueError, match="Too many qubits"):
        generic_device(101)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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_init_errors


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_value_equal