GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - QuEST-Kit/QuEST: A multithreaded, distributed, GPU-accelerated simulator of quantum computers

BranchesTags
Open more actions menu

Latest commit

 

History

1,498 Commits
1,498 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
cmake
cmake
 
 
docs
docs
 
 
examples
examples
 
 
quest
quest
 
 
tests
tests
 
 
utils
utils
 
 
AUTHORS.txt
AUTHORS.txt
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENCE.txt
LICENCE.txt
 
 
README.md
README.md
 
 

Repository files navigation

The QuEST logo

DOI
GitHub release Doc MIT license

The Quantum Exact Simulation Toolkit (QuEST) is a high-performance simulator of quantum statevectors and density matrices. It hybridises multithreading, GPU acceleration and distribution to run lightning fast on laptops, desktops and supercomputers, parallelising over multiple cores, CPUs and GPUs. Behind the scenes, QuEST leverages OpenMP, MPI, CUDA, HIP, Thrust, cuQuantum and GPUDirect for cutting-edge performance on modern multi-GPU clusters, and compatibility with older NVIDIA and AMD GPUs. These deployments can be combined in any combination, or automatically decided at runtime, yet are abstracted behind a single, seamless interface, accessible by both C and C++ and all the major compilers (detailed here).

Languages Languages OS OS OS
Platforms Platforms Platforms Platforms

As of v4.2, QuEST development is led by the EPCC team at the University of Edinburgh, with support and former development by the QTechTheory group at the University of Oxford. QuEST has also received contributions and support from the below organisations. In particular, QuEST v4.0 was made possible through the support of the UK National Quantum Computing centre (NQCC200921) and the UKRI SEEQA project.

NQCC   AMD   NVIDIA   Quantum Motion   University of Edinburgh   University of Oxford  

To learn more:

  • view the documentation
  • visit the website
  • read the whitepaper, which featured in Scientific Report's Top 100 in Physics 🏆

🎉  Introduction

QuEST has a simple interface which is agnostic to whether it's running on CPUs, GPUs or a networked supercomputer.

Qureg qureg = createQureg(30);
initRandomPureState(qureg);

applyHadamard(qureg, 0);
applyControlledRotateX(qureg, 0, 1, angle);
applyFullQuantumFourierTransform(qureg, inverse);

reportQureg(qureg);

qreal prob  = calcProbOfQubitOutcome(qureg, 0, outcome);
qreal expec = calcExpecPauliStr(qureg, getPauliStr("XYZ"));

Yet, it is flexible

mixDepolarising(qureg, targ, prob);
mixKrausMap(qureg, targs, ntargs, krausmap);

applyQubitMeasurement(qureg, targ);
applyMultiQubitProjector(qureg, targs, outcomes, ntargs);

applyControlledPauliGadget(qureg, ctrl, paulistr, angle);
applyMultiStateControlledSwap(qureg, ctrls, states, nctrls, targ1, targ2);

leftapplyCompMatr1(qureg, targ, getInlineCompMatr1( {{1,2i},{3i,4}} ));
leftapplyDiagMatrPower(qureg, targs, ntargs, diagmatr, exponent);

and extremely powerful

setFullStateDiagMatrFromMultiVarFunc(fullmatr, myfunc, ntargsPerVar, nvars);
applyFullStateDiagMatrPower(qureg, fullmatr, exponent);

CompMatr matr = createCompMatr(10);
setCompMatr(matr, ...);
applyCompMatr(qureg, targs, 10, matr);

PauliStrSum observ = createInlinePauliStrSum(R"(
    0.123 XXIXX
    1.23i XYZXZ
    -1-6i IIZII
)");
applyTrotterizedPauliStrSumGadget(qureg, observ, time, order, nreps);

Qureg reduce = calcPartialTrace(qureg, targs, ntargs);
qreal expec1 = calcExpecPauliStrSum(reduce, observ);
qreal expec2 = calcExpecFullStateDiagMatr(qureg, fullmatr);

✅  Features

QuEST supports:

  • ☑️   density matrices for precise simulation of noisy quantum computers
  • ☑️   general unitaries with any number of control, control-states, and target qubits
  • ☑️   general decoherence channels of any dimension
  • ☑️   general observables in the Pauli or diagonal-Z bases
  • ☑️   many many operators, including Pauli gadgets, trotterised time evolutions, and projectors
  • ☑️   many tools to analyse quantum states, such as calculations of probability, fidelity, expectation value, distances and partial traces
  • ☑️   variable precision through qreal and qcomp numerical types which can use single, double or quad precision
  • ☑️   direct access to amplitudes for rapid custom modification of the quantum state
  • ☑️   native compilation on MacOS, Linux and Windows, through Clang, GNU, Intel, and MSVC compilers
  • ☑️   hybridisation of multithreading, GPU-acceleration, distribution and GPU-distribution
  • ☑️   optimisation using NVLink'd GPUs, cuQuantum, and CUDA-aware MPI
  • ☑️   automatic deployment of a Qureg to the optimal hardware at runtime
  • ☑️   hardware probing to determine how many qubits can be simulated at runtime
  • ☑️   bespoke algorithms to optimally simulate a wide variety of esoteric operations

📖  Documentation

Important

QuEST v4's documentation is still under construction!

Visit the docs for guides and tutorials, or the API which is divided into:

  • calculations
  • channels
  • debug
  • decoherence
  • environment
  • initialisations
  • matrices
  • modes
  • operations
  • paulis
  • precision
  • qureg
  • types
  • tests

🚀  Getting started

To rocket right in, download QuEST with git at the terminal

git clone https://github.com/quest-kit/QuEST.git
cd QuEST

We recommend working in a build directory:

mkdir build
cd build

Compile the minimum example using cmake:

cmake .. 
make

then run it with

./min_example

See the docs for enabling acceleration and running the unit tests.


🤝  Team

QuEST's current development team, in no particular order, consists of:

  • Dr Oliver Thomson Brown
  • Dr James Richings
  • Dr Tyson Ray Jones
  • Dr Erich Essmann
  • Vasco Ferreira
  • Prof Simon C. Benjamin

See authors for a list of all of QuEST's past and present contributors.


❤  Acknowledgements

In addition to QuEST's authors, we sincerely thank the following external contributors to QuEST.

  • Amon K. for optimising away Thrust allocations in #783.
  • Ashmit JaiSarita Gupta for adding ADIOS2-based checkpointing in #780.
  • PoJen Wang for adding BMI2 intrinsics in #796.
  • Mukul Kumar for investigating compensated summation in #791.
  • Maurice Jamieson for extending the unit test suite in v4.3.
  • Íñigo Aréjula Aísa for patching a validation error in the user-owned MPI interface.
  • Daniel Expósito Patiño for patching a signature of the v4 C++ API.
  • Diogo Pratas Maia for implementing non-unitary Pauli gadgets (unitaryHACK 2025 #594).
  • Mai Đức Khang for implementing a RAM probe (unitaryHACK 2025 #600).
  • James Richings for patching a v4 overflow bug.
  • Luc Jaulmes for patching v4's CMake installation.
  • Jakub Adamski for optimising distributed communication of max-size messages.
  • Bruno Villasenor Alvarez of AMD for porting the v3 GPU backend to HIP, for compatibility with AMD GPUs.
  • HQS Quantum simulations for prototyping v3 mixDamping.
  • Kshitij Chhabra for patching some v3 validation bugs.
  • Drew Silcock for patching the v3 multithreaded build on MacOS.
  • Zach van Rijn for patching the v3 multithreading code for GCC-9 OpenMP-5 compatibility.
  • SchineCompton for patching the v3 GPU CMake release build.
  • Christopher J. Anders for patching the v3 multithreading (when default off) and GPU builds (revising min cmake).
  • Gleb Struchalin for patching the v3 cmake standalone build.
  • Milos Prokop for serial prototyping of v3's initDiagonalOpFromPauliHamil.

📰  Related projects

  • QuESTlink
    a Mathematica package enabling symbolic circuit manipulation, analytic simulation, visualisation and high performance simulation with remote accelerated hardware.

  • pyQuEST
    a python interface to QuEST, based on Cython, developed by Richard Meister within the QTechTheory group.

  • QuEST.jl
    a Julia interface to QuEST, developed by Jonathan Miller.

  • qoqo-quest
    a Rust interface to QuEST, developed by HQS Quantum Simulations.

  • PyQuEST-cffi
    a python interface to QuEST developed by HQS Quantum Simulations.

  • QASC
    a source-to-source compiler which tranbslates QASM3 to QuEST, developed by Meller and Szeremi at STFC.

About

A multithreaded, distributed, GPU-accelerated simulator of quantum computers

quest.qtechtheory.org/

Resources

Readme
MIT license

Contributing

Contributing
Activity
Custom properties

Stars

501 stars

Watchers

19 watching

Forks

204 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.