You are using the QCOR web-IDE for heterogeneous quantum-classical computing. <br>
This project provides a pre-built image containing the entire `qcor` compiler stack, including the [`qcor`](https://github.com/ornl-qci/qcor)<br>
C++ compiler and Python quantum JIT environment, the [XACC](https://github.com/eclipse/xacc) framework and high-level Python API, <br>
and the OpenQASM 3 MLIR compiler.
For much more on the `qcor` platform, check out [docs.aide-qc.org](http://docs.aide-qc.org).
## Getting Started
In the file browser to the left you'll notice a number of example directories. We have provided illustrative examples in C++, Python, <br>
and OpenQASM 3 (via the MLIR compiler). Feel free to try them out! To start, open a Terminal with `CTRL`+<code>\`</code> (single-quote). <br>
From the terminal, you have the `qcor` compiler available in your path as well as the Python bindings for `qcor` and XACC in your `PYTHONPATH`. <br>
Open up the simple `bell.py`, look at it, and run it with
```bash
$ code-server py-examples/bell.py (or just double-click in file browser)
$ python3 py-examples/bell.py -shots 100
{
"AcceleratorBuffer": {
"name": "qrg_ASjHA",
"size": 2,
"Information": {},
"Measurements": {
"00": 44,
"11": 56
}
}
}
```
To run on IBM or any other physical backend, check out how to provide your [API credentials](https://aide-qc.github.io/deploy/users/remote_qpu_creds/).
To run a C++ example like [Phase Estimation](https://github.com/ORNL-QCI/qcor/blob/master/examples/qpe/qpe_callable_oracle.cpp), run the following