Basics#
Interactive use of the scqubits
library from a jupyter notebook starts with importing the scqubits
library.
[18]:
import scqubits as scq
Example: Transmon#
To illustrate basic functionality built into scqubits, we consider the implementation of the transmon qubit as an example. Each qubit type is represented by a class that accomplishes storage of relevant data, such as circuit parameters, and provides a collection of methods used for common computations and plotting. (A more systematic discussion of the set of qubits available in scqubits is given in the subsequent section.)
An instance of the transmon qubit is set up by creating an instance of the class Transmon
and providing the necessary system parameters for initialization:
[19]:
transmon = scq.Transmon(
EJ=30.0,
EC=1.2,
ng=0.3,
ncut=31
)
Or, alternatively, we can use the graphical user interface (if the ipyvuetify
package is installed):
[ ]:
tmon = scq.Transmon.create()