Skip to content

Commit

Permalink
correcting code now deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
jkochNU committed Apr 11, 2023
1 parent ef3075e commit 740d033
Show file tree
Hide file tree
Showing 5 changed files with 15,484 additions and 15,182 deletions.
107 changes: 9 additions & 98 deletions examples/demo_explorer.ipynb
Expand Up @@ -30,11 +30,7 @@
},
"outputs": [],
"source": [
"%matplotlib inline\n",
"%config InlineBackend.figure_format = 'svg'\n",
"\n",
"import numpy as np\n",
"\n",
"import scqubits as scq"
]
},
Expand Down Expand Up @@ -242,52 +238,20 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"sweeping : 0%| | 0/101 [00:00<?, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "57d9639549d74c9398d49d175a64fd55",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(VBox(children=(FloatSlider(value=0.0, continuous_update=False, description='$\\\\Phi_{ext}/\\\\Phi_…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "0692c9a81d6943d09612dec0ec4417d3",
"model_id": "f6b015493ae44dbaaf01167de8ed8d68",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Output()"
"VBox(children=(Tab(children=(HBox(children=(HBox(children=(VBox(children=(Dropdown(layout=Layout(width='165px'…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"explorer = scq.Explorer(\n",
" sweep=sweep,\n",
" evals_count=10\n",
")\n",
"explorer.interact()"
"explorer = scq.Explorer(sweep=sweep)"
]
},
{
Expand Down Expand Up @@ -445,85 +409,32 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 10,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"sweeping : 0%| | 0/151 [00:00<?, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"sweeping : 0%| | 0/151 [00:00<?, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "1d969fdcb53d432190d3d1467909e2cb",
"model_id": "621f8abdfa5640179bf379fa49f985ea",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(VBox(children=(FloatSlider(value=0.0, continuous_update=False, description='$\\\\Phi_{ext}/\\\\Phi_…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "71ba78c44f2441f78bf06cd15468f2ae",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Output()"
"VBox(children=(Tab(children=(HBox(children=(HBox(children=(VBox(children=(Dropdown(layout=Layout(width='165px'…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"explorer = scq.Explorer(\n",
" sweep=sweep,\n",
" evals_count=10\n",
")\n",
"explorer.interact()"
"explorer = scq.Explorer(sweep=sweep)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -537,7 +448,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
"version": "3.9.15"
},
"pycharm": {
"stem_cell": {
Expand Down
43 changes: 34 additions & 9 deletions examples/demo_gui.ipynb
Expand Up @@ -7,9 +7,6 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"%config InlineBackend.figure_format = 'svg'\n",
"\n",
"import scqubits as scq"
]
},
Expand All @@ -24,12 +21,12 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "57c401d9bdab40d48b3f1b599ed2950a",
"model_id": "33f37c65a18048fc9e8d9f1e6118de2e",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"VBox(children=(HBox(children=(ToggleButtons(description='Qubits:', layout=Layout(width='800px'), options=('Tra"
"VBox(children=(HBox(children=(ToggleButtons(description='Qubits:', options=('Transmon', 'TunableTransmon', 'Fl"
]
},
"metadata": {},
Expand All @@ -38,12 +35,40 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "6c1cf2046ab2415e90d5bdee40bbc432",
"model_id": "bebd7e072c2f4d0ab37a275a6a137de5",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Output(layout=Layout(width='975px'))"
"Tab(children=(HBox(children=(VBox(children=(SelectMultiple(description='States', index=(0, 1, 2, 3, 4), layout…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "def18e4c58184d429dfec22e30007f83",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(HBox(children=(Checkbox(value=False, description='Manual Update', indent=False, layout=Layout(w…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "f58f2b06ce794aa1af7799beb8e340fb",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Output(layout=Layout(width='100%'))"
]
},
"metadata": {},
Expand Down Expand Up @@ -1115,7 +1140,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -1129,7 +1154,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
"version": "3.9.15"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 740d033

Please sign in to comment.