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.

RoughXSXAmplitudeCal

class RoughXSXAmplitudeCal(physical_qubits, calibrations, amplitudes=None, backend=None)[source]

A rough amplitude calibration of x and sx gates.

Analysis class reference

OscillationAnalysis

Experiment options

These options can be set by the set_experiment_options() method.

Options
  • Defined in the class RoughAmplitudeCal:

    • result_index (int)

      Default value: -1
      The index of the result from which to update the calibrations.
    • angles_schedules (list(float, str, str, float))

      Default value: [(3.141592653589793, "amp", "x", None)]
      A list of parameter update information. Each entry of the list is a tuple with four entries: the target angle of the rotation, the name of the amplitude parameter to update, the name of the schedule containing the amplitude parameter to update, and the previous value of the amplitude parameter to update. This allows one experiment to update several schedules, see for example RoughXSXAmplitudeCal.
    • group (str)

      Default value: "default"
      The calibration group to which the parameter belongs. This will default to the value “default”.
  • Defined in the class Rabi:

    • amplitudes (iterable)

      Default value: array(-0.95, -0.9119999999999999, -0.874, -0.836, -0.7979999999999999, ..., size=51)
      The list of amplitude values to scan.
    • schedule (ScheduleBlock)

      Default value: None
      The schedule for the Rabi pulse. This schedule must have exactly one free parameter. The drive channel should match the qubit.
  • 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

Initialization

A rough amplitude calibration that updates both the sx and x pulses.

Attributes

RoughXSXAmplitudeCal.analysis

Return the analysis instance for the experiment.

RoughXSXAmplitudeCal.backend

Return the backend for the experiment

RoughXSXAmplitudeCal.calibrations

Return the calibrations.

RoughXSXAmplitudeCal.experiment_options

Return the options for the experiment.

RoughXSXAmplitudeCal.experiment_type

Return experiment type.

RoughXSXAmplitudeCal.num_qubits

Return the number of qubits for the experiment.

RoughXSXAmplitudeCal.physical_qubits

Return the device qubits for the experiment.

RoughXSXAmplitudeCal.run_options

Return options values for the experiment run() method.

RoughXSXAmplitudeCal.transpile_options

Return the transpiler options for the run() method.

Methods

RoughXSXAmplitudeCal.circuits()

Create the circuits for the Rabi experiment.

RoughXSXAmplitudeCal.config()

Return the config dataclass for this experiment

RoughXSXAmplitudeCal.copy()

Return a copy of the experiment

RoughXSXAmplitudeCal.enable_restless([...])

Enables a restless experiment by setting the restless run options and the restless data processor.

RoughXSXAmplitudeCal.from_config(config)

Initialize an experiment from experiment config

RoughXSXAmplitudeCal.run([backend, ...])

Run an experiment and perform analysis.

RoughXSXAmplitudeCal.set_experiment_options(...)

Set the experiment options.

RoughXSXAmplitudeCal.set_run_options(**fields)

Set options values for the experiment run() method.

RoughXSXAmplitudeCal.set_transpile_options(...)

Add a warning message.

RoughXSXAmplitudeCal.update_calibrations(...)

Update the amplitude of one or several schedules.