Overview¶
Introduction¶
cuQuantum Python aims to bring the full functionalities of NVIDIA cuQuantum SDK to Python. To do so, we adopt a two-layer approach:
Provide 1:1 Python wrappers of the corresponding C APIs in cuQuantum, including both cuStateVec, cuTensorNet and cuDensityMat.
Provide high-level, pythonic APIs for easier integration with Python applications. The pythonic APIs can be further categorized into two different groups focusing on different quantum domain applications:
Quantum simulation based on exact tensor network contraction and approximate tensor network ansatz.
Analog quantum dynamics solvers based on the quantum many-body operators and density-matrix (or state-vector) formalism.
In the following sections, we will introduce each component and show examples for the intended usage. Python sample codes (such as those shown below) can be found in the NVIDIA/cuQuantum repository.
Compatibility policy¶
cuQuantum Python is no different from any Python package, in that we would not succeed without depending on, collaborating with, and evolving alongside the Python community. Given these considerations, we strive to meet the following commitments:
For the low-level Python bindings, we support the latest cuQuantum SDK.
For the high-level pythonic APIs, we keep the APIs backward-compatible to the maximum extent possible. When a breaking change must happen, we raise a run-time warning in the release version YY.MM, also notify users in the release notes, and break it in the next release (after YY.MM). The only exception is the experimental APIs (e.g, the
cuquantum.cutensornet.experimental
module andcuquantum.Network.gradients()
method) where all APIs are subject to change between releases without prior notice.We comply with NEP-29 and support a community-defined set of core dependencies (CPython, NumPy, etc).
Citing cuQuantum¶
Bayraktar et al., “cuQuantum SDK: A High-Performance Library for Accelerating Quantum Science,” 2023 IEEE International Conference on Quantum Computing and Engineering (QCE), Bellevue, WA, USA, 2023, pp. 1050-1061, doi: 10.1109/QCE57702.2023.00119.