{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "d7e4c799", "metadata": { "execution": { "iopub.execute_input": "2025-10-02T01:24:13.572352Z", "iopub.status.busy": "2025-10-02T01:24:13.572049Z", "iopub.status.idle": "2025-10-02T01:24:13.576275Z", "shell.execute_reply": "2025-10-02T01:24:13.575437Z" }, "nbsphinx": "hidden" }, "outputs": [], "source": [ "# Copyright 2025 Keysight Technologies Inc." ] }, { "cell_type": "raw", "id": "0a43f11c", "metadata": { "raw_mimetype": "text/restructuredtext" }, "source": [ "Managing calibration data and linkers\n", "=====================================\n", "\n", ".. note::\n", " :class: admonition-blue\n", "\n", " This guide requires the asset\n", " :download:`calibration set <../../assets/calibration.qcs>`\\.\n", "\n", "In this guide, we show how to use a :py:class:`~keysight.qcs.programs.CalibrationSet`\n", "to manage calibration data and the operation definitions provided by\n", ":py:class:`Linkers `\\s. The\n", ":py:class:`~keysight.qcs.programs.CalibrationSet` object provides a way to store and\n", "update calibration data across multiple objects simultaneously. The\n", ":py:class:`~keysight.qcs.programs.CalibrationSet` used in this and other guides has\n", "the parameters listed below.\n", "\n", ".. image:: ../../figures/calibration_set_variables.png\n", " :align: center\n", " :width: 60%\n", "\n", "We work with :py:class:`Linkers `\n", "for single-qubit :math:`XY` rotations and multi-qubit cross-resonance gates, both\n", "common in superconducting systems.\n", "See\n", ":doc:`../../features/gate_level/program_compilation/parameterized_linker_native_gates_sq`\\,\n", ":doc:`../../features/gate_level/program_compilation/parameterized_linker_native_gates_mq`\\,\n", "and\n", ":doc:`../../features/gate_level/program_compilation/parameterized_linker_msmt`\n", "to learn how to create these objects in detail." ] }, { "cell_type": "raw", "id": "6ad3dcdf", "metadata": { "raw_mimetype": "text/restructuredtext" }, "source": [ "Native gates to compile\n", "-----------------------\n", "\n", "We first define the native gates we want to compile, represented by the following\n", ":py:class:`~keysight.qcs.quantum.ParametricGate`\\s:" ] }, { "cell_type": "code", "execution_count": 2, "id": "81db3a40", "metadata": { "execution": { "iopub.execute_input": "2025-10-02T01:24:13.578706Z", "iopub.status.busy": "2025-10-02T01:24:13.578448Z", "iopub.status.idle": "2025-10-02T01:24:16.986650Z", "shell.execute_reply": "2025-10-02T01:24:16.985876Z" } }, "outputs": [], "source": [ "import keysight.qcs as qcs\n", "import numpy as np\n", "\n", "# euler decomposition for XY rotations\n", "layers = [-qcs.PAULIS.sigma_z, qcs.PAULIS.sigma_x, qcs.PAULIS.sigma_z]\n", "zxz = qcs.ParametricGate(layers, [\"phi\", \"theta\", \"phi\"])\n", "\n", "# cross-resonance multi-qubit gate\n", "zx_ham = qcs.PAULIS.sigma_z & qcs.PAULIS.sigma_x\n", "cr = qcs.ParametricGate([zx_ham], [\"beta\"])" ] }, { "cell_type": "raw", "id": "20c124aa", "metadata": { "raw_mimetype": "text/restructuredtext" }, "source": [ "Anatomy of a CalibrationSet\n", "---------------------------\n", "\n", "A :py:class:`~keysight.qcs.programs.CalibrationSet` contains a\n", ":py:class:`~keysight.qcs.variables.VariableSet` and a dictionary of\n", ":py:class:`Linkers `\\s. We load one with single-\n", "and multi-qubit linkers for our native gates." ] }, { "cell_type": "code", "execution_count": 3, "id": "c2fa907d", "metadata": { "execution": { "iopub.execute_input": "2025-10-02T01:24:16.989431Z", "iopub.status.busy": "2025-10-02T01:24:16.989032Z", "iopub.status.idle": "2025-10-02T01:24:17.412019Z", "shell.execute_reply": "2025-10-02T01:24:17.411207Z" } }, "outputs": [], "source": [ "calibration_set = qcs.load(\"../../assets/calibration.qcs\")" ] }, { "cell_type": "raw", "id": "98109eec", "metadata": { "lines_to_next_cell": 0, "raw_mimetype": "text/restructuredtext" }, "source": [ "Variables\n", "^^^^^^^^^\n", "\n", "The calibration variables can be accessed via\n", ":py:attr:`~keysight.qcs.programs.CalibrationSet.variables`\\." ] }, { "cell_type": "code", "execution_count": 4, "id": "7b4e34f0", "metadata": { "execution": { "iopub.execute_input": "2025-10-02T01:24:17.414777Z", "iopub.status.busy": "2025-10-02T01:24:17.414540Z", "iopub.status.idle": "2025-10-02T01:24:17.432139Z", "shell.execute_reply": "2025-10-02T01:24:17.431440Z" } }, "outputs": [ { "data": { "text/plain": [ "[Array(name=single_qubit_frequencies, shape=(4,), dtype=float, unit=Hz),\n", " Array(name=single_qubit_amplitudes, shape=(4,), dtype=float, unit=none),\n", " Array(name=multi_qubit_amplitudes, shape=(2,), dtype=float, unit=none),\n", " Scalar(name=single_qubit_duration, value=3e-08, dtype=float, unit=s),\n", " Scalar(name=multi_qubit_duration, value=3e-08, dtype=float, unit=s),\n", " Array(name=readout_frequencies, shape=(4,), dtype=float, unit=Hz),\n", " Scalar(name=readout_frequency_detuning, value=0.0, dtype=float, unit=Hz),\n", " Array(name=readout_amplitudes, shape=(4,), dtype=float, unit=none),\n", " Array(name=readout_phases, shape=(4,), dtype=float, unit=rad),\n", " Scalar(name=readout_plateau_time, value=1e-07, dtype=float, unit=s),\n", " Scalar(name=readout_rise_time, value=3e-08, dtype=float, unit=s),\n", " Scalar(name=readout_pulse_delay, value=4e-08, dtype=float, unit=s),\n", " Scalar(name=acquisition_duration, value=2e-07, dtype=float, unit=s),\n", " Array(name=ref_pts, shape=(4, 2), dtype=complex, unit=none),\n", " Array(name=phis, shape=(4,), dtype=float, unit=rad),\n", " Array(name=thetas, shape=(4,), dtype=float, unit=none),\n", " Array(name=beta, shape=(2,), dtype=float, unit=none),\n", " Scalar(name=alpha, value=0.33, dtype=float, unit=none)]" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "calibration_set.variable_list" ] }, { "cell_type": "raw", "id": "063657c2", "metadata": { "raw_mimetype": "text/restructuredtext" }, "source": [ "While it is convenient to save the full calibration set with variables and linkers\n", "in a single file, it is also possible to save the variables separately using the\n", ":py:meth:`~keysight.qcs.programs.CalibrationSet.export_values` method, which creates\n", "a json file that can easily be edited.\n", "\n", "This can be integrated into a workflow where calibration variables can be saved at\n", "certain times to track their history." ] }, { "cell_type": "code", "execution_count": 5, "id": "52b6b3fc", "metadata": { "execution": { "iopub.execute_input": "2025-10-02T01:24:17.434076Z", "iopub.status.busy": "2025-10-02T01:24:17.433901Z", "iopub.status.idle": "2025-10-02T01:24:17.437983Z", "shell.execute_reply": "2025-10-02T01:24:17.437208Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{\n", " \"qudits_0\": {\n", " \"phis\": 0.0,\n", " \"thetas\": 0.0,\n", " \"single_qubit_duration\": 3E-08,\n", " \"single_qubit_amplitudes\": 0.1,\n", " \"single_qubit_frequencies\": 5000000000.0,\n", " \"readout_pulse_delay\": 4E-08,\n", " \"readout_rise_time\": 3E-08,\n", " \"readout_amplitudes\": 0.1,\n", " \"readout_frequencies\": 5800000000.0,\n", " \"readout_frequency_detuning\": 0.0,\n", " \"readout_phases\": 0.0,\n", " \"readout_plateau_time\": 1E-07,\n", " \"acquisition_duration\": 2E-07,\n", " \"ref_pts\": {\n", " \"real\": [\n", " 1.0,\n", " 1.0\n", " ],\n", " \"imag\": [\n", " 1.0,\n", " -1.0\n", " ]\n", " }\n", " },\n", " \"qudits_1\": {\n", " \"phis\": 0.0,\n", " \"thetas\": 0.0,\n", " \"single_qubit_duration\": 3E-08,\n", " \"single_qubit_amplitudes\": 0.1,\n", " \"single_qubit_frequencies\": 5100000000.0,\n", " \"readout_pulse_delay\": 4E-08,\n", " \"readout_rise_time\": 3E-08,\n", " \"readout_amplitudes\": 0.1,\n", " \"readout_frequencies\": 5850000000.0,\n", " \"readout_frequency_detuning\": 0.0,\n", " \"readout_phases\": 0.0,\n", " \"readout_plateau_time\": 1E-07,\n", " \"acquisition_duration\": 2E-07,\n", " \"ref_pts\": {\n", " \"real\": [\n", " 1.0,\n", " 1.0\n", " ],\n", " \"imag\": [\n", " 1.0,\n", " -1.0\n", " ]\n", " }\n", " },\n", " \"qudits_2\": {\n", " \"phis\": 0.0,\n", " \"thetas\": 0.0,\n", " \"single_qubit_duration\": 3E-08,\n", " \"single_qubit_amplitudes\": 0.1,\n", " \"single_qubit_frequencies\": 5200000000.0,\n", " \"readout_pulse_delay\": 4E-08,\n", " \"readout_rise_time\": 3E-08,\n", " \"readout_amplitudes\": 0.1,\n", " \"readout_frequencies\": 5900000000.0,\n", " \"readout_frequency_detuning\": 0.0,\n", " \"readout_phases\": 0.0,\n", " \"readout_plateau_time\": 1E-07,\n", " \"acquisition_duration\": 2E-07,\n", " \"ref_pts\": {\n", " \"real\": [\n", " 1.0,\n", " 1.0\n", " ],\n", " \"imag\": [\n", " 1.0,\n", " -1.0\n", " ]\n", " }\n", " },\n", " \"qudits_3\": {\n", " \"phis\": 0.0,\n", " \"thetas\": 0.0,\n", " \"single_qubit_duration\": 3E-08,\n", " \"single_qubit_amplitudes\": 0.1,\n", " \"single_qubit_frequencies\": 5300000000.0,\n", " \"readout_pulse_delay\": 4E-08,\n", " \"readout_rise_time\": 3E-08,\n", " \"readout_amplitudes\": 0.1,\n", " \"readout_frequencies\": 5950000000.0,\n", " \"readout_frequency_detuning\": 0.0,\n", " \"readout_phases\": 0.0,\n", " \"readout_plateau_time\": 1E-07,\n", " \"acquisition_duration\": 2E-07,\n", " \"ref_pts\": {\n", " \"real\": [\n", " 1.0,\n", " 1.0\n", " ],\n", " \"imag\": [\n", " 1.0,\n", " -1.0\n", " ]\n", " }\n", " },\n", " \"couplings_0\": {\n", " \"beta\": 0.0,\n", " \"multi_qubit_duration\": 3E-08,\n", " \"multi_qubit_amplitudes\": 0.1,\n", " \"single_qubit_frequencies\": 5000000000.0,\n", " \"alpha\": 0.33\n", " },\n", " \"couplings_1\": {\n", " \"beta\": 0.0,\n", " \"multi_qubit_duration\": 3E-08,\n", " \"multi_qubit_amplitudes\": 0.1,\n", " \"single_qubit_frequencies\": 5100000000.0,\n", " \"alpha\": 0.33\n", " }\n", "}\n", "\n" ] } ], "source": [ "# calibration_set.export_values(\"calibration_values_Jan_01_2024.qcs\")\n", "\n", "# the variables stored in this format are sorted by qudit:\n", "print(open(\"calibration_values_Jan_01_2024.qcs\").read())" ] }, { "cell_type": "raw", "id": "f4917ca7", "metadata": { "raw_mimetype": "text/restructuredtext" }, "source": [ "We can edit the exported file and load the edits back in using the\n", ":py:meth:`~keysight.qcs.programs.CalibrationSet.import_values` method:" ] }, { "cell_type": "code", "execution_count": 6, "id": "beab0305", "metadata": { "execution": { "iopub.execute_input": "2025-10-02T01:24:17.439739Z", "iopub.status.busy": "2025-10-02T01:24:17.439528Z", "iopub.status.idle": "2025-10-02T01:24:17.478381Z", "shell.execute_reply": "2025-10-02T01:24:17.477628Z" }, "lines_to_next_cell": 2 }, "outputs": [], "source": [ "calibration_set.import_values(\"calibration_values_Jan_01_2024.qcs\")" ] }, { "cell_type": "raw", "id": "ff84102f", "metadata": { "lines_to_next_cell": 0, "raw_mimetype": "text/restructuredtext" }, "source": [ "Linkers\n", "^^^^^^^\n", "The dictionary of linkers can be accessed via\n", ":py:meth:`~keysight.qcs.programs.CalibrationSet.linkers`\\." ] }, { "cell_type": "code", "execution_count": 7, "id": "72615b24", "metadata": { "execution": { "iopub.execute_input": "2025-10-02T01:24:17.480857Z", "iopub.status.busy": "2025-10-02T01:24:17.480665Z", "iopub.status.idle": "2025-10-02T01:24:17.486632Z", "shell.execute_reply": "2025-10-02T01:24:17.485996Z" } }, "outputs": [ { "data": { "text/plain": [ "['single_qubit_linker', 'multi_qubit_linker_suppression', 'measurement_linker']" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "list(calibration_set.linkers.keys())" ] }, { "cell_type": "raw", "id": "147eb803", "metadata": { "lines_to_next_cell": 0, "raw_mimetype": "text/restructuredtext" }, "source": [ "A :py:class:`~keysight.qcs.programs.CalibrationSet` also has an\n", ":py:attr:`~keysight.qcs.programs.CalibrationSet.active_linkers` property that can be\n", "used to specify a subset of all available linkers.\n", "By default, all linkers are active and can be set using their names." ] }, { "cell_type": "code", "execution_count": 8, "id": "2ec10afd", "metadata": { "execution": { "iopub.execute_input": "2025-10-02T01:24:17.488320Z", "iopub.status.busy": "2025-10-02T01:24:17.488149Z", "iopub.status.idle": "2025-10-02T01:24:17.494707Z", "shell.execute_reply": "2025-10-02T01:24:17.493813Z" } }, "outputs": [ { "data": { "text/plain": [ "['single_qubit_linker', 'measurement_linker']" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "calibration_set.active_linkers = [\"single_qubit_linker\", \"measurement_linker\"]\n", "list(calibration_set.active_linkers.keys())" ] }, { "cell_type": "raw", "id": "b3573dfa", "metadata": { "lines_to_next_cell": 0, "raw_mimetype": "text/restructuredtext" }, "source": [ "Using the Linkers\n", "-----------------\n", "\n", "Now, using the linkers within, we can define gate-level programs and compile them:" ] }, { "cell_type": "code", "execution_count": 9, "id": "7e3df1f3", "metadata": { "execution": { "iopub.execute_input": "2025-10-02T01:24:17.496699Z", "iopub.status.busy": "2025-10-02T01:24:17.496513Z", "iopub.status.idle": "2025-10-02T01:24:17.598058Z", "shell.execute_reply": "2025-10-02T01:24:17.597391Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", " \n", " \n", "
\n", "
\n", " Program\n", "
\n", "
\n", " \n", " \n", "\n", " \n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
\n", " \n", "\tkeysight-logo-svg\n", "\t\n", "\t\n", "\t\t\n", "\t\n", "\n", "\n", " \n", "
\n", " Program Body\n", "
\n", " \n", "\n", "\n", "\n", "
\n", " Program\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
Durationundefined
Layers2
Targets2
\n", "
\n", "\n", "
\n", "
\n", "
\n", "
\n", " Layer #0\n", "
\n", " \n", "\n", "\n", "\n", "
\n", " Layer #0 \n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
Durationundefined
\n", "
\n", "\n", "
\n", "
\n", "
\n", "
\n", " Layer #1\n", "
\n", " \n", "\n", "\n", "\n", "
\n", " Layer #1 \n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
Durationundefined
\n", "
\n", "\n", "
\n", "
\n", "
\n", " qudits\n", " \n", " 0\n", " \n", " \n", "
\n", " PGATE\n", "
\n", " \n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "
\n", " ParameterizedGate on ('qudits', 0)\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
Parametersphi, theta, phi
ValuesArray(name=phis, shape=(2,), dtype=float, unit=none)
Array(name=thetas, shape=(2,), dtype=float, unit=none)
\n", "
\n", " Matrices\n", "
\n", "
\n", " \n", "
\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
-10
01
\n", "\n", "
\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
01
10
\n", "\n", "
\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
10
0-1
\n", "\n", "
\n", "
\n", "
\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", " \n", "
\n", " MULTIGATE\n", "
\n", " \n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "
\n", " ParameterizedGate on (('qudits', 0), ('qudits', 1))\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
Parametersbeta
ValuesScalarRef(name=beta, value=1.5707963267948966, dtype=float, unit=none)
\n", "
\n", " Matrices\n", "
\n", "
\n", " \n", "
\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
0100
1000
000-1
00-10
\n", "\n", "
\n", "
\n", "
\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", " 1\n", " \n", " \n", "
\n", " PGATE\n", "
\n", " \n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "
\n", " ParameterizedGate on ('qudits', 1)\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
Parametersphi, theta, phi
ValuesArray(name=phis, shape=(2,), dtype=float, unit=none)
Array(name=thetas, shape=(2,), dtype=float, unit=none)
\n", "
\n", " Matrices\n", "
\n", "
\n", " \n", "
\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
-10
01
\n", "\n", "
\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
01
10
\n", "\n", "
\n", "
\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
10
0-1
\n", "\n", "
\n", "
\n", "
\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", " \n", "
\n", " MULTIGATE\n", "
\n", " \n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "
\n", " ParameterizedGate on (('qudits', 1), ('qudits', 0))\n", "
\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
Parametersbeta
ValuesScalarRef(name=beta, value=1.5707963267948966, dtype=float, unit=none)
\n", "
\n", " Matrices\n", "
\n", "
\n", " \n", "
\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
0100
1000
000-1
00-10
\n", "\n", "
\n", "
\n", "
\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "\n", "\n", " \n", "
\n", " \n", "
\n", " \n", "
\n", " \n", "
\n", " \n", "
\n", " \n", "
\n", " \n", "
\n", " \n", "
\n", " \n", "
\n", " \n", "
\n", " \n", "
\n", " \n", "
\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "
\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": { "text/html": { "isolated": true } }, "output_type": "display_data" } ], "source": [ "qubits = qcs.Qudits(range(2))\n", "\n", "# define a sample program\n", "program_to_compile = qcs.Program()\n", "\n", "# apply X90 on qubit 0 and an X on qubit 1\n", "phis = qcs.Array(\"phis\", value=[0.0, 0.0])\n", "thetas = qcs.Array(\"thetas\", value=[np.pi / 2, np.pi])\n", "program_to_compile.add_parametric_gate(zxz, [phis, thetas], qubits)\n", "\n", "# apply (ZX)^1/2 on qubits (0, 1)\n", "beta = qcs.Array(\"beta\", value=[np.pi / 2])\n", "multiqudits = qcs.MultiQudits.from_qudits((qubits[0], qubits[1]))\n", "program_to_compile.add_parametric_gate(cr, [beta], multiqudits)\n", "\n", "program_to_compile.draw()" ] }, { "cell_type": "raw", "id": "3d66b8e0", "metadata": { "raw_mimetype": "text/restructuredtext" }, "source": [ "Next, we define a :py:class:`~keysight.qcs.executor.LinkerPass` to compile the\n", "program:" ] }, { "cell_type": "code", "execution_count": 10, "id": "c6ce941e", "metadata": { "execution": { "iopub.execute_input": "2025-10-02T01:24:17.599841Z", "iopub.status.busy": "2025-10-02T01:24:17.599659Z", "iopub.status.idle": "2025-10-02T01:24:17.660740Z", "shell.execute_reply": "2025-10-02T01:24:17.659900Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", " \n", " \n", "
\n", "
\n", " Program\n", "
\n", "
\n", " \n", " \n", "\n", " \n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
\n", " \n", "\tkeysight-logo-svg\n", "\t\n", "\t\n", "\t\t\n", "\t\n", "\n", "\n", " \n", "
\n", " Program Body\n", "
\n", " \n", "\n", "\n", "\n", "
\n", " Program\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
Duration60 ns
Layers2
Targets2
\n", "
\n", "\n", "
\n", "
\n", "
\n", "
\n", " Layer #0\n", "
\n", " \n", "\n", "\n", "\n", "
\n", " Layer #0 \n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
Duration30 ns
\n", "
\n", "\n", "
\n", "
\n", "
\n", "
\n", " Layer #1\n", "
\n", " \n", "\n", "\n", "\n", "
\n", " Layer #1 \n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
Duration30 ns
\n", "
\n", "\n", "
\n", "
\n", "
\n", " xy_channels\n", " \n", " 0\n", " \n", " \n", "
\n", " \n", "\n", "\n", "
\n", " \n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "
\n", " RFWaveform on ('xy_channels', 0)\n", "
\n", "
\n", " Parameters\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
DurationScalar(name=single_qubit_duration, value=30 ns, dtype=float, unit=s)
AmplitudeArraySlice(name=_implicit, shape=(2,), dtype=float, unit=none, value=[0.1571, 0.3142])
FrequencyArraySlice(name=single_qubit_frequencies, shape=(2,), dtype=float, unit=Hz, value=[5 GHz, 5.1 GHz])
EnvelopeGaussianEnvelope(2.0)
Instantaneous PhaseArraySlice(name=_implicit, shape=(2,), dtype=float, unit=rad, value=[0 rad, 0 rad])
Post-phase0 rad
\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", "\n", "\n", "
\n", " \n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "
\n", " RFWaveform on ('xy_channels', 0)\n", "
\n", "
\n", " Parameters\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
DurationScalar(name=multi_qubit_duration, value=30 ns, dtype=float, unit=s)
AmplitudeScalarRef(name=_implicit, value=0.1571, dtype=float, unit=none)
FrequencyScalarRef(name=single_qubit_frequencies, value=5.1 GHz, dtype=float, unit=Hz)
EnvelopeGaussianEnvelope(2.0)
Instantaneous Phase0 rad
Post-phase0 rad
\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", " 1\n", " \n", " \n", "
\n", " \n", "\n", "\n", "
\n", " \n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "
\n", " RFWaveform on ('xy_channels', 1)\n", "
\n", "
\n", " Parameters\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
DurationScalar(name=single_qubit_duration, value=30 ns, dtype=float, unit=s)
AmplitudeArraySlice(name=_implicit, shape=(2,), dtype=float, unit=none, value=[0.1571, 0.3142])
FrequencyArraySlice(name=single_qubit_frequencies, shape=(2,), dtype=float, unit=Hz, value=[5 GHz, 5.1 GHz])
EnvelopeGaussianEnvelope(2.0)
Instantaneous PhaseArraySlice(name=_implicit, shape=(2,), dtype=float, unit=rad, value=[0 rad, 0 rad])
Post-phase0 rad
\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", " \n", "
\n", " \n", "\n", "\n", "
\n", " \n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "
\n", " RFWaveform on ('xy_channels', 1)\n", "
\n", "
\n", " Parameters\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
DurationScalar(name=multi_qubit_duration, value=30 ns, dtype=float, unit=s)
AmplitudeScalarRef(name=_implicit, value=0.0518, dtype=float, unit=none)
FrequencyScalarRef(name=single_qubit_frequencies, value=5.1 GHz, dtype=float, unit=Hz)
EnvelopeGaussianEnvelope(2.0)
Instantaneous Phase0 rad
Post-phase0 rad
\n", "
\n", "\n", "\n", "
\n", "
\n", "
\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "
\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": { "text/html": { "isolated": true } }, "output_type": "display_data" } ], "source": [ "linker_pass = qcs.LinkerPass(*calibration_set.linkers.values())\n", "program_compiled = linker_pass.apply(program_to_compile)\n", "program_compiled.draw()" ] }, { "cell_type": "raw", "id": "788ad6c6", "metadata": { "lines_to_next_cell": 0, "raw_mimetype": "text/restructuredtext" }, "source": [ "As this program now only contains waveforms, we render it:" ] }, { "cell_type": "code", "execution_count": 11, "id": "f7e61b48", "metadata": { "execution": { "iopub.execute_input": "2025-10-02T01:24:17.662940Z", "iopub.status.busy": "2025-10-02T01:24:17.662650Z", "iopub.status.idle": "2025-10-02T01:24:19.884334Z", "shell.execute_reply": "2025-10-02T01:24:19.883544Z" } }, "outputs": [ { "data": { "text/html": [ " \n", " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "dx": 4.166666666666667e-10, "legendgroup": "xy_channels, labels: (0,)", "legendgrouptitle": { "text": "xy_channels, labels: (0,)" }, "name": "Drive pulse for xy_channels, labels: (0,)", "type": "scatter", "x0": 0, "xaxis": "x", "y": [ 4.35983562251079e-18, 0.0028886869605245597, 0.006019484098316841, 0.009399007441557456, 0.013032120508877513, 0.016921676069292055, 0.021068263394566727, 0.025469966638629923, 0.030122140311017613, 0.0350172080195173, 0.04014449072235477, 0.045490070636498924, 0.05103669668372693, 0.056763736912284625, 0.06264718270680264, 0.0686597087958361, 0.07477079209436191, 0.08094689129343732, 0.08715168785283735, 0.09334638769255323, 0.09949008144854286, 0.10554015969451858, 0.11145277807568675, 0.11718336589520281, 0.12268717038339724, 0.1279198277064953, 0.13283795077617658, 0.1373997231405799, 0.1415654877025515, 0.14529831874666352, 0.14856456577958177, 0.15133435800683856, 0.15358205888185994, 0.1552866610596495, 0.15643211324799994, 0.15700757184484948, 0.15700757184484948, 0.15643211324799994, 0.15528666105964953, 0.15358205888185994, 0.15133435800683856, 0.14856456577958177, 0.14529831874666352, 0.1415654877025515, 0.13739972314057997, 0.13283795077617652, 0.1279198277064953, 0.12268717038339724, 0.11718336589520281, 0.11145277807568676, 0.10554015969451859, 0.09949008144854285, 0.09334638769255323, 0.08715168785283735, 0.08094689129343732, 0.07477079209436191, 0.06865970879583615, 0.06264718270680264, 0.056763736912284625, 0.05103669668372693, 0.045490070636498924, 0.04014449072235477, 0.03501720801951732, 0.030122140311017585, 0.025469966638629923, 0.021068263394566727, 0.016921676069292055, 0.01303212050887753, 0.009399007441557474, 0.006019484098316828, 0.0028886869605245597, 4.35983562251079e-18, 4.35983562251079e-18, 0.0027902573392351426, 0.00521302614681885, 0.0066461018983481005, 0.006516060254438758, 0.004379652041788349, 4.678094221903068e-18, -0.006592112444203251, -0.0150610701555088, -0.02476090524882063, -0.03476614878754794, -0.04394003406750831, -0.05103669668372694, -0.05482955948025383, -0.05425405169961629, -0.048549745683829394, -0.037385396047181, -0.020950597108585056, -5.805468629349876e-17, 0.024159822926356267, 0.04974504072427139, 0.07462816260750521, 0.09652093713589406, 0.11319043952965803, 0.1226871703833973, 0.12356106527615181, 0.11504103995883581, 0.09715627596585838, 0.0707827438512759, 0.0376059721130133, 1.5669281149333378e-16, -0.03916821403053283, -0.07679102944092987, -0.10980425106309508, -0.13547418404045214, -0.1516576685678765, -0.15700757184484956, -0.15110181824721958, -0.13448219334652042, -0.10859891530395499, -0.07566717900341949, -0.038451339051142196, -2.0567476211263535e-16, 0.03663984434664684, 0.06869986157028983, 0.09393061579275913, 0.11078182044155335, 0.1185067064276507, 0.11718336589520287, 0.10765511675496998, 0.09140045941491971, 0.0703501112530667, 0.04667319384627674, 0.022556516629144444, 1.1458310566939977e-16, -0.01935210501142176, -0.034329854397918, -0.044298247714212716, -0.049158838179774914, -0.049297663415293486, -0.045490070636498944, -0.0387766003719444, -0.030325791714506205, -0.021299569677773234, -0.012734983319314996, -0.005452867813750183, -2.395321384390511e-17, 0.0033729609857686424, 0.0046995037207787265, 0.004256418025164415, 0.0025016762913951237, 4.211277826158249e-18 ], "yaxis": "y" }, { "dx": 4.166666666666667e-10, "legendgroup": "xy_channels, labels: (1,)", "legendgrouptitle": { "text": "xy_channels, labels: (1,)" }, "name": "Drive pulse for xy_channels, labels: (1,)", "type": "scatter", "x0": 0, "xaxis": "x", "y": [ 8.71967124502158e-18, 0.005580514678470285, 0.0104260522936377, 0.013292203796696201, 0.013032120508877516, 0.008759304083576698, 9.356188443806136e-18, -0.013184224888406502, -0.0301221403110176, -0.04952181049764126, -0.06953229757509588, -0.08788006813501661, -0.10207339336745389, -0.10965911896050766, -0.10850810339923259, -0.09709949136765879, -0.074770792094362, -0.04190119421717011, -1.1610937258699752e-16, 0.048319645852712534, 0.09949008144854278, 0.14925632521501042, 0.19304187427178812, 0.22638087905931606, 0.2453743407667946, 0.24712213055230361, 0.23008207991767163, 0.19431255193171676, 0.1415654877025518, 0.0752119442260266, 3.1338562298666757e-16, -0.07833642806106567, -0.15358205888185975, -0.21960850212619015, -0.2709483680809043, -0.303315337135753, -0.3140151436896991, -0.30220363649443915, -0.26896438669304085, -0.21719783060790998, -0.15133435800683898, -0.07690267810228439, -4.113495242252707e-16, 0.07327968869329368, 0.13739972314057966, 0.18786123158551826, 0.2215636408831067, 0.2370134128553014, 0.23436673179040574, 0.21531023350993997, 0.18280091882983943, 0.1407002225061334, 0.09334638769255348, 0.04511303325828889, 2.2916621133879953e-16, -0.03870421002284352, -0.068659708795836, -0.08859649542842543, -0.09831767635954983, -0.09859532683058697, -0.09098014127299789, -0.0775532007438888, -0.06065158342901241, -0.04259913935554647, -0.025469966638629993, -0.010905735627500366, -4.790642768781022e-17, 0.006745921971537285, 0.009399007441557453, 0.00851283605032883, 0.0050033525827902475, 8.422555652316499e-18, 1.4387457554285607e-18, 0.0009207849219475972, 0.0017202986284502208, 0.002193213626454873, 0.00215029988396479, 0.0014452851737901552, 1.5437710932280123e-18, -0.002175397106587073, -0.004970153151317903, -0.008171098732110808, -0.01147282909989082, -0.014500211242277742, -0.01684210990562989, -0.018093754628483765, -0.017903837060873378, -0.0160214160756637, -0.012337180695569732, -0.006913697045833069, -1.9158046476854592e-17, 0.007972741565697569, 0.01641586343900956, 0.02462729366047672, 0.03185190925484504, 0.03735284504478715, 0.040486766226521115, 0.040775151541130095, 0.03796354318641582, 0.032061571068733266, 0.02335830547092105, 0.01240997079729439, 5.170862779280015e-17, -0.012925510630075836, -0.025341039715506858, -0.03623540285082137, -0.04470648073334921, -0.05004703062739924, -0.05181249870880035, -0.04986360002158246, -0.044379123804351744, -0.03583764205030515, -0.02497016907112843, -0.012688941886876927, -6.787267149716966e-17, 0.012091148634393459, 0.022670954318195644, 0.030997103211610515, 0.03655800074571261, 0.03910721312112473, 0.03867051074541694, 0.03552618852914009, 0.03016215160692351, 0.023215536713512015, 0.015402153969271325, 0.007443650487617667, 3.781242487090192e-17, -0.006386194653769182, -0.011328851951312939, -0.014618421745690198, -0.016222416599325724, -0.01626822892704685, -0.015011723310044653, -0.012796278122741653, -0.010007511265787049, -0.007028857993665167, -0.004202544495373948, -0.0017994463785375604, -7.904560568488685e-18, 0.001113077125303652, 0.0015508362278569797, 0.001404617948304257, 0.0008255531761603909, 1.3897216826322222e-18 ], "yaxis": "y" } ], "layout": { "annotations": [ { "font": { "size": 16 }, "showarrow": false, "text": "Waveforms", "x": 0.5, "xanchor": "center", "xref": "paper", "y": 1.0, "yanchor": "bottom", "yref": "paper" } ], "height": 500, "template": { "data": { "bar": [ { "marker": { "color": "#c97a88", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "" } }, "type": "bar" }, { "marker": { "color": "#ff005c", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "" } }, "type": "bar" }, { "marker": { "color": "#ff9000", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "" } }, "type": "bar" }, { "marker": { "color": "#00d539", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "" } }, "type": "bar" }, { "marker": { "color": "#00b287", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "" } }, "type": "bar" }, { "marker": { "color": "#ad6aff", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "" } }, "type": "bar" }, { "marker": { "color": "#c97a88", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "/" } }, "type": "bar" }, { "marker": { "color": "#ff005c", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "/" } }, "type": "bar" }, { "marker": { "color": "#ff9000", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "/" } }, "type": "bar" }, { "marker": { "color": "#00d539", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "/" } }, "type": "bar" }, { "marker": { "color": "#00b287", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "/" } }, "type": "bar" }, { "marker": { "color": "#ad6aff", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "/" } }, "type": "bar" }, { "marker": { "color": "#c97a88", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "\\" } }, "type": "bar" }, { "marker": { "color": "#ff005c", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "\\" } }, "type": "bar" }, { "marker": { "color": "#ff9000", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "\\" } }, "type": "bar" }, { "marker": { "color": "#00d539", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "\\" } }, "type": "bar" }, { "marker": { "color": "#00b287", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "\\" } }, "type": "bar" }, { "marker": { "color": "#ad6aff", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "\\" } }, "type": "bar" }, { "marker": { "color": "#c97a88", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "x" } }, "type": "bar" }, { "marker": { "color": "#ff005c", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "x" } }, "type": "bar" }, { "marker": { "color": "#ff9000", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "x" } }, "type": "bar" }, { "marker": { "color": "#00d539", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "x" } }, "type": "bar" }, { "marker": { "color": "#00b287", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "x" } }, "type": "bar" }, { "marker": { "color": "#ad6aff", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "x" } }, "type": "bar" }, { "marker": { "color": "#c97a88", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "-" } }, "type": "bar" }, { "marker": { "color": "#ff005c", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "-" } }, "type": "bar" }, { "marker": { "color": "#ff9000", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "-" } }, "type": "bar" }, { "marker": { "color": "#00d539", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "-" } }, "type": "bar" }, { "marker": { "color": "#00b287", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "-" } }, "type": "bar" }, { "marker": { "color": "#ad6aff", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "-" } }, "type": "bar" }, { "marker": { "color": "#c97a88", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "|" } }, "type": "bar" }, { "marker": { "color": "#ff005c", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "|" } }, "type": "bar" }, { "marker": { "color": "#ff9000", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "|" } }, "type": "bar" }, { "marker": { "color": "#00d539", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "|" } }, "type": "bar" }, { "marker": { "color": "#00b287", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "|" } }, "type": "bar" }, { "marker": { "color": "#ad6aff", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "|" } }, "type": "bar" }, { "marker": { "color": "#c97a88", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "+" } }, "type": "bar" }, { "marker": { "color": "#ff005c", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "+" } }, "type": "bar" }, { "marker": { "color": "#ff9000", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "+" } }, "type": "bar" }, { "marker": { "color": "#00d539", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "+" } }, "type": "bar" }, { "marker": { "color": "#00b287", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "+" } }, "type": "bar" }, { "marker": { "color": "#ad6aff", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "+" } }, "type": "bar" }, { "marker": { "color": "#c97a88", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "." } }, "type": "bar" }, { "marker": { "color": "#ff005c", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "." } }, "type": "bar" }, { "marker": { "color": "#ff9000", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "." } }, "type": "bar" }, { "marker": { "color": "#00d539", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "." } }, "type": "bar" }, { "marker": { "color": "#00b287", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "." } }, "type": "bar" }, { "marker": { "color": "#ad6aff", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "." } }, "type": "bar" } ], "scatter": [ { "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "circle" }, "type": "scatter" }, { "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "square" }, "type": "scatter" }, { "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "type": "scatter" }, { "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "type": "scatter" }, { "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "cross" }, "type": "scatter" }, { "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "type": "scatter" }, { "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "square" }, "type": "scatter" }, { "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "type": "scatter" }, { "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "type": "scatter" }, { "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "cross" }, "type": "scatter" }, { "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "type": "scatter" }, { "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "circle" }, "type": "scatter" }, { "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "type": "scatter" }, { "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "type": "scatter" }, { "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "cross" }, "type": "scatter" }, { "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "type": "scatter" }, { "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "circle" }, "type": "scatter" }, { "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "square" }, "type": "scatter" }, { "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "type": "scatter" }, { "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "cross" }, "type": "scatter" }, { "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "type": "scatter" }, { "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "circle" }, "type": "scatter" }, { "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "square" }, "type": "scatter" }, { "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "type": "scatter" }, { "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "cross" }, "type": "scatter" }, { "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "type": "scatter" }, { "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "circle" }, "type": "scatter" }, { "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "square" }, "type": "scatter" }, { "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "type": "scatter" }, { "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "type": "scatter" }, { "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "type": "scatter" }, { "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "circle" }, "type": "scatter" }, { "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "square" }, "type": "scatter" }, { "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "type": "scatter" }, { "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "type": "scatter" }, { "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "cross" }, "type": "scatter" } ], "violin": [ { "box": { "visible": true }, "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "circle" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "square" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "cross" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "square" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "cross" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "circle" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "cross" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "circle" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "square" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "cross" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "circle" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "square" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "cross" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "circle" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "square" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "circle" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "square" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "cross" }, "meanline": { "visible": true }, "type": "violin" } ] }, "layout": { "annotationdefaults": { "font": { "size": 12 } }, "autotypenumbers": "strict", "hoverlabel": { "bgcolor": "white", "font": { "family": "Rockwell", "size": 14 } }, "hovermode": "x unified", "legend": { "bgcolor": "white", "bordercolor": "Black", "borderwidth": 1, "font": { "family": "Rockwell" } }, "xaxis": { "linecolor": "black", "linewidth": 1, "mirror": true, "showline": true }, "yaxis": { "linecolor": "black", "linewidth": 1, "mirror": true, "showline": true } } }, "width": 900, "xaxis": { "anchor": "y", "domain": [ 0.0, 1.0 ], "showticklabels": true, "title": { "text": "Time (s)" } }, "yaxis": { "anchor": "x", "domain": [ 0.0, 1.0 ], "title": { "text": "Fractional Voltage" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "program_compiled.render(\n", " channel_subplots=False,\n", " lo_frequency=5e9,\n", " sample_rate=qcs.SAMPLE_RATES[qcs.InstrumentEnum.M5300AWG],\n", ")" ] }, { "cell_type": "raw", "id": "9cbc0f9f", "metadata": { "raw_mimetype": "text/restructuredtext" }, "source": [ "Updating calibration data\n", "-------------------------\n", "\n", "We can update the values of the variables in the\n", ":py:class:`~keysight.qcs.programs.CalibrationSet` to update all the variables in\n", ":py:class:`Linkers `\\s that use them. Since the\n", "cross-resonance gate uses the single-qubit frequencies, both waveforms are updated\n", "to reflect the new value." ] }, { "cell_type": "code", "execution_count": 12, "id": "41189b23", "metadata": { "execution": { "iopub.execute_input": "2025-10-02T01:24:19.924011Z", "iopub.status.busy": "2025-10-02T01:24:19.923735Z", "iopub.status.idle": "2025-10-02T01:24:20.076013Z", "shell.execute_reply": "2025-10-02T01:24:20.075199Z" } }, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "dx": 4.166666666666667e-10, "legendgroup": "xy_channels, labels: (0,)", "legendgrouptitle": { "text": "xy_channels, labels: (0,)" }, "name": "Drive pulse for xy_channels, labels: (0,)", "type": "scatter", "x0": 0, "xaxis": "x", "y": [ 4.35983562251079e-18, 0.0028886869605245597, 0.006019484098316841, 0.009399007441557456, 0.013032120508877513, 0.016921676069292055, 0.021068263394566727, 0.025469966638629923, 0.030122140311017613, 0.0350172080195173, 0.04014449072235477, 0.045490070636498924, 0.05103669668372693, 0.056763736912284625, 0.06264718270680264, 0.0686597087958361, 0.07477079209436191, 0.08094689129343732, 0.08715168785283735, 0.09334638769255323, 0.09949008144854286, 0.10554015969451858, 0.11145277807568675, 0.11718336589520281, 0.12268717038339724, 0.1279198277064953, 0.13283795077617658, 0.1373997231405799, 0.1415654877025515, 0.14529831874666352, 0.14856456577958177, 0.15133435800683856, 0.15358205888185994, 0.1552866610596495, 0.15643211324799994, 0.15700757184484948, 0.15700757184484948, 0.15643211324799994, 0.15528666105964953, 0.15358205888185994, 0.15133435800683856, 0.14856456577958177, 0.14529831874666352, 0.1415654877025515, 0.13739972314057997, 0.13283795077617652, 0.1279198277064953, 0.12268717038339724, 0.11718336589520281, 0.11145277807568676, 0.10554015969451859, 0.09949008144854285, 0.09334638769255323, 0.08715168785283735, 0.08094689129343732, 0.07477079209436191, 0.06865970879583615, 0.06264718270680264, 0.056763736912284625, 0.05103669668372693, 0.045490070636498924, 0.04014449072235477, 0.03501720801951732, 0.030122140311017585, 0.025469966638629923, 0.021068263394566727, 0.016921676069292055, 0.01303212050887753, 0.009399007441557474, 0.006019484098316828, 0.0028886869605245597, 4.35983562251079e-18, 4.35983562251079e-18, 0.0027902573392351426, 0.00521302614681885, 0.0066461018983481005, 0.006516060254438758, 0.004379652041788349, 4.678094221903068e-18, -0.006592112444203251, -0.0150610701555088, -0.02476090524882063, -0.03476614878754794, -0.04394003406750831, -0.05103669668372694, -0.05482955948025383, -0.05425405169961629, -0.048549745683829394, -0.037385396047181, -0.020950597108585056, -5.805468629349876e-17, 0.024159822926356267, 0.04974504072427139, 0.07462816260750521, 0.09652093713589406, 0.11319043952965803, 0.1226871703833973, 0.12356106527615181, 0.11504103995883581, 0.09715627596585838, 0.0707827438512759, 0.0376059721130133, 1.5669281149333378e-16, -0.03916821403053283, -0.07679102944092987, -0.10980425106309508, -0.13547418404045214, -0.1516576685678765, -0.15700757184484956, -0.15110181824721958, -0.13448219334652042, -0.10859891530395499, -0.07566717900341949, -0.038451339051142196, -2.0567476211263535e-16, 0.03663984434664684, 0.06869986157028983, 0.09393061579275913, 0.11078182044155335, 0.1185067064276507, 0.11718336589520287, 0.10765511675496998, 0.09140045941491971, 0.0703501112530667, 0.04667319384627674, 0.022556516629144444, 1.1458310566939977e-16, -0.01935210501142176, -0.034329854397918, -0.044298247714212716, -0.049158838179774914, -0.049297663415293486, -0.045490070636498944, -0.0387766003719444, -0.030325791714506205, -0.021299569677773234, -0.012734983319314996, -0.005452867813750183, -2.395321384390511e-17, 0.0033729609857686424, 0.0046995037207787265, 0.004256418025164415, 0.0025016762913951237, 4.211277826158249e-18 ], "yaxis": "y" }, { "dx": 4.166666666666667e-10, "legendgroup": "xy_channels, labels: (1,)", "legendgrouptitle": { "text": "xy_channels, labels: (1,)" }, "name": "Drive pulse for xy_channels, labels: (1,)", "type": "scatter", "x0": 0, "xaxis": "x", "y": [ 8.71967124502158e-18, 0.005580514678470285, 0.0104260522936377, 0.013292203796696201, 0.013032120508877516, 0.008759304083576698, 9.356188443806136e-18, -0.013184224888406502, -0.0301221403110176, -0.04952181049764126, -0.06953229757509588, -0.08788006813501661, -0.10207339336745389, -0.10965911896050766, -0.10850810339923259, -0.09709949136765879, -0.074770792094362, -0.04190119421717011, -1.1610937258699752e-16, 0.048319645852712534, 0.09949008144854278, 0.14925632521501042, 0.19304187427178812, 0.22638087905931606, 0.2453743407667946, 0.24712213055230361, 0.23008207991767163, 0.19431255193171676, 0.1415654877025518, 0.0752119442260266, 3.1338562298666757e-16, -0.07833642806106567, -0.15358205888185975, -0.21960850212619015, -0.2709483680809043, -0.303315337135753, -0.3140151436896991, -0.30220363649443915, -0.26896438669304085, -0.21719783060790998, -0.15133435800683898, -0.07690267810228439, -4.113495242252707e-16, 0.07327968869329368, 0.13739972314057966, 0.18786123158551826, 0.2215636408831067, 0.2370134128553014, 0.23436673179040574, 0.21531023350993997, 0.18280091882983943, 0.1407002225061334, 0.09334638769255348, 0.04511303325828889, 2.2916621133879953e-16, -0.03870421002284352, -0.068659708795836, -0.08859649542842543, -0.09831767635954983, -0.09859532683058697, -0.09098014127299789, -0.0775532007438888, -0.06065158342901241, -0.04259913935554647, -0.025469966638629993, -0.010905735627500366, -4.790642768781022e-17, 0.006745921971537285, 0.009399007441557453, 0.00851283605032883, 0.0050033525827902475, 8.422555652316499e-18, 1.4387457554285607e-18, 0.0009207849219475972, 0.0017202986284502208, 0.002193213626454873, 0.00215029988396479, 0.0014452851737901552, 1.5437710932280123e-18, -0.002175397106587073, -0.004970153151317903, -0.008171098732110808, -0.01147282909989082, -0.014500211242277742, -0.01684210990562989, -0.018093754628483765, -0.017903837060873378, -0.0160214160756637, -0.012337180695569732, -0.006913697045833069, -1.9158046476854592e-17, 0.007972741565697569, 0.01641586343900956, 0.02462729366047672, 0.03185190925484504, 0.03735284504478715, 0.040486766226521115, 0.040775151541130095, 0.03796354318641582, 0.032061571068733266, 0.02335830547092105, 0.01240997079729439, 5.170862779280015e-17, -0.012925510630075836, -0.025341039715506858, -0.03623540285082137, -0.04470648073334921, -0.05004703062739924, -0.05181249870880035, -0.04986360002158246, -0.044379123804351744, -0.03583764205030515, -0.02497016907112843, -0.012688941886876927, -6.787267149716966e-17, 0.012091148634393459, 0.022670954318195644, 0.030997103211610515, 0.03655800074571261, 0.03910721312112473, 0.03867051074541694, 0.03552618852914009, 0.03016215160692351, 0.023215536713512015, 0.015402153969271325, 0.007443650487617667, 3.781242487090192e-17, -0.006386194653769182, -0.011328851951312939, -0.014618421745690198, -0.016222416599325724, -0.01626822892704685, -0.015011723310044653, -0.012796278122741653, -0.010007511265787049, -0.007028857993665167, -0.004202544495373948, -0.0017994463785375604, -7.904560568488685e-18, 0.001113077125303652, 0.0015508362278569797, 0.001404617948304257, 0.0008255531761603909, 1.3897216826322222e-18 ], "yaxis": "y" } ], "layout": { "annotations": [ { "font": { "size": 16 }, "showarrow": false, "text": "Waveforms", "x": 0.5, "xanchor": "center", "xref": "paper", "y": 1.0, "yanchor": "bottom", "yref": "paper" } ], "height": 500, "template": { "data": { "bar": [ { "marker": { "color": "#c97a88", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "" } }, "type": "bar" }, { "marker": { "color": "#ff005c", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "" } }, "type": "bar" }, { "marker": { "color": "#ff9000", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "" } }, "type": "bar" }, { "marker": { "color": "#00d539", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "" } }, "type": "bar" }, { "marker": { "color": "#00b287", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "" } }, "type": "bar" }, { "marker": { "color": "#ad6aff", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "" } }, "type": "bar" }, { "marker": { "color": "#c97a88", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "/" } }, "type": "bar" }, { "marker": { "color": "#ff005c", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "/" } }, "type": "bar" }, { "marker": { "color": "#ff9000", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "/" } }, "type": "bar" }, { "marker": { "color": "#00d539", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "/" } }, "type": "bar" }, { "marker": { "color": "#00b287", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "/" } }, "type": "bar" }, { "marker": { "color": "#ad6aff", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "/" } }, "type": "bar" }, { "marker": { "color": "#c97a88", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "\\" } }, "type": "bar" }, { "marker": { "color": "#ff005c", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "\\" } }, "type": "bar" }, { "marker": { "color": "#ff9000", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "\\" } }, "type": "bar" }, { "marker": { "color": "#00d539", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "\\" } }, "type": "bar" }, { "marker": { "color": "#00b287", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "\\" } }, "type": "bar" }, { "marker": { "color": "#ad6aff", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "\\" } }, "type": "bar" }, { "marker": { "color": "#c97a88", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "x" } }, "type": "bar" }, { "marker": { "color": "#ff005c", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "x" } }, "type": "bar" }, { "marker": { "color": "#ff9000", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "x" } }, "type": "bar" }, { "marker": { "color": "#00d539", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "x" } }, "type": "bar" }, { "marker": { "color": "#00b287", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "x" } }, "type": "bar" }, { "marker": { "color": "#ad6aff", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "x" } }, "type": "bar" }, { "marker": { "color": "#c97a88", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "-" } }, "type": "bar" }, { "marker": { "color": "#ff005c", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "-" } }, "type": "bar" }, { "marker": { "color": "#ff9000", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "-" } }, "type": "bar" }, { "marker": { "color": "#00d539", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "-" } }, "type": "bar" }, { "marker": { "color": "#00b287", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "-" } }, "type": "bar" }, { "marker": { "color": "#ad6aff", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "-" } }, "type": "bar" }, { "marker": { "color": "#c97a88", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "|" } }, "type": "bar" }, { "marker": { "color": "#ff005c", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "|" } }, "type": "bar" }, { "marker": { "color": "#ff9000", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "|" } }, "type": "bar" }, { "marker": { "color": "#00d539", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "|" } }, "type": "bar" }, { "marker": { "color": "#00b287", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "|" } }, "type": "bar" }, { "marker": { "color": "#ad6aff", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "|" } }, "type": "bar" }, { "marker": { "color": "#c97a88", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "+" } }, "type": "bar" }, { "marker": { "color": "#ff005c", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "+" } }, "type": "bar" }, { "marker": { "color": "#ff9000", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "+" } }, "type": "bar" }, { "marker": { "color": "#00d539", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "+" } }, "type": "bar" }, { "marker": { "color": "#00b287", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "+" } }, "type": "bar" }, { "marker": { "color": "#ad6aff", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "+" } }, "type": "bar" }, { "marker": { "color": "#c97a88", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "." } }, "type": "bar" }, { "marker": { "color": "#ff005c", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "." } }, "type": "bar" }, { "marker": { "color": "#ff9000", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "." } }, "type": "bar" }, { "marker": { "color": "#00d539", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "." } }, "type": "bar" }, { "marker": { "color": "#00b287", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "." } }, "type": "bar" }, { "marker": { "color": "#ad6aff", "line": { "color": "black", "width": 1.5 }, "opacity": 0.8, "pattern": { "shape": "." } }, "type": "bar" } ], "scatter": [ { "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "circle" }, "type": "scatter" }, { "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "square" }, "type": "scatter" }, { "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "type": "scatter" }, { "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "type": "scatter" }, { "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "cross" }, "type": "scatter" }, { "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "type": "scatter" }, { "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "square" }, "type": "scatter" }, { "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "type": "scatter" }, { "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "type": "scatter" }, { "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "cross" }, "type": "scatter" }, { "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "type": "scatter" }, { "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "circle" }, "type": "scatter" }, { "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "type": "scatter" }, { "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "type": "scatter" }, { "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "cross" }, "type": "scatter" }, { "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "type": "scatter" }, { "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "circle" }, "type": "scatter" }, { "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "square" }, "type": "scatter" }, { "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "type": "scatter" }, { "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "cross" }, "type": "scatter" }, { "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "type": "scatter" }, { "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "circle" }, "type": "scatter" }, { "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "square" }, "type": "scatter" }, { "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "type": "scatter" }, { "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "cross" }, "type": "scatter" }, { "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "type": "scatter" }, { "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "circle" }, "type": "scatter" }, { "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "square" }, "type": "scatter" }, { "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "type": "scatter" }, { "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "type": "scatter" }, { "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "type": "scatter" }, { "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "circle" }, "type": "scatter" }, { "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "square" }, "type": "scatter" }, { "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "type": "scatter" }, { "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "type": "scatter" }, { "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "cross" }, "type": "scatter" } ], "violin": [ { "box": { "visible": true }, "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "circle" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "square" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "cross" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "square" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "cross" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "circle" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "cross" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "circle" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "square" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "cross" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "circle" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "square" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "cross" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "circle" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "square" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff005c" }, "marker": { "color": "#ff005c", "opacity": 0.5, "size": 8, "symbol": "hexagram" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00d539" }, "marker": { "color": "#00d539", "opacity": 0.5, "size": 8, "symbol": "circle" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ad6aff" }, "marker": { "color": "#ad6aff", "opacity": 0.5, "size": 8, "symbol": "square" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#ff9000" }, "marker": { "color": "#ff9000", "opacity": 0.5, "size": 8, "symbol": "diamond" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#00b287" }, "marker": { "color": "#00b287", "opacity": 0.5, "size": 8, "symbol": "triangle-down" }, "meanline": { "visible": true }, "type": "violin" }, { "box": { "visible": true }, "line": { "color": "#c97a88" }, "marker": { "color": "#c97a88", "opacity": 0.5, "size": 8, "symbol": "cross" }, "meanline": { "visible": true }, "type": "violin" } ] }, "layout": { "annotationdefaults": { "font": { "size": 12 } }, "autotypenumbers": "strict", "hoverlabel": { "bgcolor": "white", "font": { "family": "Rockwell", "size": 14 } }, "hovermode": "x unified", "legend": { "bgcolor": "white", "bordercolor": "Black", "borderwidth": 1, "font": { "family": "Rockwell" } }, "xaxis": { "linecolor": "black", "linewidth": 1, "mirror": true, "showline": true }, "yaxis": { "linecolor": "black", "linewidth": 1, "mirror": true, "showline": true } } }, "width": 900, "xaxis": { "anchor": "y", "domain": [ 0.0, 1.0 ], "showticklabels": true, "title": { "text": "Time (s)" } }, "yaxis": { "anchor": "x", "domain": [ 0.0, 1.0 ], "title": { "text": "Fractional Voltage" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "calibration_set.variables.single_qubit_frequencies.value[1] += 100e6\n", "\n", "program_compiled.render(\n", " channel_subplots=False,\n", " lo_frequency=5e9,\n", " sample_rate=qcs.SAMPLE_RATES[qcs.InstrumentEnum.M5300AWG],\n", ")" ] }, { "cell_type": "raw", "id": "37904f5c", "metadata": { "raw_mimetype": "text/restructuredtext" }, "source": [ "Adding new linkers\n", "------------------\n", "\n", "Finally, we can create new linkers with the variables in and add new variables to the\n", "calibration set, then use the\n", ":py:meth:`~keysight.qcs.programs.CalibrationSet.add_linker` method to so it can\n", "be saved, loaded, and updated across multiple sessions." ] }, { "cell_type": "code", "execution_count": 13, "id": "5880215b", "metadata": { "execution": { "iopub.execute_input": "2025-10-02T01:24:20.078092Z", "iopub.status.busy": "2025-10-02T01:24:20.077893Z", "iopub.status.idle": "2025-10-02T01:24:20.090291Z", "shell.execute_reply": "2025-10-02T01:24:20.089566Z" } }, "outputs": [], "source": [ "operation = calibration_set.linkers[\"multi_qubit_linker_suppression\"].operation\n", "targets = calibration_set.linkers[\"multi_qubit_linker_suppression\"].targets\n", "\n", "mq_amp_cals = calibration_set.variables.multi_qubit_amplitudes\n", "frequency_cals = calibration_set.variables.single_qubit_frequencies\n", "\n", "# # define a new duration for this gate\n", "mq_dur = qcs.Scalar(\"multi_qubit_duration_new\", value=20e-9, dtype=float)\n", "calibration_set.variables.declare(mq_dur)\n", "\n", "gamma = qcs.Array(name=\"gamma\", shape=mq_amp_cals.shape, dtype=float)\n", "\n", "prog = qcs.Program()\n", "channels = qcs.Channels([0, 2], \"xy_channels\")\n", "envelope = qcs.GaussianEnvelope()\n", "pulse = qcs.RFWaveform(mq_dur, envelope, gamma * mq_amp_cals, frequency_cals[1::2])\n", "\n", "prog.add_waveform(pulse, channels)\n", "\n", "calibration_set.add_linker(\n", " \"multi_qubit_linker\", qcs.ParameterizedLinker(operation, targets, prog)\n", ")" ] } ], "metadata": { "jupytext": { "cell_metadata_filter": "raw_mimetype,nbsphinx,-all", "main_language": "python", "notebook_metadata_filter": "-all", "text_representation": { "extension": ".py", "format_name": "percent" } }, "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.10.12" } }, "nbformat": 4, "nbformat_minor": 5 }