A Framework for parametrized sweeps aimed for quantum simulations.
Project description
pyqsl provides a framework for running tasks as a function of different combinations of tasks input arguments. For example, pyqsl supports sweeping over any combination of the parameters, expanding the results of the task to numpy arrays of correct dimensions. Additinoanally, pyqsl provides a way to define relations between different task-parameters in order to construct complicated sweep spaces. The relations can be arbitrarily nested, and support different formats such as symbolic equations and lookuptables.
Installation
pyqsl can be installed using pip, but is not yet available through public repositories. To install, first clone the repository and enter the directory. There run
git clone https://github.com/ittnas/pyqsl.git pip install ./pyqsl
For development, install also the tools needed for testing
pip install -e ./pyqsl[testing]
For automated document generation the library uses Sphinx. To generate the documentation install sphinx and then navigate to doc/ directory. To update the API doc strings, run
sphinx-apidoc -f -o source/ ../
and then build the docs with
make html
to generate the html documentation. The documentation can be found in doc/build/html.
Issues
There is a weird feature related to multiprocessing in windows. Every time a new process is spawned, the parent class is imported. This leads to an infinite loop if care is not taken. Therefore, every time pyqsl.core.simulation_loop is called, a main guard needs to be added, e.g.
if __name__=='__main__': result = pyqsl.run(simulation_task, settings, parallelize=True)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyqsl-0.0.0.tar.gz
.
File metadata
- Download URL: pyqsl-0.0.0.tar.gz
- Upload date:
- Size: 25.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73ee1ca1e177e8cc3e1c2f68f84cea00aae6bf85e92e88f7d50e3fc789e03682 |
|
MD5 | ad42d072ca7c454191c0f12c1efdba47 |
|
BLAKE2b-256 | 7e8649419c6da372078a1bb16074d1a5856582bbe38e1b323ab748f17d87fdc2 |
File details
Details for the file pyqsl-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: pyqsl-0.0.0-py3-none-any.whl
- Upload date:
- Size: 22.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ede1cfa2aebe5654936d17688eaa88ee3203d457b40b285fc20a5157484a20d |
|
MD5 | 12faa36d989ab2a575be7c3346304dc5 |
|
BLAKE2b-256 | 8d789ce10c3357624410c1872903a900e2ee694fa743ee21075a4294fdad14e6 |