View source on GitHub |
Compute the estimated time for running a parameter sweep across a single Circuit.
cirq_google.engine.estimate_run_sweep_time(
program: cirq.AbstractCircuit,
params: cirq.Sweepable = None,
repetitions: int = 1000,
latency: Optional[float] = _BASE_LATENCY
) -> float
This should approximate, in seconds, the time for the execution of a batch of circuits using Engine.run_sweep() on QCS at a time where there is no queue (such as a reserved slot). This estimation should be considered a rough approximation. Many factors can contribute to the execution time of a circuit, and the run time can also vary as the service's code changes frequently.