def test_aspen_qubit_index():
    """test that AspenQubit properly calculates index and uses it for comparison"""
    qubit10 = AspenQubit(1, 0)
    assert qubit10.index == 10
    assert qubit10 > AspenQubit(0, 5)
test that AspenQubit properly calculates index and uses it for comparison
cirq-rigetti/cirq_rigetti/aspen_device_test.py