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, ?B/s]"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
"source": [
"db = SQuADDS_DB()"
]
},
{
"cell_type": "code",
- "execution_count": 83,
+ "execution_count": 4,
"metadata": {},
"outputs": [
{
@@ -233,9 +213,74 @@
},
{
"cell_type": "code",
- "execution_count": 88,
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "db.get_dataset_info(component=\"qubit\", component_name=\"TransmonCross\", data_type=\"cap_matrix\")"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
"metadata": {},
"outputs": [
+ {
+ "data": {
+ "application/vnd.jupyter.widget-view+json": {
+ "model_id": "6e2c08fde7e841d68cea700d41d40e83",
+ "version_major": 2,
+ "version_minor": 0
+ },
+ "text/plain": [
+ "Downloading data files: 0%| | 0/1 [00:00, ?it/s]"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ },
+ {
+ "data": {
+ "application/vnd.jupyter.widget-view+json": {
+ "model_id": "a2fd5c73b57e40afb98d11f1a457d647",
+ "version_major": 2,
+ "version_minor": 0
+ },
+ "text/plain": [
+ "Downloading data: 0%| | 0.00/770k [00:00, ?B/s]"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ },
+ {
+ "data": {
+ "application/vnd.jupyter.widget-view+json": {
+ "model_id": "cc0ed3b0ed1d406e8f751f800fc7cc0d",
+ "version_major": 2,
+ "version_minor": 0
+ },
+ "text/plain": [
+ "Extracting data files: 0%| | 0/1 [00:00, ?it/s]"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ },
+ {
+ "data": {
+ "application/vnd.jupyter.widget-view+json": {
+ "model_id": "51f6dd41334545ddb531cdef8d610b16",
+ "version_major": 2,
+ "version_minor": 0
+ },
+ "text/plain": [
+ "Generating train split: 0 examples [00:00, ? examples/s]"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ },
{
"name": "stdout",
"output_type": "stream",
@@ -247,18 +292,14 @@
" 'group': Value(dtype='string', id=None),\n",
" 'institution': Value(dtype='string', id=None),\n",
" 'uploader': Value(dtype='string', id=None)},\n",
- " 'design': {'design_options': {...},\n",
- " 'design_tool': Value(dtype='string', id=None)},\n",
+ " 'design': {'coupler_type': Value(dtype='string', id=None),\n",
+ " 'design_options': {...},\n",
+ " 'design_tool': Value(dtype='string', id=None),\n",
+ " 'resonator_type': Value(dtype='string', id=None)},\n",
" 'notes': {},\n",
- " 'sim_options': {'renderer_options': {...},\n",
- " 'setup': {...},\n",
- " 'simulator': Value(dtype='string', id=None)},\n",
- " 'sim_results': {'claw_to_claw': Value(dtype='float64', id=None),\n",
- " 'claw_to_ground': Value(dtype='float64', id=None),\n",
- " 'cross_to_claw': Value(dtype='float64', id=None),\n",
- " 'cross_to_cross': Value(dtype='float64', id=None),\n",
- " 'cross_to_ground': Value(dtype='float64', id=None),\n",
- " 'ground_to_ground': Value(dtype='float64', id=None),\n",
+ " 'sim_options': {'setup': {...}, 'simulator': Value(dtype='string', id=None)},\n",
+ " 'sim_results': {'cavity_frequency': Value(dtype='float64', id=None),\n",
+ " 'kappa': Value(dtype='float64', id=None),\n",
" 'units': Value(dtype='string', id=None)}}\n",
"\n",
"Dataset Description:\n",
@@ -274,65 +315,169 @@
"\n",
"\n",
"Dataset Size in Bytes:\n",
- "9700839\n",
+ "891279\n",
"================================================================================\n"
]
}
],
"source": [
- "db.get_dataset_info(component=\"qubit\", component_name=\"TransmonCross\", data_type=\"cap_matrix\")"
+ "db.get_dataset_info(component=\"cavity_claw\", component_name=\"RouteMeander\", data_type=\"eigenmode\")"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "db.get_dataset(component=\"qubit\", component_name=\"TransmonCross\", data_type=\"cap_matrix\")"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "db.get_configs()"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "db.view_contributors_of(\"qubit\", \"TransmonCross\", \"cap_matrix\")"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "db.view_all_contributors()"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "### Querying for the a target qubit design"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "db.select_system(\"qubit\")"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "db.select_qubit(\"TransmonCross\")"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "db.selected_system"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "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": 6,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "db.unselect_all()"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "db.select_system(\"cavity_claw\")"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 8,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "db.select_cavity_claw(\"RouteMeander\")"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 9,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "db.select_coupler(\"CLT\")"
]
},
{
"cell_type": "code",
- "execution_count": 87,
+ "execution_count": 10,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
- "================================================================================\n",
- "Dataset Features:\n",
- "{'contributor': {'PI': Value(dtype='string', id=None),\n",
- " 'date_created': Value(dtype='string', id=None),\n",
- " 'group': Value(dtype='string', id=None),\n",
- " 'institution': Value(dtype='string', id=None),\n",
- " 'uploader': Value(dtype='string', id=None)},\n",
- " 'design': {'coupler_type': Value(dtype='string', id=None),\n",
- " 'design_options': {...},\n",
- " 'design_tool': Value(dtype='string', id=None)},\n",
- " 'notes': {},\n",
- " 'sim_options': {'setup': {...}, 'simulator': Value(dtype='string', id=None)},\n",
- " 'sim_results': {'cavity_frequency': Value(dtype='float64', id=None),\n",
- " 'kappa': Value(dtype='float64', id=None),\n",
- " 'units': Value(dtype='string', id=None)}}\n",
- "\n",
- "Dataset Description:\n",
- "\n",
- "\n",
- "Dataset Citation:\n",
- "\n",
- "\n",
- "Dataset Homepage:\n",
- "\n",
- "\n",
- "Dataset License:\n",
- "\n",
- "\n",
- "Dataset Size in Bytes:\n",
- "879111\n",
- "================================================================================\n"
+ "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.get_dataset_info(component=\"cavity_claw\", component_name=\"RouteMeander\", data_type=\"eigenmode\")"
+ "db.show_selections()"
]
},
{
"cell_type": "code",
- "execution_count": 205,
+ "execution_count": 11,
"metadata": {},
"outputs": [
{
@@ -356,125 +501,107 @@
" \n",
" \n",
" \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",
- "
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", "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", - " | coupler_type | \n", - "design_options | \n", - "design_tool | \n", - "PI | \n", - "date_created | \n", - "group | \n", - "institution | \n", - "uploader | \n", - "cavity_frequency | \n", - "kappa | \n", - "units | \n", - "setup | \n", - "simulator | \n", - "||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "CLT | \n", "{'claw_opts': {'connection_pads': {'readout': ... | \n", "qiskit-metal | \n", - "Eli Levenson-Falk, PhD | \n", - "2023-12-01-170608 | \n", - "LFL | \n", - "USC | \n", - "Andre Kuo | \n", - "5.353550e+09 | \n", - "161106.598429 | \n", - "Hz | \n", - "{'basis_order': 1, 'max_delta_f': 0.05, 'max_p... | \n", - "Ansys HFSS | \n", + "quarter | \n", + "{'cavity_claw_options': {'coupling_type': 'CLT... | \n", "||||||||||
1 | \n", - "CLT | \n", - "{'claw_opts': {'connection_pads': {'readout': ... | \n", - "qiskit-metal | \n", + "3 | \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-12-04-124953 | \n", + "2023-09-20-142547 | \n", + "LFL | \n", + "... | \n", "LFL | \n", "USC | \n", "Andre Kuo | \n", - "8.399241e+09 | \n", - "268412.116632 | \n", - "Hz | \n", "{'basis_order': 1, 'max_delta_f': 0.05, 'max_p... | \n", "Ansys HFSS | \n", - "|
2 | \n", "CLT | \n", "{'claw_opts': {'connection_pads': {'readout': ... | \n", "qiskit-metal | \n", - "Eli Levenson-Falk, PhD | \n", - "2023-12-09-204334 | \n", - "LFL | \n", - "USC | \n", - "Andre Kuo | \n", - "8.694845e+09 | \n", - "255873.654612 | \n", - "Hz | \n", - "{'basis_order': 1, 'max_delta_f': 0.05, 'max_p... | \n", - "Ansys HFSS | \n", + "quarter | \n", + "{'cavity_claw_options': {'coupling_type': 'CLT... | \n", "||||||||||
3 | \n", - "CLT | \n", - "{'claw_opts': {'connection_pads': {'readout': ... | \n", - "qiskit-metal | \n", + "4 | \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-12-08-173545 | \n", + "2023-09-20-142547 | \n", + "LFL | \n", + "... | \n", "LFL | \n", "USC | \n", "Andre Kuo | \n", - "6.616574e+09 | \n", - "30459.761161 | \n", - "Hz | \n", "{'basis_order': 1, 'max_delta_f': 0.05, 'max_p... | \n", "Ansys HFSS | \n", - "|
4 | \n", "CLT | \n", "{'claw_opts': {'connection_pads': {'readout': ... | \n", "qiskit-metal | \n", - "Eli Levenson-Falk, PhD | \n", - "2023-12-09-204334 | \n", - "LFL | \n", - "USC | \n", - "Andre Kuo | \n", - "7.986835e+09 | \n", - "208304.221064 | \n", - "Hz | \n", - "{'basis_order': 1, 'max_delta_f': 0.05, 'max_p... | \n", - "Ansys HFSS | \n", + "quarter | \n", + "{'cavity_claw_options': {'coupling_type': 'CLT... | \n", "||||||||||
... | \n", @@ -1373,225 +1036,295 @@ "... | \n", "... | \n", "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", "||||||||||||||
229 | \n", - "CLT | \n", - "{'claw_opts': {'connection_pads': {'readout': ... | \n", - "qiskit-metal | \n", + "11599 | \n", + "183.80802 | \n", + "168.04023 | \n", + "15.11184 | \n", + "214.45993 | \n", + "214.45993 | \n", + "454.60312 | \n", + "nH | \n", "Eli Levenson-Falk, PhD | \n", - "2023-12-01-170608 | \n", + "2023-09-20-142547 | \n", + "LFL | \n", + "... | \n", "LFL | \n", "USC | \n", "Andre Kuo | \n", - "4.949469e+09 | \n", - "126438.881378 | \n", - "Hz | \n", "{'basis_order': 1, 'max_delta_f': 0.05, 'max_p... | \n", "Ansys HFSS | \n", - "|
230 | \n", "CLT | \n", "{'claw_opts': {'connection_pads': {'readout': ... | \n", "qiskit-metal | \n", + "quarter | \n", + "{'cavity_claw_options': {'coupling_type': 'CLT... | \n", + "||||||||||||||||||||
11600 | \n", + "183.80802 | \n", + "168.04023 | \n", + "15.11184 | \n", + "214.45993 | \n", + "214.45993 | \n", + "454.60312 | \n", + "nH | \n", "Eli Levenson-Falk, PhD | \n", - "2023-12-04-124953 | \n", + "2023-09-20-142547 | \n", + "LFL | \n", + "... | \n", "LFL | \n", "USC | \n", "Andre Kuo | \n", - "8.805442e+09 | \n", - "291439.656224 | \n", - "Hz | \n", "{'basis_order': 1, 'max_delta_f': 0.05, 'max_p... | \n", "Ansys HFSS | \n", - "|||||
231 | \n", "CLT | \n", "{'claw_opts': {'connection_pads': {'readout': ... | \n", "qiskit-metal | \n", + "quarter | \n", + "{'cavity_claw_options': {'coupling_type': 'CLT... | \n", + "||||||||||||||||||||
11601 | \n", + "183.80802 | \n", + "168.04023 | \n", + "15.11184 | \n", + "214.45993 | \n", + "214.45993 | \n", + "454.60312 | \n", + "nH | \n", "Eli Levenson-Falk, PhD | \n", - "2023-12-06-224829 | \n", + "2023-09-20-142547 | \n", + "LFL | \n", + "... | \n", "LFL | \n", "USC | \n", "Andre Kuo | \n", - "6.597444e+09 | \n", - "587144.918000 | \n", - "Hz | \n", "{'basis_order': 1, 'max_delta_f': 0.05, 'max_p... | \n", "Ansys HFSS | \n", - "|||||
232 | \n", "CLT | \n", "{'claw_opts': {'connection_pads': {'readout': ... | \n", "qiskit-metal | \n", + "quarter | \n", + "{'cavity_claw_options': {'coupling_type': 'CLT... | \n", + "||||||||||||||||||||
11602 | \n", + "183.80802 | \n", + "168.04023 | \n", + "15.11184 | \n", + "214.45993 | \n", + "214.45993 | \n", + "454.60312 | \n", + "nH | \n", "Eli Levenson-Falk, PhD | \n", - "2023-12-09-204334 | \n", + "2023-09-20-142547 | \n", + "LFL | \n", + "... | \n", "LFL | \n", "USC | \n", "Andre Kuo | \n", - "8.116894e+09 | \n", - "209744.544864 | \n", - "Hz | \n", "{'basis_order': 1, 'max_delta_f': 0.05, 'max_p... | \n", "Ansys HFSS | \n", - "|||||
233 | \n", "CLT | \n", "{'claw_opts': {'connection_pads': {'readout': ... | \n", "qiskit-metal | \n", + "quarter | \n", + "{'cavity_claw_options': {'coupling_type': 'CLT... | \n", + "||||||||||||||||||||
11603 | \n", + "183.80802 | \n", + "168.04023 | \n", + "15.11184 | \n", + "214.45993 | \n", + "214.45993 | \n", + "454.60312 | \n", + "nH | \n", "Eli Levenson-Falk, PhD | \n", - "2023-12-01-170608 | \n", + "2023-09-20-142547 | \n", + "LFL | \n", + "... | \n", "LFL | \n", "USC | \n", "Andre Kuo | \n", - "5.145996e+09 | \n", - "155139.565546 | \n", - "Hz | \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", "
234 rows × 13 columns
\n", + "11604 rows × 32 columns
\n", "