|View source on GitHub|
Compensates circuit moments against errors in zeta, chi and gamma angles.
cirq_google.calibration.CircuitWithCalibration, characterizations: List[
cirq_google.calibration.PhasedFSimCalibrationResult], gates_translator: Callable[[Gate], Optional[PhaseCalibratedFSimGate]] = cirq_google.calibration.try_convert_sqrt_iswap_to_fsim ) ->
This method creates a new circuit with a single-qubit Z gates added in a such way so that zeta, chi and gamma angles discovered by characterizations are cancelled-out and set to 0.
This function preserves a moment structure of the circuit. All single qubit gates appear on new moments in the final circuit.
||A CircuitWithCalibration (likely returned from run_calibrations) whose mapping argument corresponds to the results in the characterizations argument.|
||List of characterization results (likely returned from run_calibrations). This should correspond to the circuit and mapping in the circuit_with_calibration argument.|
||Function that translates a gate to a supported FSimGate which will undergo characterization. Defaults to sqrt_iswap_gates_translator.|
|Calibrated circuit together with its calibration metadata in CircuitWithCalibration object. The calibrated circuit has single-qubit Z gates added which compensates for the true gates imperfections. The moment to calibration mapping is updated for the new circuit so that successive calibrations could be applied.|