Note
This is the documentation for the current state of the development branch of Qiskit Experiments. The documentation or APIs here can change prior to being released.
FineFrequencyCal¶
- class FineFrequencyCal(physical_qubits, calibrations, backend=None, delay_duration=None, repetitions=None, auto_update=True, gate_name='sx')[source]¶
A calibration version of the fine frequency experiment.
Analysis class reference
Experiment options
These options can be set by the
set_experiment_options()method.- Options
Defined in the class
FineFrequencyCal:dt (float)
Default value:NoneThe duration of the time unitdtof the delay and schedules in seconds.
Defined in the class
BaseCalibrationExperiment:result_index (int)
Default value:-1The index of the result from which to update the calibrations.group (str)
Default value:"default"The calibration group to which the parameter belongs. This will default to the value “default”.
Defined in the class
FineFrequency:repetitions (List[int])
Default value: [0,1,2,3,4, …]A list of the number of times that the delay is repeated.delay_duration (int)
Default value:NoneThe duration of the delay as the number ofdts it contains. The total length of the delay in units ofdtwill be n timesdelay_durationwhere n also determines the rotation angle of theRZGateby \(n \pi/2\).
Defined in the class
BaseExperiment:max_circuits (Optional[int])
Default value:NoneThe maximum number of circuits per job when running an experiment on a backend.
See also
Superclass
qiskit_experiments.calibration_management.base_calibration_experiment.BaseCalibrationExperimentSuperclass
qiskit_experiments.library.characterization.fine_frequency.FineFrequency
Initialization
See class
FineFrequencyfor details.Note that this class implicitly assumes that the target angle of the gate is \(\pi/2\) as seen from the default analysis options. This experiment can be seen as a calibration of a finite duration
rz(pi/2)gate with any error attributed to a frequency offset in the qubit.- Parameters:
physical_qubits (
Sequence[int]) – Sequence containing the qubit for which to run the fine frequency calibration.calibrations (
Calibrations) – The calibrations instance with the schedules.backend (
Optional[Backend]) – Optional, the backend to run the experiment on.delay_duration (
Optional[int]) – The duration of the delay at \(n=1\). If this value is not given then the duration of the gate namedgate_namein the calibrations will be used.auto_update (
bool) – Whether or not to automatically update the calibrations. By default this variable is set to True.gate_name (
str) – This argument is only needed ifdelay_durationis None. This should be the name of a valid schedule in the calibrations.
Attributes
Return the analysis instance for the experiment.
Return the backend for the experiment
Return the calibrations.
Return the options for the experiment.
Return experiment type.
Return the number of qubits for the experiment.
Return the device qubits for the experiment.
Return options values for the experiment
run()method.Return the transpiler options for the
run()method.Methods
Return the list of quantum circuits to run.
Return the config dataclass for this experiment
Return a copy of the experiment
FineFrequencyCal.from_config(config)Initialize an experiment from experiment config
FineFrequencyCal.run([backend, analysis, ...])Run an experiment and perform analysis.
FineFrequencyCal.set_experiment_options(**fields)Set the experiment options.
FineFrequencyCal.set_run_options(**fields)Set options values for the experiment
run()method.FineFrequencyCal.set_transpile_options(**fields)Add a warning message.
Update the qubit frequency based on the measured angle deviation.