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.0.tar.gz (27.6 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.0-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qutip_cuquantum-0.3.0.tar.gz
  • Upload date:
  • Size: 27.6 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.0.tar.gz
Algorithm Hash digest
SHA256 0163cdc9b98296ab21a39a1e7a40a758fbc452e65e349fc7624bab254284fc9c
MD5 f3cbb35e13a06978945a034c323277d9
BLAKE2b-256 9cd710b2d7156ce615b9d2770666c365ecbe6a942775404bafc7351a82cc207b

See more details on using hashes here.

Provenance

The following attestation bundles were made for qutip_cuquantum-0.3.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: qutip_cuquantum-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 20.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52f346ddaa91920da40f80f1744264b5d6ef53360b5e043903bd73724b6a7c96
MD5 898425f4f669e0a2a5fc2b30b5969321
BLAKE2b-256 f31e6afe34899e9588ec420cc55299f6c9dae4070531079b1fef07699eb3e8c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for qutip_cuquantum-0.3.0-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