Skip to main content

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

pyqsl-0.0.0.tar.gz (25.5 kB view hashes)

Uploaded Source

Built Distribution

pyqsl-0.0.0-py3-none-any.whl (22.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page