Skip to content

stanfordLINQS/SQcircuit-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SQcircuit-examples

license

This repository demonstrates how to use SQcircuit to simulate superconducting circuits. On examples ranging from simple qubits to state-of-the-art circuits in the literature, we show how to easily reproduce the main results of papers with SQcircuit.

There are also a set of tutorial notebooks showing how to use SQcircuit to compute the gradient of circuit properties (eigenfrequencies, decoherence times, coupling operators, …) with respect to the values of circuit elements, and how to use this information to optimize circuits for target performance.

Simulating qubits from the literature

  • Qubit protected by two Cooper-pair tunneling: Smith2020 designed a qubit that is protected by two-Cooper-pair tunneling. This notebook reproduces the energy spectrum of the paper for the circuit.

  • Kite Circuit: Smith2022 designed a superconducting circuit that magnifies quantum phase fluctuations with Cooper-pair pairing. This notebook reproduces the figures from the paper including energy spectrum, wavefunctions, and matrix elements.

  • Inductively Shunted Circuit: Smith2016 explained how conventional methods and perturbation theory do not correctly diagonalize their highly anharmonic inductively-shunted qubits. This notebook demonstrates how SQcircuit can quickly compute the exact energy spectrum without needing to consider these details.

  • Zero-Pi Qubit: This notebook calculates the energy spectrum and eigenfunctions of the zero-pi qubit from Groszkowski2018.

  • Flux Qubit: This notebook calculates the energy spectrum of the flux qubit from Robertson2006.

Calculating gradients and performing optimization

  • Calculating gradients: This notebook shows how to calculate gradients with SQcircuit.

  • Performing optimization: This notebook uses SQcircuit and PyTorch to perform gradient descent optimization with a fluxonium to achieve a desired qubit frequency.

For a full-featured library using the gradient features of SQcircuit, see Qubit-Discovery, which automates and greatly extends the optimization notebook.

Documentation

The documentation for SQcircuit is provided at sqcircuit.org.

About

A collection of Jupyter notebooks using SQcircuit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •