Skip to main content

cuQuantum backend for QuTiP

Project description

qutip-cuquantum

Provide cuQuantum's cuDensityMat as a backend for QuTiP.

This backend is specifically designed for simulating large, composite quantum systems by performing tensor network contractions on the GPU.

Installation

qutip-cuquantum is available on pypi.

pip install -U qutip>=5.2.1
pip install qutip-cuquantum

It require cuquantum to be installed at runtime. If you have cuda already installed, you can install dependencies with:

pip install qutip-cuquantum[cuda11]

or

pip install qutip-cuquantum[cuda12]

If it does not work, you may need to install cuQuantum yourself, see nvidia's documentation for installation instruction.

Usage

In simple case, simply calling set_as_default before a qutip script should be sufficient to use the backend in common solver:

import qutip_cuquantum
from cuquantum.densitymat import WorkStream

qutip_cuquantum.set_as_default(WorkStream())

It can also be used as a context:

with CuQuantumBackend(ctx):
    ...

qutip-cuquantum work well to speed-up large simulation using mesolve or sesolve. However this backend is not compatible with advanced qutip solvers (brmesolve, HEOM) and other various feature.

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

qutip_cuquantum-0.3.1.tar.gz (27.9 kB view details)

Uploaded Source

Built Distribution

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

qutip_cuquantum-0.3.1-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file qutip_cuquantum-0.3.1.tar.gz.

File metadata

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

File hashes

Hashes for qutip_cuquantum-0.3.1.tar.gz
Algorithm Hash digest
SHA256 d17aee7e5812f98a5da4a30ff8c39c16187a2842e7f4bf1bec068519d1c71e56
MD5 0180700b2fb5d50855922ab8df08aadd
BLAKE2b-256 67501a5a119410fc54ddd4f6c94f72a831657a4297d36f9c5f83415cb088a1fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for qutip_cuquantum-0.3.1.tar.gz:

Publisher: build.yml on qutip/qutip-cuquantum

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

File details

Details for the file qutip_cuquantum-0.3.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for qutip_cuquantum-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b5cad1a5127b69a2c381ae1749dafdcf7e916f2af8c7156b1b3d69e806dd7d7b
MD5 cc4c9031a3601b2a6b1f37b065efbd27
BLAKE2b-256 16afa28caded229f6e97c0095966e2f419c71fb0f9c7408142140df7aece1f99

See more details on using hashes here.

Provenance

The following attestation bundles were made for qutip_cuquantum-0.3.1-py3-none-any.whl:

Publisher: build.yml on qutip/qutip-cuquantum

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