Runs calibration requests on the Engine.
cirq.google.run_calibrations(
calibrations: Sequence[cirq.google.PhasedFSimCalibrationRequest
],
engine: Union[cirq.google.Engine
, cirq.google.PhasedFSimEngineSimulator
],
processor_id: Optional[str] = None,
gate_set: Optional[cirq.google.SerializableGateSet
] = None,
max_layers_per_request: int = 1,
progress_func: Optional[Callable[[int, int], None]] = None
) -> List[cirq.google.PhasedFSimCalibrationResult
]
Used in the notebooks
Args |
calibrations
|
List of calibrations to perform described in a request object.
|
engine
|
cirq.google.Engine or cirq.google.PhasedFSimEngineSimulator object used for running
the calibrations. When cirq.google.Engine then processor_id and gate_set arguments must
be provided as well.
|
processor_id
|
processor_id passed to engine.run_calibrations method. Can be None when
cirq.google.PhasedFSimEngineSimulator is used as an engine.
|
gate_set
|
Gate set to use for characterization request. Can be None when
cirq.google.PhasedFSimEngineSimulator is used as an engine.
|
max_layers_per_request
|
Maximum number of calibration requests issued to cirq.Engine at a
single time. Defaults to 1.
|
progress_func
|
Optional callback function that might be used to report the calibration
progress. The callback is called with two integers, the first one being a number of
layers already calibrated and the second one the total number of layers to calibrate.
|
Returns |
List of PhasedFSimCalibrationResult for each requested calibration.
|