From c1ffbc406d6b88c6fa2d4853d9242453e7865b1b Mon Sep 17 00:00:00 2001
From: Rohan Narayan <128184471+Rohan-1729@users.noreply.github.com>
Date: Tue, 18 Apr 2023 17:47:11 -0500
Subject: [PATCH 1/2] Delete demo_fluxonium.ipynb
---
examples/demo_fluxonium.ipynb | 22458 --------------------------------
1 file changed, 22458 deletions(-)
delete mode 100644 examples/demo_fluxonium.ipynb
diff --git a/examples/demo_fluxonium.ipynb b/examples/demo_fluxonium.ipynb
deleted file mode 100644
index ecaa7b3..0000000
--- a/examples/demo_fluxonium.ipynb
+++ /dev/null
@@ -1,22458 +0,0 @@
-{
- "cells": [
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "# scqubits example: the fluxonium qubit\n",
- "J. Koch and P. Groszkowski\n",
- "\n",
- "For further documentation of scqubits see https://scqubits.readthedocs.io/en/latest/.\n",
- "\n",
- "---"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 1,
- "metadata": {
- "ExecuteTime": {
- "end_time": "2020-03-27T12:06:07.457721Z",
- "start_time": "2020-03-27T12:06:06.226978Z"
- },
- "init_cell": true,
- "pycharm": {
- "is_executing": false
- },
- "scrolled": true
- },
- "outputs": [],
- "source": [
- "%matplotlib inline\n",
- "%config InlineBackend.figure_format = 'svg'\n",
- "\n",
- "import numpy as np\n",
- "import scqubits as scq"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "# Fluxonium qubit"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "$H_\\text{fl}=-4E_\\text{C}\\partial_\\phi^2-E_\\text{J}\\cos(\\phi-\\varphi_\\text{ext}) +\\frac{1}{2}E_L\\phi^2$"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "**Creation via GUI** (ipywidgets needs to be installed for this to work.)"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 2,
- "metadata": {
- "ExecuteTime": {
- "end_time": "2020-03-27T12:08:37.174509Z",
- "start_time": "2020-03-27T12:08:37.105692Z"
- }
- },
- "outputs": [
- {
- "data": {
- "application/vnd.jupyter.widget-view+json": {
- "model_id": "",
- "version_major": 2,
- "version_minor": 0
- },
- "text/plain": [
- "HBox(children=(VBox(children=(HBox(children=(Label(value='EJ [GHz]'), FloatText(value=8.9, layout=Layout(width…"
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "application/vnd.jupyter.widget-view+json": {
- "model_id": "",
- "version_major": 2,
- "version_minor": 0
- },
- "text/plain": [
- "Output()"
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- }
- ],
- "source": [
- "fluxonium = scq.Fluxonium.create()"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 3,
- "metadata": {
- "ExecuteTime": {
- "end_time": "2020-03-24T22:08:13.758806Z",
- "start_time": "2020-03-24T22:08:13.744843Z"
- }
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Fluxonium-----------| [Fluxonium_1]\n",
- " | EJ: 8.9\n",
- " | EC: 2.5\n",
- " | EL: 0.5\n",
- " | flux: 0.0\n",
- " | cutoff: 110\n",
- " | truncated_dim: 10\n",
- " |\n",
- " | dim: 110\n",
- "\n"
- ]
- }
- ],
- "source": [
- "print(fluxonium)"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "**Programmatic creation**"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 4,
- "metadata": {
- "ExecuteTime": {
- "end_time": "2020-03-27T12:06:07.463676Z",
- "start_time": "2020-03-27T12:06:07.459683Z"
- }
- },
- "outputs": [],
- "source": [
- "fluxonium2 = scq.Fluxonium(\n",
- " EJ=8.9,\n",
- " EC=2.5,\n",
- " EL=0.5,\n",
- " cutoff = 110,\n",
- " flux = 0.5\n",
- ")"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "## Computing and visualizing spectra"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 5,
- "metadata": {},
- "outputs": [
- {
- "data": {
- "text/plain": [
- "array([-2.7022458 , 6.05619946, 6.27730681, 8.29978855, 14.23074422,\n",
- " 16.86961382])"
- ]
- },
- "execution_count": 5,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
- "source": [
- "fluxonium.eigenvals()"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 6,
- "metadata": {
- "ExecuteTime": {
- "end_time": "2020-03-24T22:08:15.008710Z",
- "start_time": "2020-03-24T22:08:14.988765Z"
- }
- },
- "outputs": [
- {
- "data": {
- "text/plain": [
- "array([-2.7022458 , 6.05619946, 6.27730681, 8.29978855, 14.23074422,\n",
- " 16.86961382])"
- ]
- },
- "execution_count": 6,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
- "source": [
- "fluxonium.eigenvals()"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 7,
- "metadata": {},
- "outputs": [
- {
- "data": {
- "application/vnd.jupyter.widget-view+json": {
- "model_id": "",
- "version_major": 2,
- "version_minor": 0
- },
- "text/plain": [
- "Spectral data: 0%| | 0/151 [00:00, ?it/s]"
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "image/svg+xml": [
- "\r\n",
- "\r\n",
- "\r\n",
- "\r\n"
- ],
- "text/plain": [
- "