StarkRamseyXYAmpScan¶
- class StarkRamseyXYAmpScan(physical_qubits, backend=None, **experiment_options)[source]¶
A fast characterization of Stark frequency shift by varying Stark tone amplitude.
Overview
This experiment scans Stark tone amplitude at a fixed tone duration. The experimental circuits are identical to the
StarkRamseyXYexperiment except that the Stark pulse amplitude is the scanned parameter rather than the pulse width.(Ramsey X) The pulse before measurement rotates by pi-half around the X axis ┌────┐┌───────────────────┐┌───┐┌───────────────────┐┌────────┐┌────┐┌─┐ q: ┤ √X ├┤ StarkV(stark_amp) ├┤ X ├┤ StarkU(stark_amp) ├┤ Rz(-π) ├┤ √X ├┤M├ └────┘└───────────────────┘└───┘└───────────────────┘└────────┘└────┘└╥┘ c: 1/══════════════════════════════════════════════════════════════════════╩═ 0 (Ramsey Y) The pulse before measurement rotates by pi-half around the Y axis ┌────┐┌───────────────────┐┌───┐┌───────────────────┐┌───────────┐┌────┐┌─┐ q: ┤ √X ├┤ StarkV(stark_amp) ├┤ X ├┤ StarkU(stark_amp) ├┤ Rz(-3π/2) ├┤ √X ├┤M├ └────┘└───────────────────┘└───┘└───────────────────┘└───────────┘└────┘└╥┘ c: 1/═════════════════════════════════════════════════════════════════════════╩═ 0The AC Stark effect can be used to shift the frequency of a qubit with a microwave drive. To calibrate a specific frequency shift, the
StarkRamseyXYexperiment can be run to scan the Stark pulse duration at every amplitude, but such a two dimensional scan of the tone duration and amplitude may require many circuit executions. To avoid this overhead, theStarkRamseyXYAmpScanexperiment fixes the tone duration and scans only amplitude.Recall that an observed Ramsey oscillation in each quadrature may be represented by
\[\begin{split}{\cal E}_X(\Omega, t_S) = A e^{-t_S/\tau} \cos \left( 2\pi f_S(\Omega) t_S \right), \\ {\cal E}_Y(\Omega, t_S) = A e^{-t_S/\tau} \sin \left( 2\pi f_S(\Omega) t_S \right),\end{split}\]where \(f_S(\Omega)\) denotes the amount of Stark shift at a constant tone amplitude \(\Omega\), and \(t_S\) is the duration of the applied tone. For a fixed tone duration, one can still observe the Ramsey oscillation by scanning the tone amplitude. However, since \(f_S\) is usually a higher order polynomial of \(\Omega\), one must manage to fit the y-data for trigonometric functions with phase which non-linearly changes with the x-data. The
StarkRamseyXYAmpScanexperiment thus drastically reduces the number of circuits to run in return for greater complexity in the fitting model.User manual
Analysis class reference
qiskit_experiments.library.driven_freq_tuning.StarkRamseyXYAmpScanAnalysisExperiment options
These options can be set by the
set_experiment_options()method.- Options
Defined in the class
StarkRamseyXYAmpScan:stark_channel (PulseChannel)
Default value:NonePulse channel on which to apply Stark tones. If not provided, the same channel with the qubit drive is used. See Stark tone channel for details.stark_freq_offset (float)
Default value:80000000.0Offset of Stark tone frequency from the qubit frequency. This offset should be sufficiently large so that the Stark pulse does not Rabi drive the qubit. See Stark tone frequency for details.stark_sigma (float)
Default value:1.5e-08Gaussian sigma of the rising and falling edges of the Stark tone, in seconds.stark_risefall (float)
Default value:2Ratio of sigma to the duration of the rising and falling edges of the Stark tone.stark_length (float)
Default value:5e-08Time to accumulate Stark shifted phase in seconds.min_stark_amp (float)
Default value:-1.0Minimum Stark tone amplitude.max_stark_amp (float)
Default value:1.0Maximum Stark tone amplitude.num_stark_amps (int)
Default value:101Number of Stark tone amplitudes to scan.stark_amps (list[float])
Default value:NoneThe list of amplitude that will be scanned in the experiment. If not set, thennum_stark_ampsevenly spaced amplitudes betweenmin_stark_ampandmax_stark_ampare used. Ifstark_ampsis set, these parameters are ignored.
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
qiskit_experiments.library.driven_freq_tuning.ramsey.StarkRamseyXYqiskit_experiments.library.characterization.ramsey_xy.RamseyXYInitialization
Create new experiment.
Deprecated since version 0.8: The class
qiskit_experiments.library.driven_freq_tuning.ramsey_amp_scan.StarkRamseyXYAmpScanis deprecated as of qiskit-experiments 0.8. It will be removed no earlier than 3 months after the release date. Due to the deprecation of Qiskit Pulse, experiments involving pulse gate calibrations like this one have been deprecated.- Parameters:
physical_qubits (Sequence[int]) – Sequence with the index of the physical qubit.
backend (Backend | None) – Optional, the backend to run the experiment on.
experiment_options – Experiment options. See the class documentation or
self._default_experiment_optionsfor descriptions.
Attributes
- analysis¶
Return the analysis instance for the experiment
- backend¶
Return the backend for the experiment
- experiment_options¶
Return the options for the experiment.
- experiment_type¶
Return experiment type.
- num_qubits¶
Return the number of qubits for the experiment.
- physical_qubits¶
Return the device qubits for the experiment.
Methods
- circuits()[source]¶
Create circuits.
- Returns:
A list of circuits with a variable Stark tone amplitudes.
- Return type:
list[QuantumCircuit]
- config()¶
Return the config dataclass for this experiment
- Return type:
- copy()¶
Return a copy of the experiment
- Return type:
- classmethod from_config(config)¶
Initialize an experiment from experiment config
- Return type:
- job_info(backend=None)¶
Get information about job distribution for the experiment on a specific backend.
- Parameters:
backend (Backend) – Optional, the backend for which to get job distribution information. If not specified, the experiment must already have a set backend.
- Returns:
A dictionary containing information about job distribution.
”Total number of circuits in the experiment”: Total number of circuits in the experiment.
”Maximum number of circuits per job”: Maximum number of circuits in one job based on backend and experiment settings.
”Total number of jobs”: Number of jobs needed to run this experiment on the currently set backend.
- Return type:
dict
- Raises:
QiskitError – if backend is not specified.
- parameterized_circuits()[source]¶
Create circuits with parameters for Ramsey XY experiment with Stark tone.
- Returns:
Quantum template circuits for Ramsey X and Ramsey Y experiment.
- Return type:
tuple[QuantumCircuit, …]
- parameters()[source]¶
Stark tone amplitudes to use in circuits.
- Returns:
The list of amplitudes to use for the different circuits based on the experiment options.
- Return type:
ndarray
- run(backend=None, sampler=None, analysis='default', timeout=None, backend_run=None, **run_options)¶
Run an experiment and perform analysis.
- Parameters:
backend (Backend | None) – Optional, the backend to run on. Will override existing backend settings.
sampler (BaseSamplerV2 | None) – Optional, the sampler to run the experiment on. If None then a sampler will be invoked from previously set backend
analysis (BaseAnalysis | None) – Optional, a custom analysis instance to use for performing analysis. If None analysis will not be run. If
"default"the experimentsanalysis()instance will be used if it contains one.timeout (float | None) – Time to wait for experiment jobs to finish running before cancelling.
backend_run (bool | None) – Use backend run (temp option for testing)
run_options – backend runtime options used for circuit execution.
- Returns:
The experiment data object.
- Raises:
QiskitError – If experiment is run with an incompatible existing ExperimentData container.
- Return type:
- set_experiment_options(**fields)¶
Set the experiment options.
- Parameters:
fields – The fields to update the options
- Raises:
AttributeError – If the field passed in is not a supported options
- set_run_options(**fields)¶
Set options values for the experiment
run()method.- Parameters:
fields – The fields to update the options
See also
The Setting options for your experiment guide for code example.
- set_transpile_options(**fields)¶
Set the transpiler options for
run()method.- Parameters:
fields – The fields to update the options
- Raises:
QiskitError – If initial_layout is one of the fields.
See also
The Setting options for your experiment guide for code example.