cirq.google.make_zeta_chi_gamma_compensation_for_moments

Compensates circuit moments against errors in zeta, chi and gamma angles.

Used in the notebooks

Used in the tutorials

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.

circuit_with_calibration A CircuitWithCalibration (likely returned from run_calibrations) whose mapping argument corresponds to the results in the characterizations argument.
characterizations List of characterization results (likely returned from run_calibrations). This should correspond to the circuit and mapping in the circuit_with_calibration argument.
gates_translator 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.