예제 #1
0
def test_main_loop():
    """Test that the main loop is able to run without erring."""
    # Keep test from taking a long time by lowering repetitions.
    pytest.importorskip("cirq_google")
    args = '--num_qubits 5 --depth 5 --num_circuits 1  --routes 3'.split()
    with cirq.testing.assert_deprecated('Use cirq.optimize_for_target_gateset',
                                        deadline='v0.16',
                                        count=None):
        quantum_volume.main(**quantum_volume.parse_arguments(args))
예제 #2
0
def test_main_loop():
    """Test that the main loop is able to run without erring."""
    # Keep test from taking a long time by lowering repetitions.
    args = '--num_qubits 5 --depth 5 --num_repetitions 1'.split()
    quantum_volume.main(**quantum_volume.parse_arguments(args))
예제 #3
0
def test_main_loop():
    """Test that the main loop is able to run without erring."""
    # Keep test from taking a long time by lowering repetitions.
    pytest.importorskip("cirq.google")
    args = '--num_qubits 5 --depth 5 --num_circuits 1  --routes 3'.split()
    quantum_volume.main(**quantum_volume.parse_arguments(args))