def __init__(self,
                 device: 'cirq.google.XmonDevice',
                 start: GridQubit) -> None:
        """Greedy sequence search constructor.

        Args:
            device: Chip description.
            start: Starting qubit.

        Raises:
            ValueError: When start qubit is not part of a chip.
        """
        if start not in device.qubits:
            raise ValueError('Starting qubit must be a qubit on the chip')

        self._c = device.qubits
        self._c_adj = chip_as_adjacency_list(device)
        self._start = start
        self._sequence = None
def __init__ ( self , device : 'cirq.google.XmonDevice' , start : GridQubit ) -> None : if start not in device . qubits : raise ValueError ( 'Starting qubit must be a qubit on the chip' ) self . _c = device . qubits self . _c_adj = chip_as_adjacency_list ( device ) self . _start = start self . _sequence = None
Greedy sequence search constructor.

        Args:
            device: Chip description.
            start: Starting qubit.

        Raises:
            ValueError: When start qubit is not part of a chip.