# FineFrequencyCal¶

class FineFrequencyCal(qubit, 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

ErrorAmplificationAnalysis

Experiment Options

These options can be set by set_experiment_options() method.

Parameters:
• result_index (int) – The index of the result from which to update the calibrations.

• group (str) – The calibration group to which the parameter belongs. This will default to the value “default”.

• dt (float) – The duration of the time unit dt of the delay and schedules in seconds.

Transpiler Options

This option can be set by set_transpile_options() method.

This option is used for circuit optimization. See the documentation of qiskit.transpile for available options.

Backend Run Options

This option can be set by set_run_options() method.

This option is used for controlling job execution condition. Note that this option is provider dependent. See provider’s backend runner API for available options. See the documentation of IBMQBackend.run for the IBM Quantum Service.

Module(s) :py:class:FineFrequency

Initialization

see class FineFrequency for 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:
• qubit (int) – 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 named gate_name in 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 if delay_duration is None. This should be the name of a valid schedule in the calibrations.

Attributes

 FineFrequencyCal.analysis Return the analysis instance for the experiment FineFrequencyCal.analysis_options Return the analysis options for run() analysis. FineFrequencyCal.backend Return the backend for the experiment FineFrequencyCal.calibrations Return the calibrations. FineFrequencyCal.experiment_options Return the options for the experiment. FineFrequencyCal.experiment_type Return experiment type. FineFrequencyCal.num_qubits Return the number of qubits for the experiment. FineFrequencyCal.physical_qubits Return the device qubits for the experiment. FineFrequencyCal.run_options Return options values for the experiment run() method. FineFrequencyCal.transpile_options 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 Initialize an experiment from experiment config FineFrequencyCal.run([backend, analysis, ...]) Run an experiment, perform analysis, and update any calibrations. Set the experiment options. Set options values for the experiment run() method. Set the transpiler options for run() method. Update the qubit frequency based on the measured angle deviation.