cirq.line_on_device

cirq.line_on_device(device: cirq.google.xmon_device.XmonDevice, length: int, method: cirq.line.placement.place_strategy.LinePlacementStrategy = <cirq.line.placement.greedy.GreedySequenceSearchStrategy object>) → cirq.line.placement.sequence.GridQubitLineTuple[source]

Searches for linear sequence of qubits on device.

Parameters:
  • device – Google Xmon device instance.
  • length – Desired number of qubits making up the line.
  • method – Line placement method. Defaults to cirq.greedy.GreedySequenceSearchMethod.
Returns:

Line sequences search results.