GithubHelp home page GithubHelp logo

silky / qcor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qir-alliance/qcor

0.0 0.0 0.0 24.82 MB

C++ compiler for heterogeneous quantum-classical computing built on Clang and XACC

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

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

CMake 3.71% C++ 68.15% Dockerfile 0.28% Python 6.97% Shell 0.10% ANTLR 1.62% OpenQASM 19.18%

qcor's Introduction

qcor

master
pipeline status

QCOR

QCOR is a C++ language extension and associated compiler implementation for hybrid quantum-classical programming.

Documentation

Install

To install qcor run the following command from your terminal

/bin/bash -c "$(curl -fsSL https://aide-qc.github.io/deploy/install.sh)"

For more details, see here.

Nightly docker images are also available that serve up a Theia IDE on port 3000. To use this image, run

docker run --security-opt seccomp=unconfined --init -it -p 3000:3000 qcor/qcor

and navigate to https://localhost:3000 in your browser to open the IDE and get started with QCOR.

For any method of installation, a good way to test your install is to copy and paste the following into your terminal

printf "__qpu__ void f(qreg q) {
  H(q[0]);
  Measure(q[0]);
}
int main() {
  auto q = qalloc(1);
  f(q);
  q.print();
}  " | qcor -qpu qpp -shots 1024 -o test -x c++ -

and then run

./test

Cite QCOR

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

@ARTICLE{qcor,
       author = {{Nguyen}, Thien and {Santana}, Anthony and {Kharazi}, Tyler and
         {Claudino}, Daniel and {Finkel}, Hal and {McCaskey}, Alexander},
        title = "{Extending C++ for Heterogeneous Quantum-Classical Computing}",
      journal = {arXiv e-prints},
     keywords = {Quantum Physics, Computer Science - Mathematical Software},
         year = 2020,
        month = oct,
          eid = {arXiv:2010.03935},
        pages = {arXiv:2010.03935},
archivePrefix = {arXiv},
       eprint = {2010.03935},
 primaryClass = {quant-ph},
       adsurl = {https://ui.adsabs.harvard.edu/abs/2020arXiv201003935N},
      adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

qcor's People

Contributors

1tnguyen avatar danclaudino avatar kharazit avatar spowers avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.