View source on GitHub |
Compute the estimated time for running a batch of programs.
cirq_google.engine.estimate_run_batch_time(
programs: Sequence[cirq.AbstractCircuit],
params_list: List[cirq.Sweepable],
repetitions: int = 1000,
latency: float = _BASE_LATENCY
) -> float
This should approximate, in seconds, the time for the execution of a batch of circuits using Engine.run_batch() 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.