Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 14 additions & 119 deletions examples/demo_hilbertspace.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -471,32 +471,14 @@
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "f3f947cb87bf4b198948a37ee4bee782",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"VBox(children=(HBox(children=(VBox(children=(HBox(children=(Label(value='Select subsystems (Ctrl-Click)'), But…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "2ffb1a622bac411199662b5548b04746",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Output()"
]
},
"metadata": {},
"output_type": "display_data"
"name": "stderr",
"output_type": "stream",
"text": [
"Warning: Starting with v3.2, scqubits uses the optional package 'ipyuetify' for graphical user interfaces. To use this functionality, add the package via `conda install -c conda-forge ipyvuetify` or `pip install ipyvuetify`.\n",
"For use with jupyter lab, additionally execute `jupyter labextension install jupyter-vuetify`.\n",
"\n",
" C:\\Users\\hp\\AppData\\Roaming\\Python\\Python311\\site-packages\\scqubits\\utils\\misc.py: 145"
]
}
],
"source": [
Expand All @@ -514,46 +496,6 @@
"text": [
"HilbertSpace: subsystems\n",
"-------------------------\n",
"\n",
"KerrOscillator------| [KerrOscillator_1]\n",
" | E_osc: 4.284\n",
" | K: 0.003\n",
" | l_osc: None\n",
" | truncated_dim: 4\n",
" |\n",
" | dim: 4\n",
"\n",
"\n",
"KerrOscillator------| [KerrOscillator_2]\n",
" | E_osc: 7.073\n",
" | K: 0.015\n",
" | l_osc: None\n",
" | truncated_dim: 4\n",
" |\n",
" | dim: 4\n",
"\n",
"\n",
"\n",
"HilbertSpace: interaction terms\n",
"--------------------------------\n",
"InteractionTerm----------| [InteractionTerm_0]\n",
" | expr: 'g * op1 * op2'\n",
" | operator_list: [(0, 'op1', array([[0. , 0. , 0. ...\n",
" | const: {}\n",
" | add_hc: True\n",
"\n",
"InteractionTerm----------| [InteractionTerm_1]\n",
" | expr: 'g2 * op1.dag() * op1.dag() * op2'\n",
" | operator_list: [(0, 'op1', array([[0. , 1. , 0. ...\n",
" | const: {}\n",
" | add_hc: True\n",
"\n",
"InteractionTerm----------| [InteractionTerm_2]\n",
" | expr: 'chi_ab * op1.dag() * op1 * op2.dag() * op2'\n",
" | operator_list: [(0, 'op1', array([[0. , 1. , 0. ...\n",
" | const: {}\n",
" | add_hc: False\n",
"\n",
"\n"
]
}
Expand All @@ -570,59 +512,12 @@
{
"data": {
"text/latex": [
"Quantum object: dims = [[4, 4], [4, 4]], shape = (16, 16), type = oper, isherm = True $ \\\\ \\left(\\begin{matrix}0.0 & 0.0 & 0.0 & 0.0 & 0.0 & \\cdots & 0.0 & 0.0 & 0.0 & 0.0 & 0.0\\\\0.0 & 7.073 & 0.0 & 0.0 & 0.100 & \\cdots & 0.0 & 0.0 & 0.0 & 0.0 & 0.0\\\\0.0 & 0.0 & 14.116 & 0.0 & 0.0 & \\cdots & 0.0 & 0.0 & 0.0 & 0.0 & 0.0\\\\0.0 & 0.0 & 0.0 & 21.129 & 0.0 & \\cdots & 0.0 & 0.0 & 0.0 & 0.0 & 0.0\\\\0.0 & 0.100 & 0.0 & 0.0 & 4.284 & \\cdots & 0.0 & 0.0 & 0.0 & 0.0 & 0.0\\\\\\vdots & \\vdots & \\vdots & \\vdots & \\vdots & \\ddots & \\vdots & \\vdots & \\vdots & \\vdots & \\vdots\\\\0.0 & 0.0 & 0.0 & 0.0 & 0.0 & \\cdots & 29.751 & 0.0 & 0.0 & 0.300 & 0.0\\\\0.0 & 0.0 & 0.0 & 0.0 & 0.0 & \\cdots & 0.0 & 12.834 & 0.0 & 0.0 & 0.0\\\\0.0 & 0.0 & 0.0 & 0.0 & 0.0 & \\cdots & 0.0 & 0.0 & 19.937 & 0.0 & 0.0\\\\0.0 & 0.0 & 0.0 & 0.0 & 0.0 & \\cdots & 0.300 & 0.0 & 0.0 & 27.010 & 0.0\\\\0.0 & 0.0 & 0.0 & 0.0 & 0.0 & \\cdots & 0.0 & 0.0 & 0.0 & 0.0 & 34.053\\\\\\end{matrix}\\right)$"
"Quantum object: dims = [[1], [1]], shape = (1, 1), type = bra $ \\\\ \\left(\\begin{matrix}0.0\\\\\\end{matrix}\\right)$"
],
"text/plain": [
"Quantum object: dims = [[4, 4], [4, 4]], shape = (16, 16), type = oper, isherm = True\n",
"Quantum object: dims = [[1], [1]], shape = (1, 1), type = bra\n",
"Qobj data =\n",
"[[ 0. 0. 0. 0. 0. 0.\n",
" 0. 0. 0. 0. 0. 0.\n",
" 0. 0. 0. 0. ]\n",
" [ 0. 7.073 0. 0. 0.1 0.\n",
" 0. 0. 0.04949747 0. 0. 0.\n",
" 0. 0. 0. 0. ]\n",
" [ 0. 0. 14.116 0. 0. 0.14142136\n",
" 0. 0. 0. 0.07 0. 0.\n",
" 0. 0. 0. 0. ]\n",
" [ 0. 0. 0. 21.129 0. 0.\n",
" 0.17320508 0. 0. 0. 0.08573214 0.\n",
" 0. 0. 0. 0. ]\n",
" [ 0. 0.1 0. 0. 4.284 0.\n",
" 0. 0. 0. 0. 0. 0.\n",
" 0. 0. 0. 0. ]\n",
" [ 0. 0. 0.14142136 0. 0. 11.367\n",
" 0. 0. 0.14142136 0. 0. 0.\n",
" 0.08573214 0. 0. 0. ]\n",
" [ 0. 0. 0. 0.17320508 0. 0.\n",
" 18.42 0. 0. 0.2 0. 0.\n",
" 0. 0.12124356 0. 0. ]\n",
" [ 0. 0. 0. 0. 0. 0.\n",
" 0. 25.443 0. 0. 0.24494897 0.\n",
" 0. 0. 0.14849242 0. ]\n",
" [ 0. 0.04949747 0. 0. 0. 0.14142136\n",
" 0. 0. 8.562 0. 0. 0.\n",
" 0. 0. 0. 0. ]\n",
" [ 0. 0. 0.07 0. 0. 0.\n",
" 0.2 0. 0. 15.655 0. 0.\n",
" 0.17320508 0. 0. 0. ]\n",
" [ 0. 0. 0. 0.08573214 0. 0.\n",
" 0. 0.24494897 0. 0. 22.718 0.\n",
" 0. 0.24494897 0. 0. ]\n",
" [ 0. 0. 0. 0. 0. 0.\n",
" 0. 0. 0. 0. 0. 29.751\n",
" 0. 0. 0.3 0. ]\n",
" [ 0. 0. 0. 0. 0. 0.08573214\n",
" 0. 0. 0. 0.17320508 0. 0.\n",
" 12.834 0. 0. 0. ]\n",
" [ 0. 0. 0. 0. 0. 0.\n",
" 0.12124356 0. 0. 0. 0.24494897 0.\n",
" 0. 19.937 0. 0. ]\n",
" [ 0. 0. 0. 0. 0. 0.\n",
" 0. 0.14849242 0. 0. 0. 0.3\n",
" 0. 0. 27.01 0. ]\n",
" [ 0. 0. 0. 0. 0. 0.\n",
" 0. 0. 0. 0. 0. 0.\n",
" 0. 0. 0. 34.053 ]]"
"[[0.]]"
]
},
"execution_count": 11,
Expand Down Expand Up @@ -650,7 +545,7 @@
{
"data": {
"text/plain": [
"True"
"False"
]
},
"execution_count": 12,
Expand Down Expand Up @@ -805,7 +700,7 @@
{
"data": {
"text/plain": [
"18.413688985491895"
"18.413688985491913"
]
},
"execution_count": 17,
Expand Down Expand Up @@ -845,7 +740,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.3"
"version": "3.11.5"
},
"toc": {
"base_numbering": 1,
Expand Down
Loading