def test_rigetti_qcs_aspen_device_valid_operation(
    operation: cirq.Operation, qcs_aspen8_isa: InstructionSetArchitecture
):
    """test RigettiQCSAspenDevice throws no error when validating 2Q operations on
    adjacent qubits
    """
    device = RigettiQCSAspenDevice(isa=qcs_aspen8_isa)
    device.validate_operation(operation)
test RigettiQCSAspenDevice throws no error when validating 2Q operations on
    adjacent qubits
    
cirq-rigetti/cirq_rigetti/aspen_device_test.py