量子过程层析成像中可靠的钻石模估计
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++标记为
##示例入门
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)。