View source on GitHub |
Linearized sequence search using simulated annealing method.
Inherits From: LinePlacementStrategy
cirq_google.line.AnnealSequenceSearchStrategy(
trace_func: Optional[Callable[[List[LineSequence], float, float, float, bool], None]] = None,
seed: Optional[int] = None
) -> None
efficiency improvements. Github issue: https://github.com/quantumlib/Cirq/issues/2217
Methods
place_line
place_line(
device: 'cirq_google.GridDevice', length: int
) -> cirq_google.line.placement.GridQubitLineTuple
Runs line sequence search.
Args | |
---|---|
device
|
Chip description. |
length
|
Required line length. |
Returns | |
---|---|
List of linear sequences on the chip found by simulated annealing method. |