{ "cells": [ { "cell_type": "markdown", "id": "f8eba719", "metadata": {}, "source": [ "# Ramsey Spectroscopy\n", "The notebook will demonstrate Ramsey Spectroscopy, which is used to tune the $|0\\rangle \\rightarrow |1\\rangle$ drive frequency more precisely.\n", "Ramsey spectroscopy is also used to find $T_2^*$." ] }, { "cell_type": "code", "execution_count": 1, "id": "8b0f44f0", "metadata": { "execution": { "iopub.execute_input": "2024-10-17T13:11:41.033103Z", "iopub.status.busy": "2024-10-17T13:11:41.032817Z", "iopub.status.idle": "2024-10-17T13:11:42.509369Z", "shell.execute_reply": "2024-10-17T13:11:42.508519Z" }, "title": "HEADER" }, "outputs": [], "source": [ "import numpy as np\n", "from qcodes.parameters import ManualParameter\n", "\n", "from quantify_scheduler.gettables import ScheduleGettable\n", "from quantify_scheduler.schedules.timedomain_schedules import ramsey_sched" ] }, { "cell_type": "code", "execution_count": 2, "id": "6d2c956c", "metadata": { "execution": { "iopub.execute_input": "2024-10-17T13:11:42.512359Z", "iopub.status.busy": "2024-10-17T13:11:42.511696Z", "iopub.status.idle": "2024-10-17T13:11:42.655919Z", "shell.execute_reply": "2024-10-17T13:11:42.655183Z" } }, "outputs": [], "source": [ "import json\n", "\n", "import rich # noqa:F401\n", "\n", "import quantify_core.data.handling as dh\n", "from quantify_scheduler.device_under_test.quantum_device import QuantumDevice\n", "\n", "from utils import initialize_hardware, run # noqa:F401" ] }, { "cell_type": "markdown", "id": "e1aebf68", "metadata": {}, "source": [ "## Setup\n", "In this section we configure the hardware configuration which specifies the connectivity of our system.\n", "\n", "The experiments of this tutorial are meant to be executed with a Qblox Cluster controlling a transmon system.\n", "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.\n", "When using a dummy device, the analysis will not work because the experiments will return `np.nan` values.\n", "\n", "### Configuration file\n", "\n", "This is a template hardware configuration file for a 2-qubit system with a flux-control line which can be used to tune the qubit frequency. We will only work with qubit 0.\n", "\n", "The hardware connectivity is as follows, by cluster slot:\n", "- **QCM** (Slot 2)\n", " - $\\text{O}^{1}$: Flux line for `q0`.\n", " - $\\text{O}^{2}$: Flux line for `q1`.\n", "- **QCM-RF** (Slot 6)\n", " - $\\text{O}^{1}$: Drive line for `q0` using fixed 80 MHz IF.\n", " - $\\text{O}^{2}$: Drive line for `q1` using fixed 80 MHz IF.\n", "- **QRM-RF** (Slot 8)\n", " - $\\text{O}^{1}$ and $\\text{I}^{1}$: Shared readout line for `q0`/`q1` using a fixed LO set at 7.5 GHz.\n", "\n", "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." ] }, { "cell_type": "code", "execution_count": 3, "id": "d82844f5", "metadata": { "execution": { "iopub.execute_input": "2024-10-17T13:11:42.658481Z", "iopub.status.busy": "2024-10-17T13:11:42.658018Z", "iopub.status.idle": "2024-10-17T13:11:42.662530Z", "shell.execute_reply": "2024-10-17T13:11:42.661941Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Data will be saved in:\n", "/root/quantify-data\n" ] } ], "source": [ "with open(\"configs/tuning_transmon_coupled_pair_hardware_config.json\") as hw_cfg_json_file:\n", " hardware_cfg = json.load(hw_cfg_json_file)\n", "\n", "# Enter your own dataset directory here!\n", "dh.set_datadir(dh.default_datadir())" ] }, { "cell_type": "markdown", "id": "06e83490", "metadata": {}, "source": [ "### Quantum device settings\n", "Here we initialize our `QuantumDevice` and our qubit parameters, checkout this [tutorial](https://quantify-os.org/docs/quantify-scheduler/tutorials/Operations%20and%20Qubits.html) for further details.\n", "\n", "In short, a `QuantumDevice` contains device elements where we save our found parameters. Here we are loading a template for 2 qubits, but we will only use qubit 0." ] }, { "cell_type": "code", "execution_count": 4, "id": "0247f43f", "metadata": { "execution": { "iopub.execute_input": "2024-10-17T13:11:42.664711Z", "iopub.status.busy": "2024-10-17T13:11:42.664317Z", "iopub.status.idle": "2024-10-17T13:11:43.186638Z", "shell.execute_reply": "2024-10-17T13:11:43.185959Z" } }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/usr/local/lib/python3.9/site-packages/quantify_scheduler/backends/types/qblox.py:1220: ValidationWarning: Setting `auto_lo_cal=on_lo_interm_freq_change` will overwrite settings `dc_offset_i=0.0` and `dc_offset_q=0.0`. To suppress this warning, do not set either `dc_offset_i` or `dc_offset_q` for this port-clock.\n", " warnings.warn(\n", "/usr/local/lib/python3.9/site-packages/quantify_scheduler/backends/types/qblox.py:1235: ValidationWarning: Setting `auto_sideband_cal=on_interm_freq_change` will overwrite settings `amp_ratio=1.0` and `phase_error=0.0`. To suppress this warning, do not set either `amp_ratio` or `phase_error` for this port-clock.\n", " warnings.warn(\n" ] } ], "source": [ "quantum_device = QuantumDevice.from_json_file(\"devices/transmon_device_2q.json\")\n", "qubit = quantum_device.get_element(\"q0\")\n", "quantum_device.hardware_config(hardware_cfg)\n", "meas_ctrl, _, cluster = initialize_hardware(quantum_device, ip=None)" ] }, { "cell_type": "markdown", "id": "b49b88d9", "metadata": { "title": "BODY" }, "source": [ "## Ramsey oscillations" ] }, { "cell_type": "code", "execution_count": 5, "id": "da3cc467", "metadata": { "execution": { "iopub.execute_input": "2024-10-17T13:11:43.189046Z", "iopub.status.busy": "2024-10-17T13:11:43.188844Z", "iopub.status.idle": "2024-10-17T13:11:43.192980Z", "shell.execute_reply": "2024-10-17T13:11:43.192403Z" } }, "outputs": [], "source": [ "tau = ManualParameter(name=\"tau\", unit=\"s\", label=\"Time\")\n", "tau.batched = True\n", "\n", "ramsey_sched_kwargs = {\n", " \"qubit\": qubit.name,\n", " \"times\": tau,\n", " \"artificial_detuning\": 0.0,\n", "}\n", "\n", "gettable = ScheduleGettable(\n", " quantum_device,\n", " schedule_function=ramsey_sched,\n", " schedule_kwargs=ramsey_sched_kwargs,\n", " real_imag=False,\n", " batched=True,\n", ")\n", "meas_ctrl.gettables(gettable)" ] }, { "cell_type": "code", "execution_count": 6, "id": "c2d93388", "metadata": { "execution": { "iopub.execute_input": "2024-10-17T13:11:43.194760Z", "iopub.status.busy": "2024-10-17T13:11:43.194568Z", "iopub.status.idle": "2024-10-17T13:11:43.565333Z", "shell.execute_reply": "2024-10-17T13:11:43.564617Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Starting batched measurement...\n", "Iterative settable(s) [outer loop(s)]:\n", "\t --- (None) --- \n", "Batched settable(s):\n", "\t tau \n", "Batch size limit: 125\n", "\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "/usr/local/lib/python3.9/site-packages/quantify_scheduler/backends/qblox/compiler_abc.py:634: RuntimeWarning: Operation is interrupting previous Pulse because it starts before the previous ends, offending operation: Pulse \"Rxy(90, 0, 'q0')\" (t0=0.00010002000000000001, duration=4e-08)\n", " warnings.warn(\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "1a012277a3c7441f905b216a680d70b4", "version_major": 2, "version_minor": 0 }, "text/plain": [ "Completed: 0%| [ elapsed time: 00:00 | time left: ? ] it" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "
<xarray.Dataset> Size: 3kB\n",
       "Dimensions:  (dim_0: 125)\n",
       "Coordinates:\n",
       "    x0       (dim_0) float64 1kB 2e-08 5.2e-08 8.4e-08 ... 3.956e-06 3.988e-06\n",
       "Dimensions without coordinates: dim_0\n",
       "Data variables:\n",
       "    y0       (dim_0) float64 1kB nan nan nan nan nan nan ... nan nan nan nan nan\n",
       "    y1       (dim_0) float64 1kB nan nan nan nan nan nan ... nan nan nan nan nan\n",
       "Attributes:\n",
       "    tuid:                             20241017-131143-196-14e37a\n",
       "    name:                             ramsey\n",
       "    grid_2d:                          False\n",
       "    grid_2d_uniformly_spaced:         False\n",
       "    1d_2_settables_uniformly_spaced:  False
" ], "text/plain": [ " Size: 3kB\n", "Dimensions: (dim_0: 125)\n", "Coordinates:\n", " x0 (dim_0) float64 1kB 2e-08 5.2e-08 8.4e-08 ... 3.956e-06 3.988e-06\n", "Dimensions without coordinates: dim_0\n", "Data variables:\n", " y0 (dim_0) float64 1kB nan nan nan nan nan nan ... nan nan nan nan nan\n", " y1 (dim_0) float64 1kB nan nan nan nan nan nan ... nan nan nan nan nan\n", "Attributes:\n", " tuid: 20241017-131143-196-14e37a\n", " name: ramsey\n", " grid_2d: False\n", " grid_2d_uniformly_spaced: False\n", " 1d_2_settables_uniformly_spaced: False" ] }, "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ "tau_setpoints = np.arange(20e-9, 4e-6, 32e-9)\n", "\n", "meas_ctrl.settables(tau)\n", "meas_ctrl.setpoints(tau_setpoints)\n", "\n", "quantum_device.cfg_sched_repetitions(500)\n", "ramsey_ds = meas_ctrl.run(\"ramsey\")\n", "ramsey_ds" ] }, { "cell_type": "code", "execution_count": 7, "id": "e44015a6", "metadata": { "execution": { "iopub.execute_input": "2024-10-17T13:11:43.567448Z", "iopub.status.busy": "2024-10-17T13:11:43.567190Z", "iopub.status.idle": "2024-10-17T13:11:43.570684Z", "shell.execute_reply": "2024-10-17T13:11:43.570093Z" } }, "outputs": [], "source": [ "qubit.clock_freqs.f01(qubit.clock_freqs.f01() + 100e3)" ] }, { "cell_type": "code", "execution_count": 8, "id": "f99b9efb", "metadata": { "execution": { "iopub.execute_input": "2024-10-17T13:11:43.572436Z", "iopub.status.busy": "2024-10-17T13:11:43.572270Z", "iopub.status.idle": "2024-10-17T13:11:43.706777Z", "shell.execute_reply": "2024-10-17T13:11:43.706132Z" } }, "outputs": [ { "data": { "text/html": [ "
{\n",
       "    'config_type': 'quantify_scheduler.backends.qblox_backend.QbloxHardwareCompilationConfig',\n",
       "    'hardware_description': {\n",
       "        'cluster0': {\n",
       "            'instrument_type': 'Cluster',\n",
       "            'modules': {\n",
       "                '6': {'instrument_type': 'QCM_RF'},\n",
       "                '2': {'instrument_type': 'QCM'},\n",
       "                '8': {'instrument_type': 'QRM_RF'}\n",
       "            },\n",
       "            'sequence_to_file': False,\n",
       "            'ref': 'internal'\n",
       "        }\n",
       "    },\n",
       "    'hardware_options': {\n",
       "        'output_att': {'q0:mw-q0.01': 10, 'q1:mw-q1.01': 10, 'q0:res-q0.ro': 60, 'q1:res-q1.ro': 60},\n",
       "        'mixer_corrections': {\n",
       "            'q0:mw-q0.01': {\n",
       "                'auto_lo_cal': 'on_lo_interm_freq_change',\n",
       "                'auto_sideband_cal': 'on_interm_freq_change',\n",
       "                'dc_offset_i': None,\n",
       "                'dc_offset_q': None,\n",
       "                'amp_ratio': 1.0,\n",
       "                'phase_error': 0.0\n",
       "            },\n",
       "            'q1:mw-q1.01': {\n",
       "                'auto_lo_cal': 'on_lo_interm_freq_change',\n",
       "                'auto_sideband_cal': 'on_interm_freq_change',\n",
       "                'dc_offset_i': None,\n",
       "                'dc_offset_q': None,\n",
       "                'amp_ratio': 1.0,\n",
       "                'phase_error': 0.0\n",
       "            },\n",
       "            'q0:res-q0.ro': {\n",
       "                'auto_lo_cal': 'on_lo_interm_freq_change',\n",
       "                'auto_sideband_cal': 'on_interm_freq_change',\n",
       "                'dc_offset_i': None,\n",
       "                'dc_offset_q': None,\n",
       "                'amp_ratio': 1.0,\n",
       "                'phase_error': 0.0\n",
       "            },\n",
       "            'q1:res-q1.ro': {\n",
       "                'auto_lo_cal': 'on_lo_interm_freq_change',\n",
       "                'auto_sideband_cal': 'on_interm_freq_change',\n",
       "                'dc_offset_i': None,\n",
       "                'dc_offset_q': None,\n",
       "                'amp_ratio': 1.0,\n",
       "                'phase_error': 0.0\n",
       "            }\n",
       "        },\n",
       "        'modulation_frequencies': {\n",
       "            'q0:mw-q0.01': {'interm_freq': 80000000.0},\n",
       "            'q1:mw-q1.01': {'interm_freq': 80000000.0},\n",
       "            'q0:res-q0.ro': {'lo_freq': 7500000000.0},\n",
       "            'q1:res-q1.ro': {'lo_freq': 7500000000.0}\n",
       "        }\n",
       "    },\n",
       "    'connectivity': {\n",
       "        'graph': [\n",
       "            ['cluster0.module6.complex_output_0', 'q0:mw'],\n",
       "            ['cluster0.module6.complex_output_1', 'q1:mw'],\n",
       "            ['cluster0.module2.real_output_0', 'q0:fl'],\n",
       "            ['cluster0.module2.real_output_1', 'q1:fl'],\n",
       "            ['cluster0.module8.complex_output_0', 'q0:res'],\n",
       "            ['cluster0.module8.complex_output_0', 'q1:res']\n",
       "        ]\n",
       "    }\n",
       "}\n",
       "
\n" ], "text/plain": [ "\u001b[1m{\u001b[0m\n", " \u001b[32m'config_type'\u001b[0m: \u001b[32m'quantify_scheduler.backends.qblox_backend.QbloxHardwareCompilationConfig'\u001b[0m,\n", " \u001b[32m'hardware_description'\u001b[0m: \u001b[1m{\u001b[0m\n", " \u001b[32m'cluster0'\u001b[0m: \u001b[1m{\u001b[0m\n", " \u001b[32m'instrument_type'\u001b[0m: \u001b[32m'Cluster'\u001b[0m,\n", " \u001b[32m'modules'\u001b[0m: \u001b[1m{\u001b[0m\n", " \u001b[32m'6'\u001b[0m: \u001b[1m{\u001b[0m\u001b[32m'instrument_type'\u001b[0m: \u001b[32m'QCM_RF'\u001b[0m\u001b[1m}\u001b[0m,\n", " \u001b[32m'2'\u001b[0m: \u001b[1m{\u001b[0m\u001b[32m'instrument_type'\u001b[0m: \u001b[32m'QCM'\u001b[0m\u001b[1m}\u001b[0m,\n", " \u001b[32m'8'\u001b[0m: \u001b[1m{\u001b[0m\u001b[32m'instrument_type'\u001b[0m: \u001b[32m'QRM_RF'\u001b[0m\u001b[1m}\u001b[0m\n", " \u001b[1m}\u001b[0m,\n", " \u001b[32m'sequence_to_file'\u001b[0m: \u001b[3;91mFalse\u001b[0m,\n", " \u001b[32m'ref'\u001b[0m: \u001b[32m'internal'\u001b[0m\n", " \u001b[1m}\u001b[0m\n", " \u001b[1m}\u001b[0m,\n", " \u001b[32m'hardware_options'\u001b[0m: \u001b[1m{\u001b[0m\n", " \u001b[32m'output_att'\u001b[0m: \u001b[1m{\u001b[0m\u001b[32m'q0:mw-q0.01'\u001b[0m: \u001b[1;36m10\u001b[0m, \u001b[32m'q1:mw-q1.01'\u001b[0m: \u001b[1;36m10\u001b[0m, \u001b[32m'q0:res-q0.ro'\u001b[0m: \u001b[1;36m60\u001b[0m, \u001b[32m'q1:res-q1.ro'\u001b[0m: \u001b[1;36m60\u001b[0m\u001b[1m}\u001b[0m,\n", " \u001b[32m'mixer_corrections'\u001b[0m: \u001b[1m{\u001b[0m\n", " \u001b[32m'q0:mw-q0.01'\u001b[0m: \u001b[1m{\u001b[0m\n", " \u001b[32m'auto_lo_cal'\u001b[0m: \u001b[32m'on_lo_interm_freq_change'\u001b[0m,\n", " \u001b[32m'auto_sideband_cal'\u001b[0m: \u001b[32m'on_interm_freq_change'\u001b[0m,\n", " \u001b[32m'dc_offset_i'\u001b[0m: \u001b[3;35mNone\u001b[0m,\n", " \u001b[32m'dc_offset_q'\u001b[0m: \u001b[3;35mNone\u001b[0m,\n", " \u001b[32m'amp_ratio'\u001b[0m: \u001b[1;36m1.0\u001b[0m,\n", " \u001b[32m'phase_error'\u001b[0m: \u001b[1;36m0.0\u001b[0m\n", " \u001b[1m}\u001b[0m,\n", " \u001b[32m'q1:mw-q1.01'\u001b[0m: \u001b[1m{\u001b[0m\n", " \u001b[32m'auto_lo_cal'\u001b[0m: \u001b[32m'on_lo_interm_freq_change'\u001b[0m,\n", " \u001b[32m'auto_sideband_cal'\u001b[0m: \u001b[32m'on_interm_freq_change'\u001b[0m,\n", " \u001b[32m'dc_offset_i'\u001b[0m: \u001b[3;35mNone\u001b[0m,\n", " \u001b[32m'dc_offset_q'\u001b[0m: \u001b[3;35mNone\u001b[0m,\n", " \u001b[32m'amp_ratio'\u001b[0m: \u001b[1;36m1.0\u001b[0m,\n", " \u001b[32m'phase_error'\u001b[0m: \u001b[1;36m0.0\u001b[0m\n", " \u001b[1m}\u001b[0m,\n", " \u001b[32m'q0:res-q0.ro'\u001b[0m: \u001b[1m{\u001b[0m\n", " \u001b[32m'auto_lo_cal'\u001b[0m: \u001b[32m'on_lo_interm_freq_change'\u001b[0m,\n", " \u001b[32m'auto_sideband_cal'\u001b[0m: \u001b[32m'on_interm_freq_change'\u001b[0m,\n", " \u001b[32m'dc_offset_i'\u001b[0m: \u001b[3;35mNone\u001b[0m,\n", " \u001b[32m'dc_offset_q'\u001b[0m: \u001b[3;35mNone\u001b[0m,\n", " \u001b[32m'amp_ratio'\u001b[0m: \u001b[1;36m1.0\u001b[0m,\n", " \u001b[32m'phase_error'\u001b[0m: \u001b[1;36m0.0\u001b[0m\n", " \u001b[1m}\u001b[0m,\n", " \u001b[32m'q1:res-q1.ro'\u001b[0m: \u001b[1m{\u001b[0m\n", " \u001b[32m'auto_lo_cal'\u001b[0m: \u001b[32m'on_lo_interm_freq_change'\u001b[0m,\n", " \u001b[32m'auto_sideband_cal'\u001b[0m: \u001b[32m'on_interm_freq_change'\u001b[0m,\n", " \u001b[32m'dc_offset_i'\u001b[0m: \u001b[3;35mNone\u001b[0m,\n", " \u001b[32m'dc_offset_q'\u001b[0m: \u001b[3;35mNone\u001b[0m,\n", " \u001b[32m'amp_ratio'\u001b[0m: \u001b[1;36m1.0\u001b[0m,\n", " \u001b[32m'phase_error'\u001b[0m: \u001b[1;36m0.0\u001b[0m\n", " \u001b[1m}\u001b[0m\n", " \u001b[1m}\u001b[0m,\n", " \u001b[32m'modulation_frequencies'\u001b[0m: \u001b[1m{\u001b[0m\n", " \u001b[32m'q0:mw-q0.01'\u001b[0m: \u001b[1m{\u001b[0m\u001b[32m'interm_freq'\u001b[0m: \u001b[1;36m80000000.0\u001b[0m\u001b[1m}\u001b[0m,\n", " \u001b[32m'q1:mw-q1.01'\u001b[0m: \u001b[1m{\u001b[0m\u001b[32m'interm_freq'\u001b[0m: \u001b[1;36m80000000.0\u001b[0m\u001b[1m}\u001b[0m,\n", " \u001b[32m'q0:res-q0.ro'\u001b[0m: \u001b[1m{\u001b[0m\u001b[32m'lo_freq'\u001b[0m: \u001b[1;36m7500000000.0\u001b[0m\u001b[1m}\u001b[0m,\n", " \u001b[32m'q1:res-q1.ro'\u001b[0m: \u001b[1m{\u001b[0m\u001b[32m'lo_freq'\u001b[0m: \u001b[1;36m7500000000.0\u001b[0m\u001b[1m}\u001b[0m\n", " \u001b[1m}\u001b[0m\n", " \u001b[1m}\u001b[0m,\n", " \u001b[32m'connectivity'\u001b[0m: \u001b[1m{\u001b[0m\n", " \u001b[32m'graph'\u001b[0m: \u001b[1m[\u001b[0m\n", " \u001b[1m[\u001b[0m\u001b[32m'cluster0.module6.complex_output_0'\u001b[0m, \u001b[32m'q0:mw'\u001b[0m\u001b[1m]\u001b[0m,\n", " \u001b[1m[\u001b[0m\u001b[32m'cluster0.module6.complex_output_1'\u001b[0m, \u001b[32m'q1:mw'\u001b[0m\u001b[1m]\u001b[0m,\n", " \u001b[1m[\u001b[0m\u001b[32m'cluster0.module2.real_output_0'\u001b[0m, \u001b[32m'q0:fl'\u001b[0m\u001b[1m]\u001b[0m,\n", " \u001b[1m[\u001b[0m\u001b[32m'cluster0.module2.real_output_1'\u001b[0m, \u001b[32m'q1:fl'\u001b[0m\u001b[1m]\u001b[0m,\n", " \u001b[1m[\u001b[0m\u001b[32m'cluster0.module8.complex_output_0'\u001b[0m, \u001b[32m'q0:res'\u001b[0m\u001b[1m]\u001b[0m,\n", " \u001b[1m[\u001b[0m\u001b[32m'cluster0.module8.complex_output_0'\u001b[0m, \u001b[32m'q1:res'\u001b[0m\u001b[1m]\u001b[0m\n", " \u001b[1m]\u001b[0m\n", " \u001b[1m}\u001b[0m\n", "\u001b[1m}\u001b[0m\n" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "rich.print(quantum_device.hardware_config())" ] }, { "cell_type": "code", "execution_count": 9, "id": "f49dab5b", "metadata": { "execution": { "iopub.execute_input": "2024-10-17T13:11:43.708786Z", "iopub.status.busy": "2024-10-17T13:11:43.708604Z", "iopub.status.idle": "2024-10-17T13:11:43.714380Z", "shell.execute_reply": "2024-10-17T13:11:43.713789Z" } }, "outputs": [ { "data": { "text/plain": [ "'devices/device_2q_2024-10-17_13-11-43_UTC.json'" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "quantum_device.to_json_file(\"devices/\")" ] } ], "metadata": { "files_to_bundle_in_zip_file": [ "configs/tuning_transmon_coupled_pair_hardware_config.json", "devices/transmon_device_2q.json", "utils.py" ], "jupytext": { "main_language": "python", "notebook_metadata_filter": "files_to_bundle_in_zip_file" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.20" }, "widgets": { "application/vnd.jupyter.widget-state+json": { "state": { "0526089987c9491c8f3347217dfe252d": { "model_module": "@jupyter-widgets/controls", "model_module_version": "2.0.0", "model_name": "ProgressStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "2.0.0", "_model_name": "ProgressStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "2.0.0", "_view_name": "StyleView", "bar_color": null, "description_width": "" } }, "0d77c3340ab349ed9518b9063722b68b": { "model_module": "@jupyter-widgets/controls", "model_module_version": "2.0.0", "model_name": "HTMLModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "2.0.0", "_model_name": "HTMLModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "2.0.0", "_view_name": "HTMLView", "description": "", "description_allow_html": false, "layout": "IPY_MODEL_e0e363c5ae8240298e81d73b6345df2b", "placeholder": "​", "style": "IPY_MODEL_2f40d1f6f80b4c2d8338b51ba8fa9dc4", "tabbable": null, "tooltip": null, "value": " [ elapsed time: 00:00 | time left: 00:00 ]  last batch size: 125" } }, "1a012277a3c7441f905b216a680d70b4": { "model_module": "@jupyter-widgets/controls", "model_module_version": "2.0.0", "model_name": "HBoxModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "2.0.0", "_model_name": "HBoxModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "2.0.0", "_view_name": "HBoxView", "box_style": "", "children": [ "IPY_MODEL_95d89146668f482f8e1ef445f021145d", "IPY_MODEL_88421769654c45b69f940bcff66ee1c8", "IPY_MODEL_0d77c3340ab349ed9518b9063722b68b" ], "layout": "IPY_MODEL_8704f2e212db4f99935a4670db8629c5", "tabbable": null, "tooltip": null } }, "2f40d1f6f80b4c2d8338b51ba8fa9dc4": { "model_module": "@jupyter-widgets/controls", "model_module_version": "2.0.0", "model_name": "HTMLStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "2.0.0", "_model_name": "HTMLStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "2.0.0", "_view_name": "StyleView", "background": null, "description_width": "", "font_size": null, "text_color": null } }, "8704f2e212db4f99935a4670db8629c5": { "model_module": "@jupyter-widgets/base", "model_module_version": "2.0.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "2.0.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "2.0.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border_bottom": null, "border_left": null, "border_right": null, "border_top": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "87dc120982ac4fd39763f72961dfb39e": { "model_module": "@jupyter-widgets/base", "model_module_version": "2.0.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "2.0.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "2.0.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border_bottom": null, "border_left": null, "border_right": null, "border_top": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "88421769654c45b69f940bcff66ee1c8": { "model_module": "@jupyter-widgets/controls", "model_module_version": "2.0.0", "model_name": "FloatProgressModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "2.0.0", "_model_name": "FloatProgressModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "2.0.0", "_view_name": "ProgressView", "bar_style": "success", "description": "", "description_allow_html": false, "layout": "IPY_MODEL_87dc120982ac4fd39763f72961dfb39e", "max": 100.0, "min": 0.0, "orientation": "horizontal", "style": "IPY_MODEL_0526089987c9491c8f3347217dfe252d", "tabbable": null, "tooltip": null, "value": 100.0 } }, "95d89146668f482f8e1ef445f021145d": { "model_module": "@jupyter-widgets/controls", "model_module_version": "2.0.0", "model_name": "HTMLModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "2.0.0", "_model_name": "HTMLModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "2.0.0", "_view_name": "HTMLView", "description": "", "description_allow_html": false, "layout": "IPY_MODEL_f8d5b5b1edc74e3c887b21c1a1b95cd8", "placeholder": "​", "style": "IPY_MODEL_e8da5089c3734bfda72e66a771221cf9", "tabbable": null, "tooltip": null, "value": "Completed: 100%" } }, "e0e363c5ae8240298e81d73b6345df2b": { "model_module": "@jupyter-widgets/base", "model_module_version": "2.0.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "2.0.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "2.0.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border_bottom": null, "border_left": null, "border_right": null, "border_top": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "e8da5089c3734bfda72e66a771221cf9": { "model_module": "@jupyter-widgets/controls", "model_module_version": "2.0.0", "model_name": "HTMLStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "2.0.0", "_model_name": "HTMLStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "2.0.0", "_view_name": "StyleView", "background": null, "description_width": "", "font_size": null, "text_color": null } }, "f8d5b5b1edc74e3c887b21c1a1b95cd8": { "model_module": "@jupyter-widgets/base", "model_module_version": "2.0.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "2.0.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "2.0.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border_bottom": null, "border_left": null, "border_right": null, "border_top": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } } }, "version_major": 2, "version_minor": 0 } } }, "nbformat": 4, "nbformat_minor": 5 }