Skip to main content

feedback-grape

feedback-grape is a high-performance Python package for simulating and optimizing quantum systems with feedback. It builds on the GRAPE (Gradient Ascent Pulse Engineering) method and introduces a new approach that integrates feedback in a natural, differentiable, and efficient way.


🚀 Features

  • ✅ Vectorized, GPU-enabled, and differentiable simulations using JAX
  • ✅ Efficient quantum optimal control via GRAPE
  • ✅ Feedback support with the newly developed feedbackGRAPE technique
  • ✅ Think of it as a parallelized, feedback-enabled, high-performance alternative to QuTiP

📦 Installation

For Users

Install the latest version via pip:

pip install feedback-grape

To enable GPU acceleration (CUDA 12):

pip install feedback-grape[cuda12]

For Developers

Install development dependencies:

pip install -U -r requirements.txt

To include tools for testing, linting, and formatting:

pip install -U -r requirements_dev.txt

To run notebooks with proper rendering:

conda install conda-forge::pandoc

To use GPU support with JAX:

pip install -U -r requirements_gpu.txt

📚 Documentation

cd docs  
make html

Open docs/build/html/index.html using a Live Server or your browser


✅ Testing & Code Quality

Run Tests

pytest

Generates test results and a coverage report.

tox

This tests the code across multiple python environments and ensures consistency.

Type Checking

mypy feedback_grape

Linting & Formatting

  • Lint code:
ruff check
  • Auto-format:
ruff format

📖 References

The feedbackGRAPE method was introduced in:

It extends traditional GRAPE by incorporating feedback control, which is crucial for applications like quantum state stabilization and quantum error correction. It is designed to work seamlessly with neural networks and automatic differentiation frameworks.

A full application to quantum error correction with the GKP code is shown in:


🧠 Related Repositories

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

feedback_grape-1.1.0.tar.gz (42.3 kB view details)

Uploaded Source

Built Distribution

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

feedback_grape-1.1.0-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

File details

Details for the file feedback_grape-1.1.0.tar.gz.

File metadata

  • Download URL: feedback_grape-1.1.0.tar.gz
  • Upload date:
  • Size: 42.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for feedback_grape-1.1.0.tar.gz
Algorithm Hash digest
SHA256 63f0351c73bf20d064dd92e6671ffd47945c7a5e8104ad8950d1568f4bff7287
MD5 7d233e91bd7b203acfa5509bbd4a7c40
BLAKE2b-256 55538fc89641308f624c46d3a964cde5502d63b16fdaab0e4640fe42957c4c85

See more details on using hashes here.

Provenance

The following attestation bundles were made for feedback_grape-1.1.0.tar.gz:

Publisher: publish_to_pypi.yml on YousefElbrolosy/feedback-grape

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

File details

Details for the file feedback_grape-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: feedback_grape-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 33.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for feedback_grape-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7eafb9c792b972046988166b10e3c98034d4ba5b36bbb763590598cc3c0240a1
MD5 f3824ecb9dec88efb920d9fea206d260
BLAKE2b-256 d87913e099fa05c32a5ebe43ccda8ebde8cea2fe108fd074d6713f0bf7a40bca

See more details on using hashes here.

Provenance

The following attestation bundles were made for feedback_grape-1.1.0-py3-none-any.whl:

Publisher: publish_to_pypi.yml on YousefElbrolosy/feedback-grape

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

Release history Release notifications | RSS feed

1.1.1

2 files

This release

1.1.0 This release

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.0.3

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page