Adds docs
All checks were successful
gitea-physics/pysuperconductor/pipeline/head This commit looks good

This commit is contained in:
Deepak Mallubhotla 2021-01-04 16:00:28 -06:00
parent 7843e462de
commit a86bcac604
Signed by: deepak
GPG Key ID: 64BF53A3369104E7
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
"""pysuperconductor
This package implements some superconductor calculations, to facilitate noise
calculations in proximity to superconductors.
"""
import logging
from pysuperconductor.meta import __version__

View File

@ -9,6 +9,8 @@ from typing import Tuple
def energy(freq: float, delta: float) -> float:
"""Takes in a "raw" quasiparticle energy and a gap, and returns the
quasiparticle's energy in the SC state."""
return numpy.sqrt(freq ** 2 + delta ** 2)