Skip to main content

Pasqal interface for circuit-based quantum computing SDKs

Project description

Perceptrain logo

Perceptrain is a Python package that provides a simple interface to execute distributed machine learning training. It supports customization, gradient-based, gradient-free optimizations and various experiment tracking methods.

**For more detailed information, check out the documentation.

**For any questions or comments, feel free to start a discussion. **

Linting Tests Documentation Pypi License Coverage

Feature highlights

Perceptrain architecture

  • Training models made simple with Trainer and Train Configurations.

  • Support for gradient based and gradient free optimization.

  • Accelerator supported distributed training made simple across multi node/multi gpu setups.

  • Extensive callbacks, along with support for mlflow and tensorboard tracking.

Installation guide

perceptrain is available on PyPI and can be installed using pip as follows:

pip install perceptrain

The default, pre-installed backend for perceptrain is PyQTorch, a differentiable state vector simulator. It is possible to install additional following extras:

  • mlflow: Foe experiment tracking.

To install individual extras, use the following syntax (IMPORTANT Make sure to use quotes):

pip install "perceptrain[mlflow]"

To install all available extras, simply do:

pip install "perceptrain[all]"

Contributing

Before making a contribution, please review our code of conduct.

  • Submitting Issues: To submit bug reports or feature requests, please use our issue tracker.
  • Developing in perceptrain: To learn more about how to develop within perceptrain, please refer to contributing guidelines.

Setting up perceptrain in development mode

We recommend to use the hatch environment manager to install perceptrain from source:

python -m pip install hatch

# get into a shell with all the dependencies
python -m hatch shell

# run a command within the virtual environment with all the dependencies
python -m hatch run python my_script.py

WARNING hatch will not combine nicely with other environment managers such as Conda. If you still want to use Conda, install it from source using pip:

# within the Conda environment
python -m pip install -e .

Users also report problems running Hatch on Windows, we suggest using WSL2.

Citation

If you use perceptrain for a publication, we kindly ask you to cite our work using the following BibTex entry:

@article{perceptrain2024pasqal,
  title = {perceptrain},
  author={Manu Lahariya},
  year = {2025}
}

License

Perceptrain is a free and open source software package, released under the Apache License, Version 2.0.

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

perceptrain-0.0.3.tar.gz (59.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

perceptrain-0.0.3-py3-none-any.whl (65.4 kB view details)

Uploaded Python 3

File details

Details for the file perceptrain-0.0.3.tar.gz.

File metadata

  • Download URL: perceptrain-0.0.3.tar.gz
  • Upload date:
  • Size: 59.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for perceptrain-0.0.3.tar.gz
Algorithm Hash digest
SHA256 4fbbd02a0cfc5f086c78140c72c8dffa1051feb992c02a79fa57fd4ead075d3a
MD5 bba72510803e2ab348fe0aafa90b7fce
BLAKE2b-256 317eb4d16cfc5de57945b94f16600e83c97285dc989977f2114c95ce37e73e29

See more details on using hashes here.

Provenance

The following attestation bundles were made for perceptrain-0.0.3.tar.gz:

Publisher: publish.yml on pasqal-io/perceptrain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file perceptrain-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: perceptrain-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 65.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for perceptrain-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5899f0f9bf53b7daefab7fa57fdffe894b338bfe0dbc903060d784301304cb5f
MD5 ce98d5d1723613f439e8866a7684cd42
BLAKE2b-256 5b163b1ce32cc2f666f4d7b13ea3a0e59d09075675eb4f53cb65f12640e5e9d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for perceptrain-0.0.3-py3-none-any.whl:

Publisher: publish.yml on pasqal-io/perceptrain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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