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

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 Cassandra复制因子大于节点数   java J2EE JTA事务回滚不适用于OSE Glassfish 4.0(Build 89)   java spring安全预认证用户登录   org的java类文件。反应流。从RxJava编译示例时未找到Publisher?   java在使用dataFormat作为POJO通过Camel调用Web服务时无法设置SOAP标头   Javafx类的java静态实例   java如何防止一个部件在关闭时覆盖另一个部件的位置   sql server无法从我的java代码连接到数据库   java在JList(Swing)中显示带有的ArrayList   从Java中的CXF服务获取WSAddressing数据   使用资产文件夹进行java简单json解析(本地)   java LDAPException未绑定的无效凭据   JavaJSFspring部署到weblogic   JAVA中字符数组中的特定元素排列?   如果脚本位于不同的目录中,则ant不会使用exec标记运行Javashell脚本