API#
protis#
This module implements the protis API.
Classes#
A class of status magic functions. |
|
A class of status magic functions. |
Functions#
|
Set the numerical backend used by protis. |
|
Enable or disable GPU usage for computations. |
|
|
|
|
|
|
|
|
|
Orthonormalizes vectors by gram-schmidt process |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Package Contents#
- protis.set_backend(backend)[source]#
Set the numerical backend used by protis.
- Parameters:
backend (str) – The backend to use. Must be one of “numpy”, “scipy”, “autograd”, “jax” or “torch”.
Notes
This function is a wrapper around nannos.set_backend and also reloads the protis package.
- protis.use_gpu(boolean)[source]#
Enable or disable GPU usage for computations.
- Parameters:
boolean (bool) – If True, set the system to use GPU for computations; if False, use CPU.
Notes
This function sets the GPU usage state for the current session and reloads the package to apply the changes.
- protis.gram_schmidt(A, norm=True, row_vect=False)[source]#
Orthonormalizes vectors by gram-schmidt process
- class protis.Simulation(lattice, k=(0, 0), epsilon=1, mu=1, nh=100)[source]#
- lattice#
- k = (0, 0)#
- epsilon = 1#
- mu = 1#
- nh0 = 100#
- property kx#
- property ky#
- property Kx#
- property Ky#
- protis.plot2d(lattice, grid, field, nper=1, ax=None, cmap='RdBu_r', show_cell=False, cellstyle='-k', **kwargs)[source]#
- class protis.VersionTable(shell=None, **kwargs)[source]#
Bases:
IPython.core.magic.MagicsA class of status magic functions.