|View source on GitHub|
Compensates circuit moments against errors in zeta, chi and gamma angles.
cirq_google.calibration.make_zeta_chi_gamma_compensation_for_moments( circuit: Union[cirq.Circuit, CircuitWithCalibration], characterizations: List[
cirq_google.calibration.PhasedFSimCalibrationResult], *, gates_translator: Callable[[cirq.Gate], Optional[PhaseCalibratedFSimGate]] =
cirq_google.calibration.phased_fsim.try_convert_gate_to_fsim, merge_subsets: bool = True, permit_mixed_moments: bool = False ) ->
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.
|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.|