Note
This page was generated from circuit-examples//A.Qubits//08-JJ-Dolan.ipynb.
Josephson Junction (Dolan)#
We’ll be creating a Dolan style Josephson Junction.
[1]:
# So, let us dive right in. For convenience, let's begin by enabling
# automatic reloading of modules when they change.
%load_ext autoreload
%autoreload 2
[2]:
import qiskit_metal as metal
from qiskit_metal import designs, draw
from qiskit_metal import MetalGUI, Dict, open_docs
[3]:
# Each time you create a new quantum circuit design,
# you start by instantiating a QDesign class.
# The design class `DesignPlanar` is best for 2D circuit designs.
design = designs.DesignPlanar()
[4]:
#Launch Qiskit Metal GUI to interactively view, edit, and simulate QDesign: Metal GUI
gui = MetalGUI(design)
A dolan style josephson junction#
You can create a dolan style josephson junction from the QComponent Library, qiskit_metal.qlibrary.qubits
. jj_dolan.py
is the file containing our josephson junction so jj_dolan
is the module we import. The jj_dolan
class is our josephson junction. Like all quantum components, jj_dolan
inherits from QComponent
.
[5]:
from qiskit_metal.qlibrary.qubits.JJ_Dolan import jj_dolan
# Be aware of the default_options that can be overridden by user.
design.overwrite_enabled = True
jj2 = jj_dolan(design, 'JJ2', options=dict(pos_x="0.1", pos_y="0.0"))
gui.rebuild()
gui.autoscale()
gui.zoom_on_components(['JJ2'])
[6]:
# Save screenshot as a .png formatted file.
gui.screenshot()
[7]:
# Screenshot the canvas only as a .png formatted file.
gui.figure.savefig('shot.png')
from IPython.display import Image, display
_disp_ops = dict(width=500)
display(Image('shot.png', **_disp_ops))
Closing the Qiskit Metal GUI#
[9]:
gui.main_window.close()
[9]:
True
[ ]:
For more information, review the Introduction to Quantum Computing and Quantum Hardware lectures below
|
Lecture Video | Lecture Notes | Lab |
|
Lecture Video | Lecture Notes | Lab |
|
Lecture Video | Lecture Notes | Lab |
|
Lecture Video | Lecture Notes | Lab |
|
Lecture Video | Lecture Notes | Lab |
|
Lecture Video | Lecture Notes | Lab |