![]() |
Options for configuring a PhasedFSim calibration using a local version of XEB.
Inherits From: XEBPhasedFSimCalibrationOptions
, PhasedFSimCalibrationOptions
cirq_google.calibration.LocalXEBPhasedFSimCalibrationOptions(
n_library_circuits: int = 20,
n_combinations: int = 10,
cycle_depths: Tuple[int, ...] = cirq_google.calibration.XEBPhasedFSimCalibrationOptions.cycle_depths
,
fatol: Optional[float] = 0.005,
xatol: Optional[float] = 0.005,
fsim_options: XEBPhasedFSimCharacterizationOptions = cirq_google.calibration.XEBPhasedFSimCalibrationOptions.fsim_options
,
n_processes: Optional[int] = None
)
XEB uses the fidelity of random circuits to characterize PhasedFSim gates. The parameters of the gate are varied by a classical optimizer to maximize the observed fidelities.
These "Local" options (corresponding to LocalXEBPhasedFSimCalibrationRequest
) instruct
cirq_google.run_calibrations
to execute XEB analysis locally (not via the quantum
engine). As such, run_calibrations
can work with any cirq.Sampler
, not just
ProcessorSampler
.
Methods
create_phased_fsim_request
create_phased_fsim_request(
pairs: Tuple[Tuple[cirq.Qid, cirq.Qid], ...], gate: cirq.Gate
)
Create a PhasedFSimCalibrationRequest of the correct type for these options.
Args | |
---|---|
pairs
|
Set of qubit pairs to characterize. A single qubit can appear on at most one pair in the set. |
gate
|
Gate to characterize for each qubit pair from pairs. This must be a supported gate which can be described cirq.PhasedFSim gate. This gate must be serialized by the cirq_google.SerializableGateSet used |
to_args
to_args() -> Dict[str, Any]
Convert this dataclass to an args
dictionary suitable for sending to the Quantum Engine calibration API.
__eq__
__eq__(
other
)