def test_octagonal_qubit_index():
    """test that OctagonalQubit properly calculates index and uses it for comparison"""
    qubit0 = OctagonalQubit(0)
    assert qubit0.index == 0
    assert OctagonalQubit(1) > qubit0
test that OctagonalQubit properly calculates index and uses it for comparison
cirq-rigetti/cirq_rigetti/aspen_device_test.py