![]() |
Extracts a minimal set of Floquet characterization requests necessary to characterize all the
cirq_google.calibration.prepare_floquet_characterization_for_operations(
circuit: Union[cirq.Circuit, Iterable[cirq.Circuit]],
options: cirq_google.calibration.FloquetPhasedFSimCalibrationOptions
= cirq_google.calibration.WITHOUT_CHI_FLOQUET_PHASED_FSIM_CHARACTERIZATION
,
gates_translator: Callable[[cirq.Gate], Optional[PhaseCalibratedFSimGate]] = cirq_google.calibration.try_convert_syc_or_sqrt_iswap_to_fsim
,
permit_mixed_moments: bool = False
) -> List[cirq_google.calibration.FloquetPhasedFSimCalibrationRequest
]
operations within a circuit(s).
This variant of prepare method works on two-qubit operations of the circuit. The method extracts all the operations and groups them in a way to minimize the number of characterizations requested, depending on the connectivity.
Contrary to prepare_floquet_characterization_for_moments, this method ignores moments structure and is less accurate because certain errors caused by cross-talks are ignored.
The major advantage of this method is that the number of generated characterization requests is bounded by four for grid-like devices, where for the prepare_floquet_characterization_for_moments the number of characterizations is bounded by number of moments in a circuit.
The circuit can only be composed of single qubit operations, wait operations, measurement operations and operations supported by gates_translator.
Returns | |
---|---|
List of FloquetPhasedFSimCalibrationRequest for each group of operations to characterize. |
Raises | |
---|---|
IncompatibleMomentError when circuit contains a moment with operations other than the operations matched by gates_translator, or it mixes a single qubit and two qubit gates. |