Pasqal interface for training machine learning models.
Project description
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. **
Feature highlights
-
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: For 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file perceptrain-0.0.4.tar.gz.
File metadata
- Download URL: perceptrain-0.0.4.tar.gz
- Upload date:
- Size: 60.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd85786cae5ae71fd3b919a6047af5effa169f0b5b2f1943f5534bd7d948d220
|
|
| MD5 |
4c13ebec6958c085a2c33704e8a23301
|
|
| BLAKE2b-256 |
2ab5d2a63c9465d31d040054fa8b210d57dbfd08e4bc97da42195a7733b1a2b7
|
Provenance
The following attestation bundles were made for perceptrain-0.0.4.tar.gz:
Publisher:
publish.yml on pasqal-io/perceptrain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
perceptrain-0.0.4.tar.gz -
Subject digest:
bd85786cae5ae71fd3b919a6047af5effa169f0b5b2f1943f5534bd7d948d220 - Sigstore transparency entry: 204182515
- Sigstore integration time:
-
Permalink:
pasqal-io/perceptrain@ed813e0aede3067f10341c8a78495ea1135e042b -
Branch / Tag:
refs/tags/v0.0.4 - Owner: https://github.com/pasqal-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ed813e0aede3067f10341c8a78495ea1135e042b -
Trigger Event:
release
-
Statement type:
File details
Details for the file perceptrain-0.0.4-py3-none-any.whl.
File metadata
- Download URL: perceptrain-0.0.4-py3-none-any.whl
- Upload date:
- Size: 67.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e397e21fbdb6737d5fcc23332dc7f2b608667c24864303dca863b111df862053
|
|
| MD5 |
d91169410ca4b5a31771a77a4915cc63
|
|
| BLAKE2b-256 |
8429e514928d409f0a61e37b4e52dcbab1c48d46f0352d3d4712fe52774ee671
|
Provenance
The following attestation bundles were made for perceptrain-0.0.4-py3-none-any.whl:
Publisher:
publish.yml on pasqal-io/perceptrain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
perceptrain-0.0.4-py3-none-any.whl -
Subject digest:
e397e21fbdb6737d5fcc23332dc7f2b608667c24864303dca863b111df862053 - Sigstore transparency entry: 204182517
- Sigstore integration time:
-
Permalink:
pasqal-io/perceptrain@ed813e0aede3067f10341c8a78495ea1135e042b -
Branch / Tag:
refs/tags/v0.0.4 - Owner: https://github.com/pasqal-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ed813e0aede3067f10341c8a78495ea1135e042b -
Trigger Event:
release
-
Statement type: