def get_or_search(self) -> list[GridQubit]:
        """Starts the search or gives previously calculated sequence.

        Returns:
            The linear qubit sequence found.
        """
        if not self._sequence:
            self._sequence = self._find_sequence()
        return self._sequence
Starts the search or gives previously calculated sequence.

        Returns:
            The linear qubit sequence found.
        
cirq-google/cirq_google/line/placement/greedy.py