diff --git a/.gitignore b/.gitignore index efa2e63b..f807c6e8 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ database/contrib_to_do.md # Ignore testing files testing/* tutorials/Data_Cleaning.ipynb +tutorials/*.json # Ignore operating system files .DS_Store diff --git a/squadds/core/db.py b/squadds/core/db.py index 65e79f8e..c350ad07 100644 --- a/squadds/core/db.py +++ b/squadds/core/db.py @@ -4,6 +4,38 @@ from tabulate import tabulate import pprint import pandas as pd +from addict import Dict +import numpy as np + +# Function to convert numpy arrays to lists within an object +def convert_numpy(obj): + if isinstance(obj, np.ndarray): + return obj.tolist() + elif isinstance(obj, dict): + return {k: convert_numpy(v) for k, v in obj.items()} + elif isinstance(obj, list): + return [convert_numpy(v) for v in obj] + return obj + +# Function to create a unified design_options dictionary +def create_unified_design_options(row): + cavity_dict = convert_numpy(row["design_options_cavity_claw"]) + coupler_type = row["coupler_type"] + qubit_dict = convert_numpy(row["design_options_qubit"]) + + device_dict = { + "cavity_claw_options": { + "coupling_type": coupler_type, + "coupler_options": cavity_dict.get("cplr_opts", {}), + "cpw_options": { + "left_options": cavity_dict.get("cpw_opts", {}) + } + }, + "qubit_options": qubit_dict + } + + return device_dict + def flatten_df_second_level(df): # Initialize an empty dictionary to collect flattened data @@ -364,15 +396,21 @@ def selected_system_df(self): return df def create_qubit_cavity_df(self, qubit_df, cavity_df, merger_terms=None): - # process the dfs to make them ready for merger + for merger_term in merger_terms: + # process the dfs to make them ready for merger + qubit_df[merger_term] = qubit_df['design_options'].apply(lambda x: x['connection_pads']['c'][merger_term]) + cavity_df[merger_term] = cavity_df['design_options'].apply(lambda x: x['claw_opts']['connection_pads']['readout'][merger_term]) - df = pd.merge(qubit_df, cavity_df, - on=merger_terms, - how='inner', - suffixes=('_qubit', '_cavity')) - # process df to be in SQuADDS df format + # Merging the data frames based on merger terms + merged_df = pd.merge(qubit_df, cavity_df, on=merger_terms, how="inner", suffixes=('_qubit', '_cavity_claw')) - return df + # Dropping the merger terms + merged_df.drop(columns=merger_terms, inplace=True) + + # Combining the qubit and cavity design options into one + merged_df['design_options'] = merged_df.apply(create_unified_design_options, axis=1) + + return merged_df def unselect_all(self): self.selected_component_name = None diff --git a/squadds/core/metrics.py b/squadds/core/metrics.py index cc37f6fe..053aec5a 100644 --- a/squadds/core/metrics.py +++ b/squadds/core/metrics.py @@ -2,7 +2,9 @@ import pandas as pd import numpy as np from numpy import linalg as LA -from squadds import logging +import logging +logging.basicConfig(level=logging.INFO) + class MetricStrategy(ABC): """Abstract class for metric strategies.""" diff --git a/tutorials/Tutorial-1_Getting_Started_with_SQuADDS.ipynb b/tutorials/Tutorial-1_Getting_Started_with_SQuADDS.ipynb index 35a5f0ca..397a9bf6 100644 --- a/tutorials/Tutorial-1_Getting_Started_with_SQuADDS.ipynb +++ b/tutorials/Tutorial-1_Getting_Started_with_SQuADDS.ipynb @@ -19,18 +19,9 @@ }, { "cell_type": "code", - "execution_count": 34, + "execution_count": 1, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "The autoreload extension is already loaded. To reload it, use:\n", - " %reload_ext autoreload\n" - ] - } - ], + "outputs": [], "source": [ "%load_ext autoreload\n", "%autoreload 2" @@ -38,25 +29,9 @@ }, { "cell_type": "code", - "execution_count": 35, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Obtaining file:///Users/shanto/LFL/SQuADDS/SQuADDS\n", - " Preparing metadata (setup.py) ... \u001b[?25ldone\n", - "\u001b[?25hInstalling collected packages: SQuADDS\n", - " Attempting uninstall: SQuADDS\n", - " Found existing installation: SQuADDS 0.1\n", - " Uninstalling SQuADDS-0.1:\n", - " Successfully uninstalled SQuADDS-0.1\n", - " Running setup.py develop for SQuADDS\n", - "Successfully installed SQuADDS-0.1\n" - ] - } - ], + "outputs": [], "source": [ "!pip install -e ../." ] @@ -121,7 +96,7 @@ }, { "cell_type": "code", - "execution_count": 37, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -133,19 +108,9 @@ }, { "cell_type": "code", - "execution_count": 39, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "['qubit', 'cavity_claw', 'coupler']\n", - "['TransmonCross', 'RouterMeander', 'NCap']\n", - "['cap_matrix', 'eigenmode', 'cap_matrix']\n" - ] - } - ], + "outputs": [], "source": [ "components = []\n", "component_names = []\n", @@ -190,7 +155,7 @@ }, { "cell_type": "code", - "execution_count": 161, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -199,16 +164,31 @@ }, { "cell_type": "code", - "execution_count": 162, + "execution_count": 3, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "application/vnd.jupyter.widget-view+json": { + "model_id": "9da5d152d56247fcbf33fb5fcfa38de8", + "version_major": 2, + "version_minor": 0 + }, + "text/plain": [ + "Downloading readme: 0%| | 0.00/2.35k [00:00\n", " \n", " \n", - " design_options\n", - " design_tool\n", + " cavity_frequency\n", + " kappa\n", + " units\n", " PI\n", " date_created\n", " group\n", " institution\n", " uploader\n", - " claw_to_claw\n", - " claw_to_ground\n", - " cross_to_claw\n", - " cross_to_cross\n", - " cross_to_ground\n", - " ground_to_ground\n", - " units\n", - " renderer_options\n", " setup\n", " simulator\n", - " \n", - " \n", + " coupler_type\n", + " design_options\n", + " design_tool\n", + " resonator_type\n", + " \n", + " \n", " \n", " \n", " 0\n", - " {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct...\n", - " qiskit-metal\n", + " 5.353550e+09\n", + " 161106.598429\n", + " Hz\n", " Eli Levenson-Falk, PhD\n", - " 2023-09-20-142547\n", + " 2023-12-01-170608\n", " LFL\n", " USC\n", " Andre Kuo\n", - " 94.97421\n", - " 90.86585\n", - " 3.73363\n", - " 158.40783\n", - " 158.40783\n", - " 311.25590\n", - " nH\n", - " {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name...\n", - " {'auto_increase_solution_order': True, 'enable...\n", + " {'basis_order': 1, 'max_delta_f': 0.05, 'max_p...\n", " Ansys HFSS\n", + " CLT\n", + " {'claw_opts': {'connection_pads': {'readout': ...\n", + " qiskit-metal\n", + " quarter\n", " \n", " \n", " 1\n", - " {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct...\n", - " qiskit-metal\n", + " 8.399241e+09\n", + " 268412.116632\n", + " Hz\n", " Eli Levenson-Falk, PhD\n", - " 2023-10-25-153123\n", + " 2023-12-04-124953\n", " LFL\n", " USC\n", " Andre Kuo\n", - " 82.44280\n", - " 79.19378\n", - " 2.93820\n", - " 188.15089\n", - " 188.15089\n", - " 333.52997\n", - " nH\n", - " {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name...\n", - " {'auto_increase_solution_order': True, 'enable...\n", + " {'basis_order': 1, 'max_delta_f': 0.05, 'max_p...\n", " Ansys HFSS\n", + " CLT\n", + " {'claw_opts': {'connection_pads': {'readout': ...\n", + " qiskit-metal\n", + " quarter\n", " \n", " \n", " 2\n", - " {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct...\n", - " qiskit-metal\n", + " 8.694845e+09\n", + " 255873.654612\n", + " Hz\n", " Eli Levenson-Falk, PhD\n", - " 2023-09-20-142547\n", + " 2023-12-09-204334\n", " LFL\n", " USC\n", " Andre Kuo\n", - " 83.76412\n", - " 80.18130\n", - " 3.16131\n", - " 104.35340\n", - " 104.35340\n", - " 237.02548\n", - " nH\n", - " {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name...\n", - " {'auto_increase_solution_order': True, 'enable...\n", + " {'basis_order': 1, 'max_delta_f': 0.05, 'max_p...\n", " Ansys HFSS\n", + " CLT\n", + " {'claw_opts': {'connection_pads': {'readout': ...\n", + " qiskit-metal\n", + " quarter\n", " \n", " \n", " 3\n", - " {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct...\n", - " qiskit-metal\n", + " 6.616574e+09\n", + " 30459.761161\n", + " Hz\n", " Eli Levenson-Falk, PhD\n", - " 2023-10-25-153126\n", + " 2023-12-08-173545\n", " LFL\n", " USC\n", " Andre Kuo\n", - " 103.37057\n", - " 97.22405\n", - " 5.77590\n", - " 174.13928\n", - " 174.13928\n", - " 335.31609\n", - " nH\n", - " {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name...\n", - " {'auto_increase_solution_order': True, 'enable...\n", + " {'basis_order': 1, 'max_delta_f': 0.05, 'max_p...\n", " Ansys HFSS\n", + " CLT\n", + " {'claw_opts': {'connection_pads': {'readout': ...\n", + " qiskit-metal\n", + " quarter\n", " \n", " \n", " 4\n", - " {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct...\n", - " qiskit-metal\n", + " 7.986835e+09\n", + " 208304.221064\n", + " Hz\n", " Eli Levenson-Falk, PhD\n", - " 2023-09-20-142547\n", + " 2023-12-09-204334\n", " LFL\n", " USC\n", " Andre Kuo\n", - " 68.92854\n", - " 65.68607\n", - " 2.87375\n", - " 120.03923\n", - " 120.03923\n", - " 240.34085\n", - " nH\n", - " {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name...\n", - " {'auto_increase_solution_order': True, 'enable...\n", + " {'basis_order': 1, 'max_delta_f': 0.05, 'max_p...\n", " Ansys HFSS\n", + " CLT\n", + " {'claw_opts': {'connection_pads': {'readout': ...\n", + " qiskit-metal\n", + " quarter\n", " \n", " \n", " ...\n", @@ -492,319 +619,241 @@ " ...\n", " ...\n", " ...\n", - " ...\n", - " ...\n", - " ...\n", " \n", " \n", - " 1929\n", - " {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct...\n", - " qiskit-metal\n", + " 229\n", + " 4.949469e+09\n", + " 126438.881378\n", + " Hz\n", " Eli Levenson-Falk, PhD\n", - " 2023-09-20-142547\n", + " 2023-12-01-170608\n", " LFL\n", " USC\n", " Andre Kuo\n", - " 106.43025\n", - " 101.53197\n", - " 4.45645\n", - " 174.46380\n", - " 174.46380\n", - " 340.62919\n", - " nH\n", - " {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name...\n", - " {'auto_increase_solution_order': True, 'enable...\n", + " {'basis_order': 1, 'max_delta_f': 0.05, 'max_p...\n", " Ansys HFSS\n", + " CLT\n", + " {'claw_opts': {'connection_pads': {'readout': ...\n", + " qiskit-metal\n", + " quarter\n", " \n", " \n", - " 1930\n", - " {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct...\n", - " qiskit-metal\n", + " 230\n", + " 8.805442e+09\n", + " 291439.656224\n", + " Hz\n", " Eli Levenson-Falk, PhD\n", - " 2023-09-20-142549\n", + " 2023-12-04-124953\n", " LFL\n", " USC\n", " Andre Kuo\n", - " 121.10943\n", - " 112.62570\n", - " 7.95178\n", - " 187.43537\n", - " 187.43537\n", - " 367.34003\n", - " nH\n", - " {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name...\n", - " {'auto_increase_solution_order': True, 'enable...\n", + " {'basis_order': 1, 'max_delta_f': 0.05, 'max_p...\n", " Ansys HFSS\n", + " CLT\n", + " {'claw_opts': {'connection_pads': {'readout': ...\n", + " qiskit-metal\n", + " quarter\n", " \n", " \n", - " 1931\n", - " {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct...\n", - " qiskit-metal\n", + " 231\n", + " 6.597444e+09\n", + " 587144.918000\n", + " Hz\n", " Eli Levenson-Falk, PhD\n", - " 2023-10-25-153123\n", + " 2023-12-06-224829\n", " LFL\n", " USC\n", " Andre Kuo\n", - " 144.56289\n", - " 136.36810\n", - " 7.65968\n", - " 172.14561\n", - " 172.14561\n", - " 372.39970\n", - " nH\n", - " {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name...\n", - " {'auto_increase_solution_order': True, 'enable...\n", + " {'basis_order': 1, 'max_delta_f': 0.05, 'max_p...\n", " Ansys HFSS\n", + " CLT\n", + " {'claw_opts': {'connection_pads': {'readout': ...\n", + " qiskit-metal\n", + " quarter\n", " \n", " \n", - " 1932\n", - " {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct...\n", - " qiskit-metal\n", + " 232\n", + " 8.116894e+09\n", + " 209744.544864\n", + " Hz\n", " Eli Levenson-Falk, PhD\n", - " 2023-09-20-142547\n", + " 2023-12-09-204334\n", " LFL\n", " USC\n", " Andre Kuo\n", - " 68.76413\n", - " 65.78116\n", - " 2.48795\n", - " 56.75230\n", - " 56.75230\n", - " 166.57383\n", - " nH\n", - " {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name...\n", - " {'auto_increase_solution_order': True, 'enable...\n", + " {'basis_order': 1, 'max_delta_f': 0.05, 'max_p...\n", " Ansys HFSS\n", + " CLT\n", + " {'claw_opts': {'connection_pads': {'readout': ...\n", + " qiskit-metal\n", + " quarter\n", " \n", " \n", - " 1933\n", - " {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct...\n", - " qiskit-metal\n", + " 233\n", + " 5.145996e+09\n", + " 155139.565546\n", + " Hz\n", " Eli Levenson-Falk, PhD\n", - " 2023-09-20-142549\n", + " 2023-12-01-170608\n", " LFL\n", " USC\n", " Andre Kuo\n", - " 58.45749\n", - " 55.50796\n", - " 2.54396\n", - " 62.01000\n", - " 62.01000\n", - " 162.42140\n", - " nH\n", - " {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name...\n", - " {'auto_increase_solution_order': True, 'enable...\n", + " {'basis_order': 1, 'max_delta_f': 0.05, 'max_p...\n", " Ansys HFSS\n", + " CLT\n", + " {'claw_opts': {'connection_pads': {'readout': ...\n", + " qiskit-metal\n", + " quarter\n", " \n", " \n", "\n", - "

1934 rows × 17 columns

\n", + "

234 rows × 14 columns

\n", "" ], "text/plain": [ - " design_options design_tool \\\n", - "0 {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct... qiskit-metal \n", - "1 {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct... qiskit-metal \n", - "2 {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct... qiskit-metal \n", - "3 {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct... qiskit-metal \n", - "4 {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct... qiskit-metal \n", - "... ... ... \n", - "1929 {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct... qiskit-metal \n", - "1930 {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct... qiskit-metal \n", - "1931 {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct... qiskit-metal \n", - "1932 {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct... qiskit-metal \n", - "1933 {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct... qiskit-metal \n", + " cavity_frequency kappa units PI \\\n", + "0 5.353550e+09 161106.598429 Hz Eli Levenson-Falk, PhD \n", + "1 8.399241e+09 268412.116632 Hz Eli Levenson-Falk, PhD \n", + "2 8.694845e+09 255873.654612 Hz Eli Levenson-Falk, PhD \n", + "3 6.616574e+09 30459.761161 Hz Eli Levenson-Falk, PhD \n", + "4 7.986835e+09 208304.221064 Hz Eli Levenson-Falk, PhD \n", + ".. ... ... ... ... \n", + "229 4.949469e+09 126438.881378 Hz Eli Levenson-Falk, PhD \n", + "230 8.805442e+09 291439.656224 Hz Eli Levenson-Falk, PhD \n", + "231 6.597444e+09 587144.918000 Hz Eli Levenson-Falk, PhD \n", + "232 8.116894e+09 209744.544864 Hz Eli Levenson-Falk, PhD \n", + "233 5.145996e+09 155139.565546 Hz Eli Levenson-Falk, PhD \n", "\n", - " PI date_created group institution uploader \\\n", - "0 Eli Levenson-Falk, PhD 2023-09-20-142547 LFL USC Andre Kuo \n", - "1 Eli Levenson-Falk, PhD 2023-10-25-153123 LFL USC Andre Kuo \n", - "2 Eli Levenson-Falk, PhD 2023-09-20-142547 LFL USC Andre Kuo \n", - "3 Eli Levenson-Falk, PhD 2023-10-25-153126 LFL USC Andre Kuo \n", - "4 Eli Levenson-Falk, PhD 2023-09-20-142547 LFL USC Andre Kuo \n", - "... ... ... ... ... ... \n", - "1929 Eli Levenson-Falk, PhD 2023-09-20-142547 LFL USC Andre Kuo \n", - "1930 Eli Levenson-Falk, PhD 2023-09-20-142549 LFL USC Andre Kuo \n", - "1931 Eli Levenson-Falk, PhD 2023-10-25-153123 LFL USC Andre Kuo \n", - "1932 Eli Levenson-Falk, PhD 2023-09-20-142547 LFL USC Andre Kuo \n", - "1933 Eli Levenson-Falk, PhD 2023-09-20-142549 LFL USC Andre Kuo \n", + " date_created group institution uploader \\\n", + "0 2023-12-01-170608 LFL USC Andre Kuo \n", + "1 2023-12-04-124953 LFL USC Andre Kuo \n", + "2 2023-12-09-204334 LFL USC Andre Kuo \n", + "3 2023-12-08-173545 LFL USC Andre Kuo \n", + "4 2023-12-09-204334 LFL USC Andre Kuo \n", + ".. ... ... ... ... \n", + "229 2023-12-01-170608 LFL USC Andre Kuo \n", + "230 2023-12-04-124953 LFL USC Andre Kuo \n", + "231 2023-12-06-224829 LFL USC Andre Kuo \n", + "232 2023-12-09-204334 LFL USC Andre Kuo \n", + "233 2023-12-01-170608 LFL USC Andre Kuo \n", "\n", - " claw_to_claw claw_to_ground cross_to_claw cross_to_cross \\\n", - "0 94.97421 90.86585 3.73363 158.40783 \n", - "1 82.44280 79.19378 2.93820 188.15089 \n", - "2 83.76412 80.18130 3.16131 104.35340 \n", - "3 103.37057 97.22405 5.77590 174.13928 \n", - "4 68.92854 65.68607 2.87375 120.03923 \n", - "... ... ... ... ... \n", - "1929 106.43025 101.53197 4.45645 174.46380 \n", - "1930 121.10943 112.62570 7.95178 187.43537 \n", - "1931 144.56289 136.36810 7.65968 172.14561 \n", - "1932 68.76413 65.78116 2.48795 56.75230 \n", - "1933 58.45749 55.50796 2.54396 62.01000 \n", + " setup simulator \\\n", + "0 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... Ansys HFSS \n", + "1 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... Ansys HFSS \n", + "2 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... Ansys HFSS \n", + "3 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... Ansys HFSS \n", + "4 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... Ansys HFSS \n", + ".. ... ... \n", + "229 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... Ansys HFSS \n", + "230 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... Ansys HFSS \n", + "231 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... Ansys HFSS \n", + "232 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... Ansys HFSS \n", + "233 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... Ansys HFSS \n", "\n", - " cross_to_ground ground_to_ground units \\\n", - "0 158.40783 311.25590 nH \n", - "1 188.15089 333.52997 nH \n", - "2 104.35340 237.02548 nH \n", - "3 174.13928 335.31609 nH \n", - "4 120.03923 240.34085 nH \n", - "... ... ... ... \n", - "1929 174.46380 340.62919 nH \n", - "1930 187.43537 367.34003 nH \n", - "1931 172.14561 372.39970 nH \n", - "1932 56.75230 166.57383 nH \n", - "1933 62.01000 162.42140 nH \n", - "\n", - " renderer_options \\\n", - "0 {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name... \n", - "1 {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name... \n", - "2 {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name... \n", - "3 {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name... \n", - "4 {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name... \n", - "... ... \n", - "1929 {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name... \n", - "1930 {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name... \n", - "1931 {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name... \n", - "1932 {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name... \n", - "1933 {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name... \n", + " coupler_type design_options \\\n", + "0 CLT {'claw_opts': {'connection_pads': {'readout': ... \n", + "1 CLT {'claw_opts': {'connection_pads': {'readout': ... \n", + "2 CLT {'claw_opts': {'connection_pads': {'readout': ... \n", + "3 CLT {'claw_opts': {'connection_pads': {'readout': ... \n", + "4 CLT {'claw_opts': {'connection_pads': {'readout': ... \n", + ".. ... ... \n", + "229 CLT {'claw_opts': {'connection_pads': {'readout': ... \n", + "230 CLT {'claw_opts': {'connection_pads': {'readout': ... \n", + "231 CLT {'claw_opts': {'connection_pads': {'readout': ... \n", + "232 CLT {'claw_opts': {'connection_pads': {'readout': ... \n", + "233 CLT {'claw_opts': {'connection_pads': {'readout': ... \n", "\n", - " setup simulator \n", - "0 {'auto_increase_solution_order': True, 'enable... Ansys HFSS \n", - "1 {'auto_increase_solution_order': True, 'enable... Ansys HFSS \n", - "2 {'auto_increase_solution_order': True, 'enable... Ansys HFSS \n", - "3 {'auto_increase_solution_order': True, 'enable... Ansys HFSS \n", - "4 {'auto_increase_solution_order': True, 'enable... Ansys HFSS \n", - "... ... ... \n", - "1929 {'auto_increase_solution_order': True, 'enable... Ansys HFSS \n", - "1930 {'auto_increase_solution_order': True, 'enable... Ansys HFSS \n", - "1931 {'auto_increase_solution_order': True, 'enable... Ansys HFSS \n", - "1932 {'auto_increase_solution_order': True, 'enable... Ansys HFSS \n", - "1933 {'auto_increase_solution_order': True, 'enable... Ansys HFSS \n", + " design_tool resonator_type \n", + "0 qiskit-metal quarter \n", + "1 qiskit-metal quarter \n", + "2 qiskit-metal quarter \n", + "3 qiskit-metal quarter \n", + "4 qiskit-metal quarter \n", + ".. ... ... \n", + "229 qiskit-metal quarter \n", + "230 qiskit-metal quarter \n", + "231 qiskit-metal quarter \n", + "232 qiskit-metal quarter \n", + "233 qiskit-metal quarter \n", "\n", - "[1934 rows x 17 columns]" + "[234 rows x 14 columns]" ] }, - "execution_count": 205, + "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "db.get_dataset(component=\"qubit\", component_name=\"TransmonCross\", data_type=\"cap_matrix\")" - ] - }, - { - "cell_type": "code", - "execution_count": 108, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "['qubit-TransmonCross-cap_matrix',\n", - " 'cavity_claw-RouteMeander-eigenmode',\n", - " 'coupler-NCap-cap_matrix']\n" - ] - } - ], - "source": [ - "db.get_configs()" - ] - }, - { - "cell_type": "code", - "execution_count": 109, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "╒════════════╤════════════════════════╤═════════╤═══════════════╕\n", - "│ uploader │ PI │ group │ institution │\n", - "╞════════════╪════════════════════════╪═════════╪═══════════════╡\n", - "│ Andre Kuo │ Eli Levenson-Falk, PhD │ LFL │ USC │\n", - "╘════════════╧════════════════════════╧═════════╧═══════════════╛\n" - ] - } - ], - "source": [ - "db.view_contributors_of(\"qubit\", \"TransmonCross\", \"cap_matrix\")" + "db.selected_system_df()" ] }, { "cell_type": "code", - "execution_count": 103, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "╒════════════╤════════════════════════╤═════════╤═══════════════╤════════════════════════════════════╕\n", - "│ uploader │ PI │ group │ institution │ config │\n", - "╞════════════╪════════════════════════╪═════════╪═══════════════╪════════════════════════════════════╡\n", - "│ Andre Kuo │ Eli Levenson-Falk, PhD │ LFL │ USC │ qubit-TransmonCross-cap_matrix │\n", - "├────────────┼────────────────────────┼─────────┼───────────────┼────────────────────────────────────┤\n", - "│ Andre Kuo │ Eli Levenson-Falk, PhD │ LFL │ USC │ cavity_claw-RouteMeander-eigenmode │\n", - "├────────────┼────────────────────────┼─────────┼───────────────┼────────────────────────────────────┤\n", - "│ Andre Kuo │ Eli Levenson-Falk, PhD │ LFL │ USC │ coupler-NCap-cap_matrix │\n", - "╘════════════╧════════════════════════╧═════════╧═══════════════╧════════════════════════════════════╛\n" - ] - } - ], - "source": [ - "db.view_all_contributors()" - ] + "outputs": [], + "source": [] }, { "cell_type": "markdown", "metadata": {}, "source": [ - "### Querying for the a target qubit design" + "### Querying for a target qubit-cavity design" ] }, { "cell_type": "code", - "execution_count": 249, + "execution_count": 12, "metadata": {}, "outputs": [], "source": [ - "db.select_system(\"qubit\")" + "db.select_system([\"qubit\",\"cavity_claw\"])" ] }, { "cell_type": "code", - "execution_count": 250, + "execution_count": 13, "metadata": {}, "outputs": [], "source": [ - "db.select_qubit(\"TransmonCross\")" + "db.select_qubit(\"TransmonCross\")\n", + "db.select_cavity_claw(\"RouteMeander\")\n", + "db.select_coupler(\"CLT\")" ] }, { "cell_type": "code", - "execution_count": 251, + "execution_count": 14, "metadata": {}, "outputs": [ { - "data": { - "text/plain": [ - "'qubit'" - ] - }, - "execution_count": 251, - "metadata": {}, - "output_type": "execute_result" + "name": "stdout", + "output_type": "stream", + "text": [ + "Selected qubit: TransmonCross\n", + "Selected cavity: RouteMeander\n", + "Selected coupler: CLT\n", + "Selected system: ['qubit', 'cavity_claw']\n" + ] } ], "source": [ - "db.selected_system" + "db.show_selections()" + ] + }, + { + "cell_type": "code", + "execution_count": 78, + "metadata": {}, + "outputs": [], + "source": [ + "merged_df = db.selected_system_df()" ] }, { "cell_type": "code", - "execution_count": 252, + "execution_count": 79, "metadata": {}, "outputs": [ { @@ -828,35 +877,32 @@ " \n", " \n", " \n", - " design_options\n", - " design_tool\n", - " PI\n", - " date_created\n", - " group\n", - " institution\n", - " uploader\n", " claw_to_claw\n", " claw_to_ground\n", " cross_to_claw\n", " cross_to_cross\n", " cross_to_ground\n", " ground_to_ground\n", - " units\n", - " renderer_options\n", - " setup\n", - " simulator\n", + " units_qubit\n", + " PI_qubit\n", + " date_created_qubit\n", + " group_qubit\n", + " ...\n", + " group_cavity_claw\n", + " institution_cavity_claw\n", + " uploader_cavity_claw\n", + " setup_cavity_claw\n", + " simulator_cavity_claw\n", + " coupler_type\n", + " design_options_cavity_claw\n", + " design_tool_cavity_claw\n", + " resonator_type\n", + " design_options\n", " \n", " \n", " \n", " \n", " 0\n", - " {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct...\n", - " qiskit-metal\n", - " Eli Levenson-Falk, PhD\n", - " 2023-09-20-142547\n", - " LFL\n", - " USC\n", - " Andre Kuo\n", " 94.97421\n", " 90.86585\n", " 3.73363\n", @@ -864,499 +910,116 @@ " 158.40783\n", " 311.25590\n", " nH\n", - " {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name...\n", - " {'auto_increase_solution_order': True, 'enable...\n", - " Ansys HFSS\n", - " \n", - " \n", - " 1\n", - " {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct...\n", - " qiskit-metal\n", " Eli Levenson-Falk, PhD\n", - " 2023-10-25-153123\n", + " 2023-09-20-142547\n", + " LFL\n", + " ...\n", " LFL\n", " USC\n", " Andre Kuo\n", - " 82.44280\n", - " 79.19378\n", - " 2.93820\n", - " 188.15089\n", - " 188.15089\n", - " 333.52997\n", - " nH\n", - " {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name...\n", - " {'auto_increase_solution_order': True, 'enable...\n", + " {'basis_order': 1, 'max_delta_f': 0.05, 'max_p...\n", " Ansys HFSS\n", + " CLT\n", + " {'claw_opts': {'connection_pads': {'readout': ...\n", + " qiskit-metal\n", + " quarter\n", + " {'cavity_claw_options': {'coupling_type': 'CLT...\n", " \n", " \n", - " 2\n", - " {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct...\n", - " qiskit-metal\n", + " 1\n", + " 94.97421\n", + " 90.86585\n", + " 3.73363\n", + " 158.40783\n", + " 158.40783\n", + " 311.25590\n", + " nH\n", " Eli Levenson-Falk, PhD\n", " 2023-09-20-142547\n", " LFL\n", - " USC\n", - " Andre Kuo\n", - " 83.76412\n", - " 80.18130\n", - " 3.16131\n", - " 104.35340\n", - " 104.35340\n", - " 237.02548\n", - " nH\n", - " {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name...\n", - " {'auto_increase_solution_order': True, 'enable...\n", - " Ansys HFSS\n", - " \n", - " \n", - " 3\n", - " {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct...\n", - " qiskit-metal\n", - " Eli Levenson-Falk, PhD\n", - " 2023-10-25-153126\n", - " LFL\n", - " USC\n", - " Andre Kuo\n", - " 103.37057\n", - " 97.22405\n", - " 5.77590\n", - " 174.13928\n", - " 174.13928\n", - " 335.31609\n", - " nH\n", - " {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name...\n", - " {'auto_increase_solution_order': True, 'enable...\n", - " Ansys HFSS\n", - " \n", - " \n", - " 4\n", - " {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct...\n", - " qiskit-metal\n", - " Eli Levenson-Falk, PhD\n", - " 2023-09-20-142547\n", - " LFL\n", - " USC\n", - " Andre Kuo\n", - " 68.92854\n", - " 65.68607\n", - " 2.87375\n", - " 120.03923\n", - " 120.03923\n", - " 240.34085\n", - " nH\n", - " {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name...\n", - " {'auto_increase_solution_order': True, 'enable...\n", - " Ansys HFSS\n", - " \n", - " \n", - " ...\n", " ...\n", - " ...\n", - " ...\n", - " ...\n", - " ...\n", - " ...\n", - " ...\n", - " ...\n", - " ...\n", - " ...\n", - " ...\n", - " ...\n", - " ...\n", - " ...\n", - " ...\n", - " ...\n", - " ...\n", - " \n", - " \n", - " 1929\n", - " {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct...\n", - " qiskit-metal\n", - " Eli Levenson-Falk, PhD\n", - " 2023-09-20-142547\n", " LFL\n", " USC\n", " Andre Kuo\n", - " 106.43025\n", - " 101.53197\n", - " 4.45645\n", - " 174.46380\n", - " 174.46380\n", - " 340.62919\n", - " nH\n", - " {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name...\n", - " {'auto_increase_solution_order': True, 'enable...\n", + " {'basis_order': 1, 'max_delta_f': 0.05, 'max_p...\n", " Ansys HFSS\n", - " \n", - " \n", - " 1930\n", - " {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct...\n", + " CLT\n", + " {'claw_opts': {'connection_pads': {'readout': ...\n", " qiskit-metal\n", - " Eli Levenson-Falk, PhD\n", - " 2023-09-20-142549\n", - " LFL\n", - " USC\n", - " Andre Kuo\n", - " 121.10943\n", - " 112.62570\n", - " 7.95178\n", - " 187.43537\n", - " 187.43537\n", - " 367.34003\n", - " nH\n", - " {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name...\n", - " {'auto_increase_solution_order': True, 'enable...\n", - " Ansys HFSS\n", + " quarter\n", + " {'cavity_claw_options': {'coupling_type': 'CLT...\n", " \n", " \n", - " 1931\n", - " {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct...\n", - " qiskit-metal\n", - " Eli Levenson-Falk, PhD\n", - " 2023-10-25-153123\n", - " LFL\n", - " USC\n", - " Andre Kuo\n", - " 144.56289\n", - " 136.36810\n", - " 7.65968\n", - " 172.14561\n", - " 172.14561\n", - " 372.39970\n", + " 2\n", + " 94.97421\n", + " 90.86585\n", + " 3.73363\n", + " 158.40783\n", + " 158.40783\n", + " 311.25590\n", " nH\n", - " {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name...\n", - " {'auto_increase_solution_order': True, 'enable...\n", - " Ansys HFSS\n", - " \n", - " \n", - " 1932\n", - " {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct...\n", - " qiskit-metal\n", " Eli Levenson-Falk, PhD\n", " 2023-09-20-142547\n", " LFL\n", - " USC\n", - " Andre Kuo\n", - " 68.76413\n", - " 65.78116\n", - " 2.48795\n", - " 56.75230\n", - " 56.75230\n", - " 166.57383\n", - " nH\n", - " {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name...\n", - " {'auto_increase_solution_order': True, 'enable...\n", - " Ansys HFSS\n", - " \n", - " \n", - " 1933\n", - " {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct...\n", - " qiskit-metal\n", - " Eli Levenson-Falk, PhD\n", - " 2023-09-20-142549\n", + " ...\n", " LFL\n", " USC\n", " Andre Kuo\n", - " 58.45749\n", - " 55.50796\n", - " 2.54396\n", - " 62.01000\n", - " 62.01000\n", - " 162.42140\n", - " nH\n", - " {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name...\n", - " {'auto_increase_solution_order': True, 'enable...\n", + " {'basis_order': 1, 'max_delta_f': 0.05, 'max_p...\n", " Ansys HFSS\n", - " \n", - " \n", - "\n", - "

1934 rows × 17 columns

\n", - "" - ], - "text/plain": [ - " design_options design_tool \\\n", - "0 {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct... qiskit-metal \n", - "1 {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct... qiskit-metal \n", - "2 {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct... qiskit-metal \n", - "3 {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct... qiskit-metal \n", - "4 {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct... qiskit-metal \n", - "... ... ... \n", - "1929 {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct... qiskit-metal \n", - "1930 {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct... qiskit-metal \n", - "1931 {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct... qiskit-metal \n", - "1932 {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct... qiskit-metal \n", - "1933 {'aedt_hfss_capacitance': 0, 'aedt_hfss_induct... qiskit-metal \n", - "\n", - " PI date_created group institution uploader \\\n", - "0 Eli Levenson-Falk, PhD 2023-09-20-142547 LFL USC Andre Kuo \n", - "1 Eli Levenson-Falk, PhD 2023-10-25-153123 LFL USC Andre Kuo \n", - "2 Eli Levenson-Falk, PhD 2023-09-20-142547 LFL USC Andre Kuo \n", - "3 Eli Levenson-Falk, PhD 2023-10-25-153126 LFL USC Andre Kuo \n", - "4 Eli Levenson-Falk, PhD 2023-09-20-142547 LFL USC Andre Kuo \n", - "... ... ... ... ... ... \n", - "1929 Eli Levenson-Falk, PhD 2023-09-20-142547 LFL USC Andre Kuo \n", - "1930 Eli Levenson-Falk, PhD 2023-09-20-142549 LFL USC Andre Kuo \n", - "1931 Eli Levenson-Falk, PhD 2023-10-25-153123 LFL USC Andre Kuo \n", - "1932 Eli Levenson-Falk, PhD 2023-09-20-142547 LFL USC Andre Kuo \n", - "1933 Eli Levenson-Falk, PhD 2023-09-20-142549 LFL USC Andre Kuo \n", - "\n", - " claw_to_claw claw_to_ground cross_to_claw cross_to_cross \\\n", - "0 94.97421 90.86585 3.73363 158.40783 \n", - "1 82.44280 79.19378 2.93820 188.15089 \n", - "2 83.76412 80.18130 3.16131 104.35340 \n", - "3 103.37057 97.22405 5.77590 174.13928 \n", - "4 68.92854 65.68607 2.87375 120.03923 \n", - "... ... ... ... ... \n", - "1929 106.43025 101.53197 4.45645 174.46380 \n", - "1930 121.10943 112.62570 7.95178 187.43537 \n", - "1931 144.56289 136.36810 7.65968 172.14561 \n", - "1932 68.76413 65.78116 2.48795 56.75230 \n", - "1933 58.45749 55.50796 2.54396 62.01000 \n", - "\n", - " cross_to_ground ground_to_ground units \\\n", - "0 158.40783 311.25590 nH \n", - "1 188.15089 333.52997 nH \n", - "2 104.35340 237.02548 nH \n", - "3 174.13928 335.31609 nH \n", - "4 120.03923 240.34085 nH \n", - "... ... ... ... \n", - "1929 174.46380 340.62919 nH \n", - "1930 187.43537 367.34003 nH \n", - "1931 172.14561 372.39970 nH \n", - "1932 56.75230 166.57383 nH \n", - "1933 62.01000 162.42140 nH \n", - "\n", - " renderer_options \\\n", - "0 {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name... \n", - "1 {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name... \n", - "2 {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name... \n", - "3 {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name... \n", - "4 {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name... \n", - "... ... \n", - "1929 {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name... \n", - "1930 {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name... \n", - "1931 {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name... \n", - "1932 {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name... \n", - "1933 {'Cj': 0, 'Lj': '10nH', '_Rj': 0, 'design_name... \n", - "\n", - " setup simulator \n", - "0 {'auto_increase_solution_order': True, 'enable... Ansys HFSS \n", - "1 {'auto_increase_solution_order': True, 'enable... Ansys HFSS \n", - "2 {'auto_increase_solution_order': True, 'enable... Ansys HFSS \n", - "3 {'auto_increase_solution_order': True, 'enable... Ansys HFSS \n", - "4 {'auto_increase_solution_order': True, 'enable... Ansys HFSS \n", - "... ... ... \n", - "1929 {'auto_increase_solution_order': True, 'enable... Ansys HFSS \n", - "1930 {'auto_increase_solution_order': True, 'enable... Ansys HFSS \n", - "1931 {'auto_increase_solution_order': True, 'enable... Ansys HFSS \n", - "1932 {'auto_increase_solution_order': True, 'enable... Ansys HFSS \n", - "1933 {'auto_increase_solution_order': True, 'enable... Ansys HFSS \n", - "\n", - "[1934 rows x 17 columns]" - ] - }, - "execution_count": 252, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "df = db.selected_system_df()\n", - "df" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Querying for a target cavity design" - ] - }, - { - "cell_type": "code", - "execution_count": 309, - "metadata": {}, - "outputs": [], - "source": [ - "db.unselect_all()" - ] - }, - { - "cell_type": "code", - "execution_count": 310, - "metadata": {}, - "outputs": [], - "source": [ - "db.select_system(\"cavity_claw\")" - ] - }, - { - "cell_type": "code", - "execution_count": 311, - "metadata": {}, - "outputs": [], - "source": [ - "db.select_cavity_claw(\"RouteMeander\")" - ] - }, - { - "cell_type": "code", - "execution_count": 312, - "metadata": {}, - "outputs": [], - "source": [ - "db.select_coupler(\"CLT\")" - ] - }, - { - "cell_type": "code", - "execution_count": 313, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Selected component: cavity_claw\n", - "Selected component name: RouteMeander\n", - "Selected data type: eigenmode\n", - "Selected system: cavity_claw\n", - "Selected coupler: CLT\n" - ] - } - ], - "source": [ - "db.show_selections()" - ] - }, - { - "cell_type": "code", - "execution_count": 294, - "metadata": {}, - "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", - " \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", - " \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", @@ -1373,225 +1036,295 @@ " \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", " \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", + " \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", "
coupler_typedesign_optionsdesign_toolPIdate_createdgroupinstitutionuploadercavity_frequencykappaunitssetupsimulator
0CLT{'claw_opts': {'connection_pads': {'readout': ...qiskit-metalEli Levenson-Falk, PhD2023-12-01-170608LFLUSCAndre Kuo5.353550e+09161106.598429Hz{'basis_order': 1, 'max_delta_f': 0.05, 'max_p...Ansys HFSSquarter{'cavity_claw_options': {'coupling_type': 'CLT...
1CLT{'claw_opts': {'connection_pads': {'readout': ...qiskit-metal394.9742190.865853.73363158.40783158.40783311.25590nHEli Levenson-Falk, PhD2023-12-04-1249532023-09-20-142547LFL...LFLUSCAndre Kuo8.399241e+09268412.116632Hz{'basis_order': 1, 'max_delta_f': 0.05, 'max_p...Ansys HFSS
2CLT{'claw_opts': {'connection_pads': {'readout': ...qiskit-metalEli Levenson-Falk, PhD2023-12-09-204334LFLUSCAndre Kuo8.694845e+09255873.654612Hz{'basis_order': 1, 'max_delta_f': 0.05, 'max_p...Ansys HFSSquarter{'cavity_claw_options': {'coupling_type': 'CLT...
3CLT{'claw_opts': {'connection_pads': {'readout': ...qiskit-metal494.9742190.865853.73363158.40783158.40783311.25590nHEli Levenson-Falk, PhD2023-12-08-1735452023-09-20-142547LFL...LFLUSCAndre Kuo6.616574e+0930459.761161Hz{'basis_order': 1, 'max_delta_f': 0.05, 'max_p...Ansys HFSS
4CLT{'claw_opts': {'connection_pads': {'readout': ...qiskit-metalEli Levenson-Falk, PhD2023-12-09-204334LFLUSCAndre Kuo7.986835e+09208304.221064Hz{'basis_order': 1, 'max_delta_f': 0.05, 'max_p...Ansys HFSSquarter{'cavity_claw_options': {'coupling_type': 'CLT...
....................................
229CLT{'claw_opts': {'connection_pads': {'readout': ...qiskit-metal11599183.80802168.0402315.11184214.45993214.45993454.60312nHEli Levenson-Falk, PhD2023-12-01-1706082023-09-20-142547LFL...LFLUSCAndre Kuo4.949469e+09126438.881378Hz{'basis_order': 1, 'max_delta_f': 0.05, 'max_p...Ansys HFSS
230CLT{'claw_opts': {'connection_pads': {'readout': ...qiskit-metalquarter{'cavity_claw_options': {'coupling_type': 'CLT...
11600183.80802168.0402315.11184214.45993214.45993454.60312nHEli Levenson-Falk, PhD2023-12-04-1249532023-09-20-142547LFL...LFLUSCAndre Kuo8.805442e+09291439.656224Hz{'basis_order': 1, 'max_delta_f': 0.05, 'max_p...Ansys HFSS
231CLT{'claw_opts': {'connection_pads': {'readout': ...qiskit-metalquarter{'cavity_claw_options': {'coupling_type': 'CLT...
11601183.80802168.0402315.11184214.45993214.45993454.60312nHEli Levenson-Falk, PhD2023-12-06-2248292023-09-20-142547LFL...LFLUSCAndre Kuo6.597444e+09587144.918000Hz{'basis_order': 1, 'max_delta_f': 0.05, 'max_p...Ansys HFSS
232CLT{'claw_opts': {'connection_pads': {'readout': ...qiskit-metalquarter{'cavity_claw_options': {'coupling_type': 'CLT...
11602183.80802168.0402315.11184214.45993214.45993454.60312nHEli Levenson-Falk, PhD2023-12-09-2043342023-09-20-142547LFL...LFLUSCAndre Kuo8.116894e+09209744.544864Hz{'basis_order': 1, 'max_delta_f': 0.05, 'max_p...Ansys HFSS
233CLT{'claw_opts': {'connection_pads': {'readout': ...qiskit-metalquarter{'cavity_claw_options': {'coupling_type': 'CLT...
11603183.80802168.0402315.11184214.45993214.45993454.60312nHEli Levenson-Falk, PhD2023-12-01-1706082023-09-20-142547LFL...LFLUSCAndre Kuo5.145996e+09155139.565546Hz{'basis_order': 1, 'max_delta_f': 0.05, 'max_p...Ansys HFSSCLT{'claw_opts': {'connection_pads': {'readout': ...qiskit-metalquarter{'cavity_claw_options': {'coupling_type': 'CLT...
\n", - "

234 rows × 13 columns

\n", + "

11604 rows × 32 columns

\n", "
" ], "text/plain": [ - " coupler_type design_options \\\n", - "0 CLT {'claw_opts': {'connection_pads': {'readout': ... \n", - "1 CLT {'claw_opts': {'connection_pads': {'readout': ... \n", - "2 CLT {'claw_opts': {'connection_pads': {'readout': ... \n", - "3 CLT {'claw_opts': {'connection_pads': {'readout': ... \n", - "4 CLT {'claw_opts': {'connection_pads': {'readout': ... \n", - ".. ... ... \n", - "229 CLT {'claw_opts': {'connection_pads': {'readout': ... \n", - "230 CLT {'claw_opts': {'connection_pads': {'readout': ... \n", - "231 CLT {'claw_opts': {'connection_pads': {'readout': ... \n", - "232 CLT {'claw_opts': {'connection_pads': {'readout': ... \n", - "233 CLT {'claw_opts': {'connection_pads': {'readout': ... \n", + " claw_to_claw claw_to_ground cross_to_claw cross_to_cross \\\n", + "0 94.97421 90.86585 3.73363 158.40783 \n", + "1 94.97421 90.86585 3.73363 158.40783 \n", + "2 94.97421 90.86585 3.73363 158.40783 \n", + "3 94.97421 90.86585 3.73363 158.40783 \n", + "4 94.97421 90.86585 3.73363 158.40783 \n", + "... ... ... ... ... \n", + "11599 183.80802 168.04023 15.11184 214.45993 \n", + "11600 183.80802 168.04023 15.11184 214.45993 \n", + "11601 183.80802 168.04023 15.11184 214.45993 \n", + "11602 183.80802 168.04023 15.11184 214.45993 \n", + "11603 183.80802 168.04023 15.11184 214.45993 \n", "\n", - " design_tool PI date_created group \\\n", - "0 qiskit-metal Eli Levenson-Falk, PhD 2023-12-01-170608 LFL \n", - "1 qiskit-metal Eli Levenson-Falk, PhD 2023-12-04-124953 LFL \n", - "2 qiskit-metal Eli Levenson-Falk, PhD 2023-12-09-204334 LFL \n", - "3 qiskit-metal Eli Levenson-Falk, PhD 2023-12-08-173545 LFL \n", - "4 qiskit-metal Eli Levenson-Falk, PhD 2023-12-09-204334 LFL \n", - ".. ... ... ... ... \n", - "229 qiskit-metal Eli Levenson-Falk, PhD 2023-12-01-170608 LFL \n", - "230 qiskit-metal Eli Levenson-Falk, PhD 2023-12-04-124953 LFL \n", - "231 qiskit-metal Eli Levenson-Falk, PhD 2023-12-06-224829 LFL \n", - "232 qiskit-metal Eli Levenson-Falk, PhD 2023-12-09-204334 LFL \n", - "233 qiskit-metal Eli Levenson-Falk, PhD 2023-12-01-170608 LFL \n", + " cross_to_ground ground_to_ground units_qubit PI_qubit \\\n", + "0 158.40783 311.25590 nH Eli Levenson-Falk, PhD \n", + "1 158.40783 311.25590 nH Eli Levenson-Falk, PhD \n", + "2 158.40783 311.25590 nH Eli Levenson-Falk, PhD \n", + "3 158.40783 311.25590 nH Eli Levenson-Falk, PhD \n", + "4 158.40783 311.25590 nH Eli Levenson-Falk, PhD \n", + "... ... ... ... ... \n", + "11599 214.45993 454.60312 nH Eli Levenson-Falk, PhD \n", + "11600 214.45993 454.60312 nH Eli Levenson-Falk, PhD \n", + "11601 214.45993 454.60312 nH Eli Levenson-Falk, PhD \n", + "11602 214.45993 454.60312 nH Eli Levenson-Falk, PhD \n", + "11603 214.45993 454.60312 nH Eli Levenson-Falk, PhD \n", "\n", - " institution uploader cavity_frequency kappa units \\\n", - "0 USC Andre Kuo 5.353550e+09 161106.598429 Hz \n", - "1 USC Andre Kuo 8.399241e+09 268412.116632 Hz \n", - "2 USC Andre Kuo 8.694845e+09 255873.654612 Hz \n", - "3 USC Andre Kuo 6.616574e+09 30459.761161 Hz \n", - "4 USC Andre Kuo 7.986835e+09 208304.221064 Hz \n", - ".. ... ... ... ... ... \n", - "229 USC Andre Kuo 4.949469e+09 126438.881378 Hz \n", - "230 USC Andre Kuo 8.805442e+09 291439.656224 Hz \n", - "231 USC Andre Kuo 6.597444e+09 587144.918000 Hz \n", - "232 USC Andre Kuo 8.116894e+09 209744.544864 Hz \n", - "233 USC Andre Kuo 5.145996e+09 155139.565546 Hz \n", + " date_created_qubit group_qubit ... group_cavity_claw \\\n", + "0 2023-09-20-142547 LFL ... LFL \n", + "1 2023-09-20-142547 LFL ... LFL \n", + "2 2023-09-20-142547 LFL ... LFL \n", + "3 2023-09-20-142547 LFL ... LFL \n", + "4 2023-09-20-142547 LFL ... LFL \n", + "... ... ... ... ... \n", + "11599 2023-09-20-142547 LFL ... LFL \n", + "11600 2023-09-20-142547 LFL ... LFL \n", + "11601 2023-09-20-142547 LFL ... LFL \n", + "11602 2023-09-20-142547 LFL ... LFL \n", + "11603 2023-09-20-142547 LFL ... LFL \n", "\n", - " setup simulator \n", - "0 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... Ansys HFSS \n", - "1 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... Ansys HFSS \n", - "2 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... Ansys HFSS \n", - "3 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... Ansys HFSS \n", - "4 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... Ansys HFSS \n", - ".. ... ... \n", - "229 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... Ansys HFSS \n", - "230 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... Ansys HFSS \n", - "231 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... Ansys HFSS \n", - "232 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... Ansys HFSS \n", - "233 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... Ansys HFSS \n", + " institution_cavity_claw uploader_cavity_claw \\\n", + "0 USC Andre Kuo \n", + "1 USC Andre Kuo \n", + "2 USC Andre Kuo \n", + "3 USC Andre Kuo \n", + "4 USC Andre Kuo \n", + "... ... ... \n", + "11599 USC Andre Kuo \n", + "11600 USC Andre Kuo \n", + "11601 USC Andre Kuo \n", + "11602 USC Andre Kuo \n", + "11603 USC Andre Kuo \n", "\n", - "[234 rows x 13 columns]" + " setup_cavity_claw \\\n", + "0 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... \n", + "1 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... \n", + "2 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... \n", + "3 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... \n", + "4 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... \n", + "... ... \n", + "11599 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... \n", + "11600 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... \n", + "11601 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... \n", + "11602 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... \n", + "11603 {'basis_order': 1, 'max_delta_f': 0.05, 'max_p... \n", + "\n", + " simulator_cavity_claw coupler_type \\\n", + "0 Ansys HFSS CLT \n", + "1 Ansys HFSS CLT \n", + "2 Ansys HFSS CLT \n", + "3 Ansys HFSS CLT \n", + "4 Ansys HFSS CLT \n", + "... ... ... \n", + "11599 Ansys HFSS CLT \n", + "11600 Ansys HFSS CLT \n", + "11601 Ansys HFSS CLT \n", + "11602 Ansys HFSS CLT \n", + "11603 Ansys HFSS CLT \n", + "\n", + " design_options_cavity_claw \\\n", + "0 {'claw_opts': {'connection_pads': {'readout': ... \n", + "1 {'claw_opts': {'connection_pads': {'readout': ... \n", + "2 {'claw_opts': {'connection_pads': {'readout': ... \n", + "3 {'claw_opts': {'connection_pads': {'readout': ... \n", + "4 {'claw_opts': {'connection_pads': {'readout': ... \n", + "... ... \n", + "11599 {'claw_opts': {'connection_pads': {'readout': ... \n", + "11600 {'claw_opts': {'connection_pads': {'readout': ... \n", + "11601 {'claw_opts': {'connection_pads': {'readout': ... \n", + "11602 {'claw_opts': {'connection_pads': {'readout': ... \n", + "11603 {'claw_opts': {'connection_pads': {'readout': ... \n", + "\n", + " design_tool_cavity_claw resonator_type \\\n", + "0 qiskit-metal quarter \n", + "1 qiskit-metal quarter \n", + "2 qiskit-metal quarter \n", + "3 qiskit-metal quarter \n", + "4 qiskit-metal quarter \n", + "... ... ... \n", + "11599 qiskit-metal quarter \n", + "11600 qiskit-metal quarter \n", + "11601 qiskit-metal quarter \n", + "11602 qiskit-metal quarter \n", + "11603 qiskit-metal quarter \n", + "\n", + " design_options \n", + "0 {'cavity_claw_options': {'coupling_type': 'CLT... \n", + "1 {'cavity_claw_options': {'coupling_type': 'CLT... \n", + "2 {'cavity_claw_options': {'coupling_type': 'CLT... \n", + "3 {'cavity_claw_options': {'coupling_type': 'CLT... \n", + "4 {'cavity_claw_options': {'coupling_type': 'CLT... \n", + "... ... \n", + "11599 {'cavity_claw_options': {'coupling_type': 'CLT... \n", + "11600 {'cavity_claw_options': {'coupling_type': 'CLT... \n", + "11601 {'cavity_claw_options': {'coupling_type': 'CLT... \n", + "11602 {'cavity_claw_options': {'coupling_type': 'CLT... \n", + "11603 {'cavity_claw_options': {'coupling_type': 'CLT... \n", + "\n", + "[11604 rows x 32 columns]" ] }, - "execution_count": 294, + "execution_count": 79, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "db.selected_system_df()" + "merged_df" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, "source": [ - "### Querying for a target qubit-cavity design" + "### Simulating the \"best-guess\" design" ] }, { "cell_type": "code", - "execution_count": 314, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ - "db.select_system([\"qubit\",\"cavity_claw\"])" + "cavity_df.iloc[0][\"design_options\"][\"claw_opts\"][\"connection_pads\"][\"readout\"]" ] }, { "cell_type": "code", - "execution_count": 315, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ - "db.select_qubit(\"TransmonCross\")\n", - "db.select_cavity_claw(\"RouteMeander\")\n", - "db.select_coupler(\"CLT\")" - ] - }, - { - "cell_type": "code", - "execution_count": 316, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Selected qubit: TransmonCross\n", - "Selected cavity: RouteMeander\n", - "Selected coupler: CLT\n", - "Selected system: ['qubit', 'cavity_claw']\n" - ] - } - ], - "source": [ - "db.show_selections()" + "qubit_df.iloc[0][\"design_options\"][\"connection_pads\"][\"c\"]" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Simulating the \"best-guess\" design" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {},