量子过程层析成像中可靠的钻石模估计

QPtomographer的Python项目详细描述


#可靠的量子过程层析成像

啊![qptomographer](qptomographer.svg)

根据钻石范数导出量子过程的量子误差条 参考量子通道。

理论:见arxiv:xxxx.xxxxx

##安装

请参阅此处的详细安装说明: https://QPtomographer.readthedocs.io/en/latest/install

基本上:

  • 您需要下载并编译[scs≥2.0](https://github.com/cvxgrp/scs);
  • 你需要有tomographer包 已安装[如此处所述][摄影仪安装];
  • 您可以通过pip安装qptomographer

[摄影记者]:https://tomographer.github.io/tomographer/get-started/#python-version

以下是一些常见设置的快速简单步骤:

###ubuntu/linux

下载并编译[scs≥2.0](https://github.com/cvxgrp/scs):

> sudo apt-get install liblapack-dev > cd $HOME/Downloads > curl -L https://github.com/cvxgrp/scs/archive/v2.0.2.tar.gz -o scs-2.0.2.tar.gz > tar xvfz scs-2.0.2.tar.gz && cd scs-2.0.2 > make CTRLC=0 USE_OPENMP=0 USE_LAPACK=1

下载并编译tomographer≥5.4和其他先决条件:

# If you are using pip (or if you’re not sure): > pip install numpy scipy pybind11 qutip > pip install tomographer

# If you are using anacoda/conda: > conda install numpy scipy gcc libgcc > conda install -c conda-forge pybind11 qutip > pip install tomographer

通过pip安装QPtomographer:

> SCS_ROOT=$HOME/Downloads/scs-2.0.2 pip install QPtomographer

###苹果Mac OS X

下载并编译[scs≥2.0](https://github.com/cvxgrp/scs):

> cd $HOME/Downloads > curl -L https://github.com/cvxgrp/scs/archive/v2.0.2.tar.gz -o scs-2.0.2.tar.gz > tar xvfz scs-2.0.2.tar.gz && cd scs-2.0.2 > make CTRLC=0 USE_OPENMP=0 USE_LAPACK=1 BLASLDFLAGS=”-framework Accelerate”

下载并编译tomographer和其他先决条件:

# If you are using pip (or if you’re not sure): > pip install numpy pybind11 qutip > pip install tomographer

# If you are using anacoda/conda: > conda install numpy gcc libgcc > conda install -c conda-forge pybind11 qutip > pip install tomographer

通过pip安装QPtomographer:

> SCS_ROOT=$HOME/Downloads/scs-2.0.2 pip install QPtomographer

###或者,您可以从源代码构建并安装qptomographer。

安装完所有必备组件后,您只需运行

> SCS_ROOT=$HOME/Downloads/scs python setup.py install

指定使用环境变量编译SCS的路径 scs_根。或者,要以管理员身份安装,

> sudo -H SCS_ROOT=$HOME/Downloads/scs python setup.py install

好消息是,QPtomographer的设置脚本自动获取所有 C++标记为 TooRoope本身设置,并使用相同的标志。因此,如果 tomographer已编译,qptomographer也应该编译(只要确保 使用相同的编译器)。

##示例入门

examples/文件夹包含使用qptomographer的示例。

这些示例作为[jupyter笔记本][jpynb](*.ipynb文件)提供。 Jupyter是一个便利的环境,它的灵感来自Mathematica,动力来自 python,用于交互运行代码。

要运行一个示例,请首先[install jupyter locally][jpyinst]然后,在 终端,在qptomographer中输入当前的examples/目录并启动 朱庇特:

> cd QPtomographer/examples > jupyter notebook

这将使用jupyter会话打开浏览器单击目录 对应于要运行的示例,然后打开对应的 笔记本文件(run.ipynb文件)

[jpynb]:https://jupyter.org/ [jpyinst]:http://jupyter.readthedocs.io/en/latest/install.html

##完整文档和API参考

关于qptomographer的功能、如何调用代码的完整文档,以及 你一直想知道的关于QPtomographer但不敢 询问,请访问:

https://QPtomographer.readthedocs.io/en/latest/install

##许可证

qptomographer在麻省理工学院的许可下发布(参见license.txt)。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java提高机器学习Rest服务性能   java反转字符的字符串顺序,并使用构造函数将其放入LinkedList   继承为什么Java不支持在方法签名中添加“throws”?   执行DDL alter table if exists任务时发生java错误。城市   java在eclipse中使用CREATETXT并打包在jar中   java AES256与3DES 256密钥检测   具有两个相同类型字段的java JPA实体   java Webapp日志记录设置被忽略   java KeyEventDispatcher可以在一个应用程序中工作,但不能在另一个应用程序中工作   带有Swing和OpenJDK的java PinchZoom   未涉及java AspectJ注释切入点(对于任何注释类型)   java如何在FuseBAI中获取日志文件详细信息   java在Linux上将wstring转换为jstring