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.
FineZXAmplitude¶
- class FineZXAmplitude(physical_qubits, backend=None)[source]¶
A fine amplitude experiment for the
RZXGate(np.pi / 2)
.Overview
FineZXAmplitude
is a subclass ofFineAmplitude
and is used to set the appropriate values for the default options to calibrate aRZXGate(np.pi / 2)
.Analysis class reference
Experiment options
These options can be set by the
set_experiment_options()
method.- Options
Defined in the class
FineZXAmplitude
:add_cal_circuits (bool)
Default value:False
If set to True then two circuits to calibrate 0 and 1 points will be added. This option is set to False by default forFineZXAmplitude
since the amplitude calibration can be achieved with two RZX gates and this is included in the repetitions.repetitions (List[int])
Default value: [0
,1
,2
,3
,4
, …]A list of the number of times that the gate is repeated.
Defined in the class
FineAmplitude
:gate (Gate)
Default value:None
This is a gate class such as XGate, so that one can obtain a gate by doingoptions.gate()
.normalization (bool)
Default value:True
If set to True the DataProcessor will normalized the measured signal to the interval [0, 1]. Defaults to True.
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.
Example
To run this experiment, the user will have to provide the instruction schedule map in the transpile options that contains the schedule for the experiment.
qubits = (1, 2) inst_map = InstructionScheduleMap() inst_map.add("szx", qubits, my_schedule) fine_amp = FineZXAmplitude(qubits, backend) fine_amp.set_transpile_options(inst_map=inst_map)
Here,
my_schedule
is the pulse schedule that will implement theRZXGate(np.pi / 2)
rotation.See also
Initialization
Initialize the experiment.
Attributes
Return the analysis instance for the experiment
Return the backend for the experiment
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 fine amplitude calibration experiment.
Return the config dataclass for this experiment
Return a copy of the experiment
FineZXAmplitude.enable_restless
([rep_delay, ...])Enable restless measurements.
FineZXAmplitude.from_config
(config)Initialize an experiment from experiment config
FineZXAmplitude.run
([backend, analysis, timeout])Run an experiment and perform analysis.
FineZXAmplitude.set_experiment_options
(**fields)Set the experiment options.
FineZXAmplitude.set_run_options
(**fields)Set options values for the experiment
run()
method.FineZXAmplitude.set_transpile_options
(**fields)Set the transpiler options for
run()
method.