前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >cuQuantum installation

cuQuantum installation

原创
作者头像
vanguard
发布2022-06-04 19:48:52
4740
发布2022-06-04 19:48:52
举报
文章被收录于专栏:vanguard

https://docs.nvidia.com/cuda/cuquantum

NVIDIA cuQuantum SDK is a high-performance library for quantum information science and beyond. Currently its primary target is quantum circuit simulations and it consists of two major components:

  • cuStateVec: a high-performance library for state vector computations
  • cuTensorNet: a high-performance library for tensor network computations

In addition to C APIs, cuQuantum also provides Python APIs via cuQuantum Python.

NVIDIA cuQuantum Appliance offers a containerized solution, including a multi-GPU backend for Google’s qsim state vector simulator.

Download: https://developer.nvidia.com/cuQuantum-downloads

Conda installation:

代码语言:shell
复制
conda install -c conda-forge cuquantum-python
conda install -c conda-forge/label/broken cuquantum-python

Hello world:

代码语言:python
代码运行次数:0
复制
from cuquantum import contract
from numpy.random import rand

a = rand(96,64,64,96)
b = rand(96,64,64)
c = rand(64,96,64)

r = contract("mhkn,ukh,xuy->mxny", a, b, c)
print(r.shape)
# (96, 64, 96, 64)

OKAY

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
GPU 云服务器
GPU 云服务器(Cloud GPU Service,GPU)是提供 GPU 算力的弹性计算服务,具有超强的并行计算能力,作为 IaaS 层的尖兵利器,服务于生成式AI,自动驾驶,深度学习训练、科学计算、图形图像处理、视频编解码等场景。腾讯云随时提供触手可得的算力,有效缓解您的计算压力,提升业务效率与竞争力。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档