kharazity / xacc

XACC - eXtreme-scale Accelerator programming framework

Home Page:https://xacc.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Branch Status
master pipeline status
xacc-devel pipeline status

alt text

Language and Hardware Independent Quantum Programming Framework

XACC is an extensible compilation framework for hybrid quantum-classical computing architectures. It provides extensible language frontend and hardware backend compilation components glued together via a novel quantum intermediate representation. XACC currently supports quantum-classical programming and enables the execution of quantum kernels on IBM, Rigetti, and D-Wave QPUs, as well as a number of quantum computer simulators.

Documentation

Build from Source

Full installation details can be followed here.

Ensure that you have installed CMake 3.12+, a C++14 compliant compiler (GCC 6+, Clang 3.4+), and CURL development headers and libraries with OpenSSL support (see prerequisites).

It is also recommended (though optional) that you install BLAS and LAPACK development libraries (for various simulators), Python 3 development headers (for the Python API), and Libunwind (for stack trace printing).

To enable XACC Python support, ensure that python3 is set to your desired version of Python 3. CMake will find the corresponding development headers. Ensure that when you try to run XACC-enabled Python scripts you are using the same python3 executable that was set during your build.

On Mac OS X, we recommend our users install GCC 8 via Homebrew instead of relying on XCode command line tools installation and the default Apple Clang compilers. See here for more details on this.

Clone the repository recursively, configure with cmake and build with make

$ git clone https://github.com/eclipse/xacc
$ cd xacc && mkdir build && cd build
[default cmake call]
$ cmake ..
[with tests and examples]
$ cmake .. -DXACC_BUILD_EXAMPLES=TRUE -DXACC_BUILD_TESTS=TRUE
[now build xacc]
$ make install
[for a speedier build on linux]
$ make -j$(nproc --all) install
[and on mac os x]
$ make -j$(sysctl -n hw.physicalcpu) install
[if built with tests, run them]
$ ctest --output-on-failure

See full documentation for all CMake optional arguments.

Your installation will be in $HOME/.xacc. If you built with the Python API, be sure to update your PYTHONPATH environment variable to point to the installation:

$ export PYTHONPATH=$PYTHONPATH:$HOME/.xacc

You will probably want the XACC default simulator, TNQVM. To install, run the following:

$ git clone https://github.com/ornl-qci/tnqvm
$ cd tnqvm && mkdir build && cd build
$ cmake .. -DXACC_DIR=~/.xacc
$ make install

Questions, Bug Reporting, and Issue Tracking

Questions, bug reporting and issue tracking are provided by GitHub. Please report all bugs by creating a new issue with the bug tag. You can ask questions by creating a new issue with the question tag.

License

XACC is dual licensed - Eclipse Public License and Eclipse Distribution License.

Cite XACC

If you use XACC in your research, please use the following citation

@ARTICLE{xacc2019,
       author = {{McCaskey}, Alexander J. and {Lyakh}, Dmitry I. and
         {Dumitrescu}, Eugene F. and {Powers}, Sarah S. and {Humble}, Travis S.},
        title = "{XACC: A System-Level Software Infrastructure for Heterogeneous Quantum-Classical Computing}",
      journal = {arXiv e-prints},
     keywords = {Quantum Physics, Computer Science - Programming Languages},
         year = "2019",
        month = "Nov",
          eid = {arXiv:1911.02452},
        pages = {arXiv:1911.02452},
archivePrefix = {arXiv},
       eprint = {1911.02452},
 primaryClass = {quant-ph},
       adsurl = {https://ui.adsabs.harvard.edu/abs/2019arXiv191102452M},
      adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

About

XACC - eXtreme-scale Accelerator programming framework

https://xacc.readthedocs.io

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C++ 97.8%Language:CMake 0.9%Language:Python 0.7%Language:C 0.4%Language:ANTLR 0.1%Language:Makefile 0.1%Language:Dockerfile 0.0%Language:Shell 0.0%Language:Verilog 0.0%Language:Vim Script 0.0%Language:Objective-C 0.0%