Skip to content

melmatt7/cqed_photon_statistics

Repository files navigation

cqed_sims

https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336

cavity quantum electrodynamic system simulations

Installation

This package fully supports Windows, along with Linux and macOS, but Python is typically installed differently on Windows. Windows users typically access Python through the py launcher rather than a python3 link in their PATH. Within a virtual environment, or when using conda, all platforms operate the same and use a python link to access the Python version used in that virtual environment.

Requirements

Python 3.6+.

Dependencies

Dependencies are defined in:

  • requirements.in
  • requirements.txt
  • dev-requirements.in
  • dev-requirements.txt

Virtual Environments

It is best practice during development to create an isolated Python virtual environment using the venv standard library module. This will keep dependant Python packages from interfering with other Python projects on your system.

On *Nix:

$ python3 -m venv venv
$ source venv/bin/activate

On Windows cmd:

> py -m venv venv
> venv\Scripts\activate.bat

Once activated, it is good practice to update core packaging tools (pip, setuptools, and wheel) to the latest versions.

(venv) $ python -m pip install --upgrade pip setuptools wheel

Locking Dependencies

This project uses pip-tools to lock project dependencies and create reproducible virtual environments.

Note: Library projects should not lock their requirements.txt. Since python-blueprint also has a CLI application, this end-user application example is used to demonstrate how to lock application dependencies.

To update dependencies:

(venv) $ python -m pip install pip-tools
(venv) $ python -m piptools compile --upgrade requirements.in
(venv) $ python -m piptools compile --upgrade dev-requirements.in

After upgrading dependencies, run the unit tests as described in the `Unit Testing`_ section to ensure that none of the updated packages caused incompatibilities in the current project.

Syncing Virtual Environments

To cleanly install your dependencies into your virtual environment:

(venv) $ python -m piptools sync requirements.txt dev-requirements.txt

About

Quantum Cavity Simulation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published