Latest version: 1.1.0
Please report errors or feedback to [email protected]
Copy or clone this repository to your machine. E.g. in the desired directory, enter
git clone https://github.com/aniabrown/QuEST.git
at terminal.
In the root directory, compile the example using
cp examples/tutorial_example.c tutorial_example.c
make
then run it with
./demo
The program will print information about your execution environment and some simple operations on a three qubit system. See the tutorial for a better introduction. Additionally, run tests/runTests.sh
to test QuEST runs correctly in your environment.
The Quantum Exact Simulation Toolkit is a high performance simulator of universal quantum circuits. QuEST is written in C, hybridises OpenMP and MPI, and can run on a GPU. Needing only compilation, QuEST is easy to run both on laptops and supercomputers, where it can take advantage of multicore, GPU-accelerated and networked machines to quickly simulate circuits on many qubits.
QuEST has a simple interface, independent of its run environment (on CPUs, GPUs or over networks),
hadamard(qubits, 0);
controlledNot(qubits, 0, 1);
rotateY(qubits, 0, .1);
though is flexible
Vector v;
v.x = 1; v.y = 0; v.z = 0;
rotateAroundAxis(qubits, 0, 3.14/2, v);
and powerful
// sqrt(X) with pi/4 global phase
ComplexMatrix2 u;
u.r0c0 = (Complex) {.real=.5, .imag= .5};
u.r0c1 = (Complex) {.real=.5, .imag=-.5};
u.r1c0 = (Complex) {.real=.5, .imag=-.5};
u.r1c1 = (Complex) {.real=.5, .imag= .5};
unitary(qubits, 0, u);
int[] controls = {1, 2, 3, 4, 5};
multiControlledUnitary(qureg, controls, 5, 0, u);
QuEST is contained entirely in the files in the QuEST/
folder. To use QuEST, copy this folder to your computer and include QuEST.h
in your C
or C++
code, and compile using the makefile. We include submission scripts for using QuEST with SLURM and PBS. See the tutorial for an introduction.
Explicit instructions to download and run QuEST from the command line can be found at quest.qtechtheory.org/download.
View the API here, and check compatible compiler versions here.
For developers: To recreate the full documentation after making changes to the code, run doxygen doxyconf in the root directory. This will generate documentation in Doxygen_doc/html, and can be accessed through index.html in that folder.
QuEST uses the mt19937ar Mersenne Twister algorithm for random number generation, under the BSD licence.
QuEST is released under a MIT Licence