def from_aspen_index(index: int) -> 'AspenQubit':
        """Initializes an `AspenQubit` at the given index. See `OctagonalQubit` to understand
        OctagonalQubit indexing.

        Args:
            index: The index at which to initialize the `AspenQubit`.

        Returns:
            The AspenQubit with requested index.

        Raises:
            ValueError: index is not a valid octagon position.
        """
        octagon_position = index % 10
        octagon = np.floor(index / 10.0)
        return AspenQubit(octagon, octagon_position)
Initializes an `AspenQubit` at the given index. See `OctagonalQubit` to understand
        OctagonalQubit indexing.

        Args:
            index: The index at which to initialize the `AspenQubit`.

        Returns:
            The AspenQubit with requested index.

        Raises:
            ValueError: index is not a valid octagon position.
        
cirq-rigetti/cirq_rigetti/aspen_device.py