def test_octagonal_position_validation():
    """test OctagonalQubit validates octagon position when initialized"""
    with pytest.raises(ValueError):
        _ = OctagonalQubit(8)
test OctagonalQubit validates octagon position when initialized
cirq-rigetti/cirq_rigetti/aspen_device_test.py