See also
A Jupyter notebook version of this tutorial can be downloaded here
.
Single transmon qubit characterization#
The experiments of this tutorial are meant to be executed with a Qblox Cluster controlling a transmon system.
The experiments can also be executed using a dummy Qblox device that is created via an instance of the Cluster
class, and is initialized with a dummy configuration.
When using a dummy device, the analysis will not work because the experiments will return np.nan
values.
Setup#
In this section we configure the hardware configuration which specifies the connectivity of our system.
Configuration file#
This is a template hardware configuration file for a 1-qubit system with a flux-control line which can be used to tune the qubit frequency.
The hardware setup is as follows, by cluster slot: - QCM-RF (Slot 6) - Drive line for qubit
using fixed 80 MHz IF. - QCM (Slot 2) - Flux line for qubit
. - QRM-RF (Slot 8) - Readout line for qubit
using a fixed LO set at 7.5 GHz.
Note that in the hardware configuration below the mixers are uncorrected, but for high fidelity experiments this should also be done for all the modules.
[1]:
hardware_cfg = {
"config_type": "quantify_scheduler.backends.qblox_backend.QbloxHardwareCompilationConfig",
"hardware_description": {
"cluster0": {
"instrument_type": "Cluster",
"modules": {
2: {"instrument_type": "QCM"},
6: {"instrument_type": "QCM_RF"},
8: {"instrument_type": "QRM_RF"},
},
"sequence_to_file": False,
"ref": "internal",
}
},
"hardware_options": {
"output_att": {},
"input_att": {},
"modulation_frequencies": {
"qubit:mw-qubit.01": {"interm_freq": 80e6},
"qubit:res-qubit.ro": {"lo_freq": 7.5e9},
},
"mixer_corrections": {
"qubit:mw-qubit.01": {
"dc_offset_i": 0.0,
"dc_offset_q": 0.0,
"amp_ratio": 1.0,
"phase_error": 0.0,
},
"qubit:res-qubit.ro": {
"dc_offset_i": 0.0,
"dc_offset_q": 0.0,
"amp_ratio": 1.0,
"phase_error": 0.0,
},
},
},
"connectivity": {
"graph": [
("cluster0.module2.real_output_0", "qubit:fl"),
("cluster0.module6.complex_output_0", "qubit:mw"),
("cluster0.module8.complex_output_0", "qubit:res"),
]
},
}
[2]:
import warnings
import numpy as np
from qcodes.instrument import find_or_create_instrument
from qcodes.parameters import ManualParameter
import quantify_core.data.handling as dh
from qblox_instruments import Cluster, ClusterType
from quantify_core.measurement.control import MeasurementControl
from quantify_core.visualization.pyqt_plotmon import PlotMonitor_pyqt as PlotMonitor
from quantify_scheduler.device_under_test.quantum_device import QuantumDevice
from quantify_scheduler.device_under_test.transmon_element import BasicTransmonElement
from quantify_scheduler.gettables import ScheduleGettable
from quantify_scheduler.instrument_coordinator import InstrumentCoordinator
from quantify_scheduler.instrument_coordinator.components.qblox import ClusterComponent
from quantify_scheduler.operations.gate_library import Measure, Reset
from quantify_scheduler.operations.pulse_library import SetClockFrequency, SquarePulse
from quantify_scheduler.resources import ClockResource
from quantify_scheduler.schedules import heterodyne_spec_sched_nco, rabi_sched, t1_sched
from quantify_scheduler.schedules.schedule import Schedule
from quantify_scheduler.schedules.timedomain_schedules import ramsey_sched
Scan For Clusters#
We scan for the available devices connected via ethernet using the Plug & Play functionality of the Qblox Instruments package (see Plug & Play for more info).
[3]:
!qblox-pnp list
No devices found
[4]:
cluster_ip = None # To run this tutorial on hardware, fill in the IP address of the cluster here
cluster_name = "cluster0"
Connect to Cluster#
We now make a connection with the Cluster.
[5]:
cluster = find_or_create_instrument(
Cluster,
recreate=True,
name=cluster_name,
identifier=cluster_ip,
dummy_cfg=(
{
2: ClusterType.CLUSTER_QCM,
4: ClusterType.CLUSTER_QRM,
6: ClusterType.CLUSTER_QCM_RF,
8: ClusterType.CLUSTER_QRM_RF,
}
if cluster_ip is None
else None
),
)
Reset the Cluster#
We reset the Cluster to enter a well-defined state. Note that resetting will clear all stored parameters and repeats startup calibration, so resetting between experiments is usually not desirable.
[6]:
cluster.reset()
print(cluster.get_system_status())
Status: RESOLVED, Flags: TEMPERATURE_OUT_OF_RANGE, Slot flags: SLOT2_TEMPERATURE_OUT_OF_RANGE, SLOT4_TEMPERATURE_OUT_OF_RANGE, SLOT6_TEMPERATURE_OUT_OF_RANGE, SLOT8_TEMPERATURE_OUT_OF_RANGE
Note that a dummy cluster will raise error flags, this is expected behavior and can be ignored.
Quantum device settings#
Here we initialize our QuantumDevice
and our qubit parameters, checkout this tutorial for further details.
In short, a QuantumDevice
contains device elements where we save our found parameters.
[7]:
qubit = find_or_create_instrument(BasicTransmonElement, recreate=True, name="qubit")
qubit.measure.acq_channel(0)
quantum_device = find_or_create_instrument(QuantumDevice, recreate=True, name="device_1q")
quantum_device.hardware_config(hardware_cfg)
quantum_device.add_element(qubit)
Configure measurement control loop#
We will use a MeasurementControl
object for data acquisition as well as an InstrumentCoordinator
for controlling the instruments in our setup.
The PlotMonitor
is used for live plotting.
All of these are then associated with the QuantumDevice
.
[8]:
def configure_measurement_control_loop(
device: QuantumDevice, cluster: Cluster, live_plotting: bool = False
):
meas_ctrl = find_or_create_instrument(MeasurementControl, recreate=True, name="meas_ctrl")
ic = find_or_create_instrument(InstrumentCoordinator, recreate=True, name="ic")
# Add cluster to instrument coordinator
ic_cluster = ClusterComponent(cluster)
ic.add_component(ic_cluster)
if live_plotting:
# Associate plot monitor with measurement controller
plotmon = find_or_create_instrument(PlotMonitor, recreate=False, name="PlotMonitor")
meas_ctrl.instr_plotmon(plotmon.name)
# Associate measurement controller and instrument coordinator with the quantum device
device.instr_measurement_control(meas_ctrl.name)
device.instr_instrument_coordinator(ic.name)
return (meas_ctrl, ic)
meas_ctrl, instrument_coordinator = configure_measurement_control_loop(quantum_device, cluster)
Set data directory#
This directory is where all of the experimental data as well as all of the post processing will go.
[9]:
# Enter your own dataset directory here!
dh.set_datadir(dh.default_datadir())
Data will be saved in:
/root/quantify-data
Configure external flux control#
In the case of flux-tunable transmon qubits, we need to have some way of controlling the external flux.
This can be done by setting an output bias on a module of the cluster which is then connected to the flux line.
If your system is not using flux-tunable transmons, then you can skip to the next section.
[10]:
flux_settable: callable = cluster.module2.out0_offset
flux_settable.inter_delay = 100e-9 # Delay time in seconds between consecutive set operations.
flux_settable.step = 0.3e-3 # Stepsize in V that this Parameter uses during set operation.
flux_settable(0.0)
Activate NCO delay compensation#
Compensate for the digital propagation delay for each qubit (i.e each sequencer)
For more info, please see the API reference.
To avoid mismatches between modulation and demodulation, the delay between any readout frequency or phase changes and the next acquisition should be equal or greater than the total propagation delay (146ns + user defined value).
[11]:
for i in range(6):
getattr(cluster.module8, f"sequencer{i}").nco_prop_delay_comp_en(True)
getattr(cluster.module8, f"sequencer{i}").nco_prop_delay_comp(50)
Characterization experiments#
The sweep setpoints for all experiments (e.g. frequency_setpoints
in the spectroscopy experiments) are only examples. The sweep setpoints should be changed to match your own system.
We show two sets of experiments: The first contains generic characterization experiments for transmon qubits. The second contains 2D experiments for finding the flux sweetspot, applicable for flux-tunable qubits.
Here we consider five standard characterization experiments for single qubit tuneup. The experiments are: 1. Resonator spectroscopy - Used to find the frequency response of the readout resonator when the qubit is in \(|0\rangle\). 2. Qubit spectroscopy (a.k.a two-tone) - Used to find the \(|0\rangle \rightarrow |1\rangle\) drive frequency. 3. Rabi oscillations - Used to find precise excitation pulse required to excite the qubit to \(|1\rangle\). 4. Ramsey oscillations - Used to tune the \(|0\rangle \rightarrow |1\rangle\) drive frequency more precisely. - Used to measure \(T_2^*\). 5. T1 - Used to find the time it takes for the qubit to decay from \(|1\rangle\) to \(|0\rangle\), the \(T_1\) time.
Resonator spectroscopy#
[12]:
freq = ManualParameter(name="freq", unit="Hz", label="Frequency")
freq.batched = True
freq.batch_size = 100
spec_sched_kwargs = dict(
pulse_amp=1 / 6,
pulse_duration=2e-6,
frequencies=freq,
acquisition_delay=196e-9,
integration_time=2e-6,
init_duration=10e-6,
port=qubit.ports.readout(),
clock=qubit.name + ".ro",
)
gettable = ScheduleGettable(
quantum_device,
schedule_function=heterodyne_spec_sched_nco,
schedule_kwargs=spec_sched_kwargs,
real_imag=False,
batched=True,
)
meas_ctrl.gettables(gettable)
[13]:
quantum_device.cfg_sched_repetitions(400)
center = 7.7e9
frequency_setpoints = np.linspace(center - 20e6, center + 20e6, 300)
meas_ctrl.settables(freq)
meas_ctrl.setpoints(frequency_setpoints)
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=RuntimeWarning, message="Clock")
rs_ds = meas_ctrl.run("resonator spectroscopy")
rs_ds
Starting batched measurement...
Iterative settable(s) [outer loop(s)]:
--- (None) ---
Batched settable(s):
freq
Batch size limit: 100
[13]:
<xarray.Dataset> Dimensions: (dim_0: 300) Coordinates: x0 (dim_0) float64 7.68e+09 7.68e+09 7.68e+09 ... 7.72e+09 7.72e+09 Dimensions without coordinates: dim_0 Data variables: y0 (dim_0) float64 nan nan nan nan nan nan ... nan nan nan nan nan nan y1 (dim_0) float64 nan nan nan nan nan nan ... nan nan nan nan nan nan Attributes: tuid: 20240723-095648-174-38d3aa name: resonator spectroscopy grid_2d: False grid_2d_uniformly_spaced: False 1d_2_settables_uniformly_spaced: False
[14]:
qubit.reset.duration(100e-6)
qubit.measure.acq_delay(spec_sched_kwargs["acquisition_delay"])
qubit.measure.pulse_amp(spec_sched_kwargs["pulse_amp"])
qubit.measure.pulse_duration(spec_sched_kwargs["pulse_duration"])
qubit.measure.integration_time(spec_sched_kwargs["integration_time"])
qubit.clock_freqs.readout(7.9e9)
Resonator punchout#
[15]:
freq = ManualParameter(name="freq", unit="Hz", label="Frequency")
freq.batched = True
ro_pulse_amp = ManualParameter(name="ro_pulse_amp", unit="", label="Readout pulse amplitude")
ro_pulse_amp.batched = False
spec_sched_kwargs = dict(
pulse_amp=ro_pulse_amp,
pulse_duration=2e-6,
frequencies=freq,
acquisition_delay=196e-9,
integration_time=2e-6,
init_duration=10e-6,
port=qubit.ports.readout(),
clock=qubit.name + ".ro",
)
gettable = ScheduleGettable(
quantum_device,
schedule_function=heterodyne_spec_sched_nco,
schedule_kwargs=spec_sched_kwargs,
real_imag=False,
batched=True,
)
meas_ctrl.gettables(gettable)
[16]:
quantum_device.cfg_sched_repetitions(80)
center = 7.7e9
frequency_setpoints = np.linspace(center - 20e6, center + 20e6, 300)
meas_ctrl.settables([freq, ro_pulse_amp])
meas_ctrl.setpoints_grid((frequency_setpoints, np.linspace(0, 1, 10)))
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=RuntimeWarning, message="Clock")
punchout_ds = meas_ctrl.run("resonator punchout")
punchout_ds
Starting batched measurement...
Iterative settable(s) [outer loop(s)]:
ro_pulse_amp
Batched settable(s):
freq
Batch size limit: 1024
[16]:
<xarray.Dataset> Dimensions: (dim_0: 3000) Coordinates: x0 (dim_0) float64 7.68e+09 7.68e+09 7.68e+09 ... 7.72e+09 7.72e+09 x1 (dim_0) float64 0.0 0.0 0.0 0.0 0.0 0.0 ... 1.0 1.0 1.0 1.0 1.0 1.0 Dimensions without coordinates: dim_0 Data variables: y0 (dim_0) float64 nan nan nan nan nan nan ... nan nan nan nan nan nan y1 (dim_0) float64 nan nan nan nan nan nan ... nan nan nan nan nan nan Attributes: tuid: 20240723-095648-594-738926 name: resonator punchout grid_2d: True grid_2d_uniformly_spaced: True 1d_2_settables_uniformly_spaced: False xlen: 300 ylen: 10
Qubit spectroscopy#
[17]:
def two_tone_spec_sched_nco(
qubit_name: str,
spec_pulse_amp: float,
spec_pulse_duration: float,
spec_pulse_port: str,
spec_pulse_clock: str,
spec_pulse_frequencies: np.ndarray,
repetitions: int = 1,
) -> Schedule:
"""
Generate a batched schedule for performing fast two-tone spectroscopy.
Using the `SetClockFrequency` operation for doing an NCO sweep.
Parameters
----------
qubit_name
qubit that should be used.
spec_pulse_amp
Amplitude of the spectroscopy pulse in Volt.
spec_pulse_duration
Duration of the spectroscopy pulse in seconds.
spec_pulse_port
Location on the device where the spectroscopy pulse should be applied.
spec_pulse_clock
Reference clock used to track the spectroscopy frequency.
spec_pulse_frequencies
Sample frequencies for the spectroscopy pulse in Hertz.
repetitions
The amount of times the Schedule will be repeated.
"""
sched = Schedule("two-tone", repetitions)
sched.add_resource(ClockResource(name=spec_pulse_clock, freq=spec_pulse_frequencies.flat[0]))
for acq_idx, spec_pulse_freq in enumerate(spec_pulse_frequencies):
sched.add(Reset(qubit_name))
sched.add(SetClockFrequency(clock=spec_pulse_clock, clock_freq_new=spec_pulse_freq))
sched.add(
SquarePulse(
duration=spec_pulse_duration,
amp=spec_pulse_amp,
port=spec_pulse_port,
clock=spec_pulse_clock,
)
)
sched.add(Measure(qubit_name, acq_index=acq_idx))
return sched
[18]:
freq = ManualParameter(name="freq", unit="Hz", label="Frequency")
freq.batched = True
qubit_spec_sched_kwargs = dict(
qubit_name=qubit.name,
spec_pulse_frequencies=freq,
spec_pulse_amp=1.0,
spec_pulse_duration=48e-6,
spec_pulse_port=qubit.ports.microwave(),
spec_pulse_clock=qubit.name + ".01",
)
gettable = ScheduleGettable(
quantum_device,
schedule_function=two_tone_spec_sched_nco,
schedule_kwargs=qubit_spec_sched_kwargs,
real_imag=False,
batched=True,
)
meas_ctrl.gettables(gettable)
[19]:
quantum_device.cfg_sched_repetitions(300)
center = 6.1e9
frequency_setpoints = np.linspace(center - 20e6, center + 20e6, 300)
meas_ctrl.settables(freq)
meas_ctrl.setpoints(frequency_setpoints)
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=RuntimeWarning, message="Clock")
qs_ds = meas_ctrl.run("Two-tone")
qs_ds
Starting batched measurement...
Iterative settable(s) [outer loop(s)]:
--- (None) ---
Batched settable(s):
freq
Batch size limit: 300
[19]:
<xarray.Dataset> Dimensions: (dim_0: 300) Coordinates: x0 (dim_0) float64 6.08e+09 6.08e+09 6.08e+09 ... 6.12e+09 6.12e+09 Dimensions without coordinates: dim_0 Data variables: y0 (dim_0) float64 nan nan nan nan nan nan ... nan nan nan nan nan nan y1 (dim_0) float64 nan nan nan nan nan nan ... nan nan nan nan nan nan Attributes: tuid: 20240723-095651-327-f26c9a name: Two-tone grid_2d: False grid_2d_uniformly_spaced: False 1d_2_settables_uniformly_spaced: False
[20]:
qubit.clock_freqs.f01(6.1e9)
Rabi oscillations#
[21]:
pulse_amp = ManualParameter(name="pulse_amplitude", unit="V", label="amplitude")
pulse_amp.batched = True
rabi_sched_kwargs = {
"pulse_amp": pulse_amp,
"pulse_duration": qubit.rxy.duration(),
"frequency": qubit.clock_freqs.f01(),
"qubit": qubit.name,
}
gettable = ScheduleGettable(
quantum_device,
schedule_function=rabi_sched,
schedule_kwargs=rabi_sched_kwargs,
batched=True,
)
meas_ctrl.gettables(gettable)
[22]:
quantum_device.cfg_sched_repetitions(400)
amplitude_setpoints = np.linspace(-0.14, 0.14, 200)
meas_ctrl.settables(pulse_amp)
meas_ctrl.setpoints(amplitude_setpoints)
rabi_ds = meas_ctrl.run("Rabi")
rabi_ds
Starting batched measurement...
Iterative settable(s) [outer loop(s)]:
--- (None) ---
Batched settable(s):
pulse_amplitude
Batch size limit: 200
[22]:
<xarray.Dataset> Dimensions: (dim_0: 200) Coordinates: x0 (dim_0) float64 -0.14 -0.1386 -0.1372 ... 0.1372 0.1386 0.14 Dimensions without coordinates: dim_0 Data variables: y0 (dim_0) float64 nan nan nan nan nan nan ... nan nan nan nan nan nan y1 (dim_0) float64 nan nan nan nan nan nan ... nan nan nan nan nan nan Attributes: tuid: 20240723-095651-758-e37a6c name: Rabi grid_2d: False grid_2d_uniformly_spaced: False 1d_2_settables_uniformly_spaced: False
[23]:
qubit.rxy.amp180(0.07)
Ramsey oscillations#
[24]:
tau = ManualParameter(name="tau", unit="s", label="Time")
tau.batched = True
ramsey_sched_kwargs = {
"qubit": qubit.name,
"times": tau,
"artificial_detuning": 0.0,
}
gettable = ScheduleGettable(
quantum_device,
schedule_function=ramsey_sched,
schedule_kwargs=ramsey_sched_kwargs,
real_imag=False,
batched=True,
)
meas_ctrl.gettables(gettable)
[25]:
tau_setpoints = np.arange(20e-9, 4e-6, 40e-9)
meas_ctrl.settables(tau)
meas_ctrl.setpoints(tau_setpoints)
quantum_device.cfg_sched_repetitions(500)
ramsey_ds = meas_ctrl.run("ramsey")
ramsey_ds
Starting batched measurement...
Iterative settable(s) [outer loop(s)]:
--- (None) ---
Batched settable(s):
tau
Batch size limit: 100
[25]:
<xarray.Dataset> Dimensions: (dim_0: 100) Coordinates: x0 (dim_0) float64 2e-08 6e-08 1e-07 ... 3.9e-06 3.94e-06 3.98e-06 Dimensions without coordinates: dim_0 Data variables: y0 (dim_0) float64 nan nan nan nan nan nan ... nan nan nan nan nan nan y1 (dim_0) float64 nan nan nan nan nan nan ... nan nan nan nan nan nan Attributes: tuid: 20240723-095652-077-8d6a06 name: ramsey grid_2d: False grid_2d_uniformly_spaced: False 1d_2_settables_uniformly_spaced: False
[26]:
qubit.clock_freqs.f01(qubit.clock_freqs.f01() + 100e3)
T1#
[27]:
tau = ManualParameter(name="tau_delay", unit="s", label="Delay")
tau.batched = True
t1_sched_kwargs = {"qubit": qubit.name, "times": tau}
gettable = ScheduleGettable(
quantum_device,
schedule_function=t1_sched,
schedule_kwargs=t1_sched_kwargs,
real_imag=False,
batched=True,
)
meas_ctrl.gettables(gettable)
[28]:
delay_setpoints = np.arange(40e-9, 200e-6, 500e-9)
meas_ctrl.settables(tau)
meas_ctrl.setpoints(delay_setpoints)
quantum_device.cfg_sched_repetitions(300)
t1_ds = meas_ctrl.run("T1 experiment")
t1_ds
Starting batched measurement...
Iterative settable(s) [outer loop(s)]:
--- (None) ---
Batched settable(s):
tau_delay
Batch size limit: 400
[28]:
<xarray.Dataset> Dimensions: (dim_0: 400) Coordinates: x0 (dim_0) float64 4e-08 5.4e-07 1.04e-06 ... 0.000199 0.0001995 Dimensions without coordinates: dim_0 Data variables: y0 (dim_0) float64 nan nan nan nan nan nan ... nan nan nan nan nan nan y1 (dim_0) float64 nan nan nan nan nan nan ... nan nan nan nan nan nan Attributes: tuid: 20240723-095652-434-178207 name: T1 experiment grid_2d: False grid_2d_uniformly_spaced: False 1d_2_settables_uniformly_spaced: False
Sweetspot experiments#
A flux-tunable qubit is a qubit where the qubit frequency can be altered by changing a magnetic field piercing the circuit.
Here we consider two 2D experiments for finding the flux sweetspot of a flux-tunable qubit. The experiments are: 1. Resonator-flux spectroscopy - Used to find the flux sweetspot when the qubit is in \(|0\rangle\). - Resonator spectroscopy as a function of applied external flux. 2. Qubit-flux spectroscopy (a.k.a two-tone) - Used to find the flux sweetspot when the qubit is excited. - Qubit spectroscopy as a function of applied external flux.
Resonator-flux spectroscopy#
[29]:
freq = ManualParameter(name="freq", unit="Hz", label="Frequency")
freq.batched = True
freq.batch_size = 100
spec_sched_kwargs = dict(
pulse_amp=0.25 / 6,
pulse_duration=2e-6,
frequencies=freq,
acquisition_delay=80e-9,
integration_time=2e-6,
init_duration=200e-6,
port=qubit.ports.readout(),
clock=qubit.name + ".ro",
)
gettable = ScheduleGettable(
quantum_device,
schedule_function=heterodyne_spec_sched_nco,
schedule_kwargs=spec_sched_kwargs,
real_imag=False,
batched=True,
)
meas_ctrl.gettables(gettable)
[30]:
quantum_device.cfg_sched_repetitions(80)
center = 7.7e9
frequency_setpoints = np.linspace(center - 20e6, center + 20e6, 300)
meas_ctrl.settables([freq, flux_settable])
meas_ctrl.setpoints_grid((frequency_setpoints, np.linspace(0, 1, 3)))
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=RuntimeWarning, message="Clock")
rfs_ds = meas_ctrl.run("resonator flux spectroscopy")
rfs_ds
Starting batched measurement...
Iterative settable(s) [outer loop(s)]:
out0_offset
Batched settable(s):
freq
Batch size limit: 100
[30]:
<xarray.Dataset> Dimensions: (dim_0: 900) Coordinates: x0 (dim_0) float64 7.68e+09 7.68e+09 7.68e+09 ... 7.72e+09 7.72e+09 x1 (dim_0) float64 0.0 0.0 0.0 0.0 0.0 0.0 ... 1.0 1.0 1.0 1.0 1.0 1.0 Dimensions without coordinates: dim_0 Data variables: y0 (dim_0) float64 nan nan nan nan nan nan ... nan nan nan nan nan nan y1 (dim_0) float64 nan nan nan nan nan nan ... nan nan nan nan nan nan Attributes: tuid: 20240723-095652-900-358c46 name: resonator flux spectroscopy grid_2d: True grid_2d_uniformly_spaced: True 1d_2_settables_uniformly_spaced: False xlen: 300 ylen: 3
[31]:
# Update the flux sweetspot
flux_settable(0.014)
Qubit-flux spectroscopy#
[32]:
freq = ManualParameter(name="freq", unit="Hz", label="Frequency")
freq.batched = True
qubit_spec_sched_kwargs = dict(
qubit_name=qubit.name,
spec_pulse_frequencies=freq,
spec_pulse_amp=0.25,
spec_pulse_duration=48e-6,
spec_pulse_port=qubit.ports.microwave(),
spec_pulse_clock=qubit.name + ".01",
)
gettable = ScheduleGettable(
quantum_device,
schedule_function=two_tone_spec_sched_nco,
schedule_kwargs=qubit_spec_sched_kwargs,
real_imag=False,
batched=True,
)
meas_ctrl.gettables(gettable)
[33]:
quantum_device.cfg_sched_repetitions(400)
center = qubit.clock_freqs.f01()
frequency_setpoints = np.linspace(center - 20e6, center + 20e6, 300)
meas_ctrl.settables([freq, flux_settable])
meas_ctrl.setpoints_grid((frequency_setpoints, np.linspace(0, 1, 3)))
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=RuntimeWarning, message="Clock")
qfs_ds = meas_ctrl.run("flux two-tone")
qfs_ds
Starting batched measurement...
Iterative settable(s) [outer loop(s)]:
out0_offset
Batched settable(s):
freq
Batch size limit: 900
[33]:
<xarray.Dataset> Dimensions: (dim_0: 900) Coordinates: x0 (dim_0) float64 6.08e+09 6.08e+09 6.08e+09 ... 6.12e+09 6.12e+09 x1 (dim_0) float64 0.0 0.0 0.0 0.0 0.0 0.0 ... 1.0 1.0 1.0 1.0 1.0 1.0 Dimensions without coordinates: dim_0 Data variables: y0 (dim_0) float64 nan nan nan nan nan nan ... nan nan nan nan nan nan y1 (dim_0) float64 nan nan nan nan nan nan ... nan nan nan nan nan nan Attributes: tuid: 20240723-095654-169-c655ef name: flux two-tone grid_2d: True grid_2d_uniformly_spaced: True 1d_2_settables_uniformly_spaced: False xlen: 300 ylen: 3
[34]:
# Update the flux sweetspot
flux_settable(0.014)