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.
ResonatorSpectroscopy¶
- class ResonatorSpectroscopy(physical_qubits, backend=None, frequencies=None, absolute=True, **experiment_options)[source]¶
An experiment to perform frequency spectroscopy of the readout resonator.
Warning
Some backends may not have the required functionality to properly support resonator spectroscopy experiments. The experiment may not work or the resulting resonance may not properly reflect the properties of the readout resonator.
Overview
This experiment does spectroscopy on the readout resonator. It applies the following circuit
┌─┐ q: ┤M├ └╥┘ c: 1/═╩═ 0
where a spectroscopy pulse is attached to the measurement instruction. An initial circuit can be added before the measurement by setting the
initial_circuit
experiment option. If set, the experiment applies the following circuit:┌─────────────────┐┌─┐ q: ┤ initial_circuit ├┤M├ └─────────────────┘└╥┘ c: 1/════════════════════╩═ 0
Side note 1: when doing readout resonator spectroscopy, each measured IQ point has a frequency dependent phase. Close to the resonance, the IQ points start rotating around in the IQ plan. This effect must be accounted for in the data processing to produce a meaningful signal. The default data processing workflow will therefore reduce the two- dimensional IQ data to one-dimensional data using the magnitude of each IQ point.
Side node 2: when running readout resonator spectroscopy in a parallel experiment the user will need to specify the memory slot to use. This can easily be done with the code shown below.
specs = [] for slot, qubit in enumerate(qubits): specs.append(ResonatorSpectroscopy( physical_qubits=[qubit], backend=backend2, memory_slot=slot, )) exp = ParallelExperiment(specs, backend=backend2)
Analysis class reference
Experiment options
These options can be set by the
set_experiment_options()
method.- Options
Defined in the class
ResonatorSpectroscopy
:amp (float)
Default value:1
The amplitude of the spectroscopy pulse. Defaults to 1 and must be between 0 and 1.duration (float)
Default value:4.8e-07
The duration in seconds of the spectroscopy pulse.sigma (float)
Default value:6e-08
The standard deviation of the spectroscopy pulse in seconds.width (float)
Default value:3.6e-07
The width of the flat-top part of the GaussianSquare pulse in seconds.initial_circuit (QuantumCircuit)
Default value:None
A single-qubit initial circuit to run before the measurement/spectroscopy pulse. The circuit must contain only a single qubit and zero classical bits. If None, no circuit is appended before the measurement. Defaults to None.memory_slot (int)
Default value:0
The memory slot that the acquire instruction uses in the pulse schedule. The default value is0
. This argument allows the experiment to function in aParallelExperiment
.
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
The resonator spectroscopy experiment can be run by doing:
qubit = 1 spec = ResonatorSpectroscopy([qubit], backend) exp_data = spec.run().block_for_results() exp_data.figure(0)
This will measure the resonator attached to qubit 1 and report the resonance frequency as well as the kappa, i.e. the line width, of the resonator.
See also
Superclass
qiskit_experiments.library.characterization.spectroscopy.Spectroscopy
Initialization
Initialize a resonator spectroscopy experiment.
A spectroscopy experiment run by setting the frequency of the readout drive. The parameters of the GaussianSquare spectroscopy pulse can be specified at run-time through the experiment options.
- Parameters:
physical_qubits (
Sequence
[int
]) – List containing the qubit on which to run readout spectroscopy.backend (
Optional
[Backend
]) – Optional, the backend to run the experiment on.frequencies (
Optional
[Iterable
[float
]]) – The frequencies to scan in the experiment, in Hz. The default values range from -20 MHz to 20 MHz in 51 steps. If theabsolute
variable is set to True then a center frequency obtained from the backend’s defaults is added to each value of this range.absolute (
bool
) – Boolean to specify if the frequencies are absolute or relative to the resonator frequency in the backend. The default value is True.experiment_options – Key word arguments used to set the experiment options.
- Raises:
QiskitError – If no frequencies are given and absolute frequencies are desired and no backend is given or the backend does not have default measurement frequencies.
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 circuit for the spectroscopy experiment.
Return the config dataclass for this experiment
Return a copy of the experiment
Initialize an experiment from experiment config
ResonatorSpectroscopy.run
([backend, ...])Run an experiment and perform analysis.
Set the experiment options.
ResonatorSpectroscopy.set_run_options
(**fields)Set options values for the experiment
run()
method.Set the transpiler options for
run()
method.