blochsimu
is a light weight python module that provide easy ways to simulate and plot the behavior of a qubit on bloch sphere.
- python 3.7+
- numpy
- scipy
- matplotlib
- Set up an experiment scheme by providing a sequence of sections with costimized physical quantities and duration.
- Numerically solve bloch equation for a given experiment scheme.
- Animate the time evolution of the solution or simply plot its trajectory on bloch sphere.
- Provide tool to make gaussian-padded pulse wave as a callable(t) that returns a float.
- Provide a function that draw a bloch sphere and return its figure and axes for user to plot as desired.
-
Install from PyPI
pip install <package-name>
-
Download the latest release from Release v0.0.1
pip install <package-name>-v0.0.1.tar.gz
It is advised to import this module as bs
.
import blochsimu as bs
For examples, see example.py
in the folder.