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.
RoughDragCal¶
- class RoughDragCal(physical_qubits, calibrations, backend=None, schedule_name='x', betas=None, cal_parameter_name='β', auto_update=True, group='default')[source]¶
A calibration version of the
RoughDrag
experiment.User manual
Calibrating the value of the DRAG coefficient
Analysis class reference
DragCalAnalysis
Experiment options
These options can be set by the
set_experiment_options()
method.- Options
Defined in the class
BaseCalibrationExperiment
:result_index (int)
Default value:-1
The 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
RoughDrag
:schedule (ScheduleBlock)
Default value:None
The schedule of the rotation.reps (List[int])
Default value: [1
,3
,5
]The number of times the Rp - Rm gate sequence is repeated in each series. Note that this list must always have a length of three as otherwise the analysis class will not run.betas (Iterable)
Default value:array(-5.0, -4.8, -4.6, -4.4, -4.2, ..., size=51)
the values of the DRAG parameter to scan.
Defined in the class
BaseExperiment
:max_circuits (Optional[int])
Default value:None
The maximum number of circuits per job when running an experiment on a backend.
See also
Superclass
qiskit_experiments.calibration_management.base_calibration_experiment.BaseCalibrationExperiment
Superclass
qiskit_experiments.library.characterization.drag.RoughDrag
Initialization
see class
RoughDrag
for details.- Parameters:
physical_qubits (
Sequence
[int
]) – Sequence containing the qubit for which to run the rough DRAG calibration.calibrations (
Calibrations
) – The calibrations instance with the schedules.backend (
Optional
[Backend
]) – Optional, the backend to run the experiment on.schedule_name (
str
) – The name of the schedule to calibrate. Defaults to “x”.betas (
Optional
[Iterable
[float
]]) – A list of DRAG parameter values to scan. If None is given 51 betas ranging from -5 to 5 will be scanned.cal_parameter_name (
Optional
[str
]) – The name of the parameter in the schedule to update. Defaults to “β”.auto_update (
bool
) – Whether or not to automatically update the calibrations. By default this variable is set to True.group (
str
) – The group of calibration parameters to use. The default value is “default”.
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
Create the circuits for the Drag calibration.
Return the config dataclass for this experiment
Return a copy of the experiment
RoughDragCal.enable_restless
([rep_delay, ...])Enables a restless experiment by setting the restless run options and the restless data processor.
RoughDragCal.from_config
(config)Initialize an experiment from experiment config
RoughDragCal.run
([backend, analysis, timeout])Run an experiment and perform analysis.
RoughDragCal.set_experiment_options
(**fields)Set the experiment options.
RoughDragCal.set_run_options
(**fields)Set options values for the experiment
run()
method.RoughDragCal.set_transpile_options
(**fields)Add a warning message.
RoughDragCal.update_calibrations
(experiment_data)Update the beta using the value directly reported from the fit.