semvec/pypi-packages huggingface dataset:
jdbs 1.0.1
jdbs is a lightweight Python package for managing data with JSON files, offering essential database functionalities and encryption features for added security.

The `jdbs` Python package provides a versatile and user-friendly solution for managing data with JSON files, offering a lightweight yet powerful alternative to traditional relational database management systems. Designed with simplicity and flexibility in mind, `jdbs` enables developers to handle various database operations seamlessly within their Python applications, catering to a wide range of use cases across different industries and project scopes.

At the core of `jdbs` is its ability to facilitate the creation, manipulation, and querying of data stored in JSON format, offering an intuitive API that abstracts away the complexities of interacting with raw JSON structures. Developers can effortlessly define tables, insert and retrieve data, and perform updates or deletions, all while leveraging the familiar syntax and semantics of Python.

One of the standout features of `jdbs` is its support for encryption, providing an additional layer of security for sensitive data stored within the database. By integrating encryption capabilities, `jdbs` empowers users to safeguard their information against unauthorized access, ensuring compliance with data protection regulations and enhancing overall data privacy.

With `jdbs`, developers can streamline their database workflows and accelerate application development, thanks to its lightweight nature and minimal dependencies. Whether building prototypes, developing small to medium-sized projects, or managing data-intensive applications, `jdbs` offers a robust foundation for efficiently storing and accessing data, all while maintaining the flexibility and scalability required to adapt to evolving project requirements.

In summary, `jdbs` represents a versatile and accessible solution for database management in Python, combining the simplicity of JSON with the power of a full-featured database system. With its rich set of features, intuitive interface, and focus on security and usability, `jdbs` empowers developers to unleash the full potential of their applications while ensuring the integrity and confidentiality of their data.

For more information and to contribute, visit the [GitHub repository](https://github.com/rakibmia7254/jdbs).
jTWA 0.0.4
Truncated Wigner on GPUs based on JAX.

# jTWA
[![Documentation Status](https://readthedocs.org/projects/jtwa/badge/?version=latest)](https://jtwa.readthedocs.io/en/latest/?badge=latest) [![codecov](https://codecov.io/github/RehMoritz/jTWA/graph/badge.svg?token=TY92JAI1V9)](https://codecov.io/github/RehMoritz/jTWA)

jTWA implements the semiclassical [Truncated Wigner Approximation (TWA)](https://www.sciencedirect.com/science/article/pii/S0003491610000382?via%3Dihub) in python, relying on Google's jax library.
This allows to write easily understandable python code without compromising on speed, as all calculations are compiled and executed on GPUs, if available.

jTWA is designed to work with bosonic systems with potentially different numbers of internal degrees of freedom.
However, basic functionalities for spin-1 systems are already available in ``jTWA.spin1``.

## Documentation & Installation
All code is documented on [readthedocs](https://jtwa.readthedocs.io/en/latest/#).
Working with jTWA is designed to be straightforward. For the installation procedure, have a look at the [corresponding section](https://jtwa.readthedocs.io/en/latest/docs/install.html) in the documentation.

## Getting Started: A Minimal Example
A minimal working example of the codebase can be found in the [``main.py``](https://github.com/RehMoritz/jTWA/blob/main/main.py) located in the root of the directory.
To execute, run `python main.py config.json` as described in the [quickstart section](https://jtwa.readthedocs.io/en/latest/docs/quickstart.html) of the documentation.
To demonstrate the elementary features, here are the contents of the [``main.py``](https://github.com/RehMoritz/jTWA/blob/main/main.py):

```python
import jax
import sys
import json
import matplotlib.pyplot as plt

jax.config.update("jax_enable_x64", True)

import jTWA


if __name__ == "__main__":
    configuration_file = sys.argv[1]

    with open(configuration_file) as f:
        cfg = json.load(f)

    spin_operators = jTWA.spin1.observables.get_spin_operators(cfg)
    samples = jTWA.spin1.initState.getPolarState(cfg)

    cfg = jTWA.spin1.hamiltonian.update_cfg(cfg)
    hamiltonian = jTWA.spin1.hamiltonian.hamiltonian

    obs = jTWA.integrate.obtain_evolution(samples, hamiltonian, spin_operators, cfg)
    jTWA.util.write_data(obs, cfg)

    obs = jTWA.util.read_data(cfg)
    jTWA.visualization.create_visuals(obs, cfg)
    plt.show()
```

## Issues & Requests

If you encounter any issues, please open an [issue](https://github.com/RehMoritz/jTWA/issues) or submit a [pull request](https://github.com/RehMoritz/jTWA/pulls).

## License

[Apache License 2.0](https://github.com/RehMoritz/jTWA/blob/main/LICENSE)