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 — Releases · QuEST-Kit/QuEST

Releases · QuEST-Kit/QuEST

v4.3.0

v4.3.0 Latest
Latest
@otbrown otbrown released this 24 Sep 15:18
v4.3.0
a612895
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Overview

This release accelerates simulation of (especially) few-qubit Quregs, adds control and performance tuning utilities for MPI and GPU superusers, adds randomised Trotter simulation, and reduces the likelihood of QuEST symbols colliding with other software stacks.

Optimisations

  • QuEST's simulation of few-qubit Qureg has been accelerated, by reducing memory transfer overheads (between function stacks, and between CPU and GPU memory), and through optional BMI2 intrinsics.
  • QuEST's CPU and multithreaded backend has been accelerated (at all scales) on specific platforms / compilers, by switching to custom complex arithmetic.
  • QuEST's detection of CUDA-aware MPI has been expanded to MPICH CRAY systems, greatly accelerating multi-GPU simulation.

New features

  • Added experimental initCustomMpiCommQuESTEnv() and initCustomMpiCommQuESTEnv() functions which permit users to retain control of MPI during QuEST simulation, and dedicate only a sub-communicator (e.g. only some MPI processes) to QuEST. Users can now also disable QuEST distribution through initCustomQuESTEnv() while still themselves using MPI, even when QuEST was compiled with MPI.
  • Added an experimental setQuESTNumGpuThreadsPerBlock() function to override QuEST's GPU parallelisation granularity at runtime, permitting simple performance tuning. This accompanies a getter (get...), an environment variable QUEST_DEFAULT_NUM_GPU_THREADS_PER_BLOCK to override the parallelisation at launch time, and a CMake option of the same name to override at build-time.
  • Added experimental functions saveQuregToFile() and createQuregFromFile(), which use ADIOS2 for Qureg checkpointing.
  • Added sortPauliStrSumLexicographic() and sortPauliStrSumMagnitude() to reorder the terms within a PauliStrSum, affecting the numerical accuracy of Trotterisation.
  • The Trotter functions now accept an additional permuteTerms boolean, which when true, sees every Trotter repetition randomise the ordering of the Trotter terms, often improving numerical accuracy. This affects:
  • The QFT functions now accept an inverse boolean, to apply the inverse QFT.
  • Improved the CMake build:
    • Added QUEST_INSTALL_BINARIES to enable including examples and user-source in the QuEST installation directory.
    • Added a warning when CMake configures a (unoptimised) non-release build.
    • Removed brittle, platform-specific compiler flags (to work around a since-resolved performance problem).
    • Added QUEST_ prefix to (almost) all CMake options, to avoid collision with other projects (see API breaks below).
    • During compilation of the tests, the compiled executable is no longer run (for Catch2 test discovery), improving ease of compilation on supercomputers (e.g. systems with distinct job-submission and job-run nodes).

API breaks

  • As above, the Trotter functions now accept an additional permuteTerms boolean. This affects:
    • apply(Multi)(State)(Controlled)TrotterizedPauliStrSumGadget()
    • applyTrotterizedNonUnitaryPauliStrSumGadget()
    • applyTrotterized(Unitary|Imaginary|Noisy)TimeEvolution()
  • As above, the QFT functions now accept an inverse boolean. This affects:
    • apply(Full)QuantumFourierTransform()
  • A superfluous numControls argument was removed from the std::vector (C++ only) overloads of applyMultiStateControlledSqrtSwap() and applyMultiStateControlledCompMatr2().
  • All debug functions now explicitly contain the word QuEST (for example, setQuESTSeeds()) as the second word, indicated by [QuEST] below. This affects functions:
    • (set|get)[QuEST]Seeds(ToDefault)()
    • get[QuEST]NumSeeds()
    • set[QuEST]InputErrorHandler()
    • set[QuEST]Validation(On|Off)()
    • set[QuEST]ValidationEpsilon(ToDefault)()
    • set[QuEST]MaxNumReportedItems()
    • set[QuEST]MaxNumReportedSigFigs()
    • set[QuEST]NumReportedNewlines()
    • set[QuEST]ReportedPauli(Chars|StrStyle)()
    • get[QuEST]GpuCacheSize()
    • clear[QuEST]GpuCache()
    • get[QuEST]EnvironmentString()
  • All environment variables now begin with QUEST_, as indicated by [QUEST_] below. This affects environment variables:
    • [QUEST_]PERMIT_NODES_TO_SHARE_GPU
    • [QUEST_]DEFAULT_VALIDATION_EPSILON
    • [QUEST_]TEST_NUM_QUBITS_IN_QUREG
    • [QUEST_]TEST_MAX_NUM_QUBIT_PERMUTATIONS
    • [QUEST_]TEST_MAX_NUM_SUPEROP_TARGETS
    • [QUEST_]TEST_NUM_MIXED_DEPLOYMENT_REPETITIONS
    • TEST_ALL_DEPLOYMENTS has become QUEST_TEST_TRY_ALL_DEPLOYMENTS
  • All CMake options have been renamed, to now begin with QUEST_ or USER_ (to disambiguate whether they relate to the QuEST library or the user's optional source files), and several have been made more explicit. The changes are:
    • USER_SOURCE -> USER_SOURCE_NAMES
    • OUTPUT_EXE -> USER_OUTPUT_EXE_NAME
    • LIB_NAME -> QUEST_OUTPUT_LIB_NAME
    • VERBOSE_LIB_NAME -> QUEST_APPEND_CONFIG_TO_LIB_NAME
    • FLOAT_PRECISION -> QUEST_FLOAT_PRECISION
    • BUILD_EXAMPLES -> QUEST_BUILD_EXAMPLES
    • ENABLE_MULTITHREADING -> QUEST_ENABLE_OMP
    • ENABLE_DISTRIBUTION -> QUEST_ENABLE_MPI
    • ENABLE_TESTING -> QUEST_BUILD_TESTS
    • DOWNLOAD_CATCH2 -> QUEST_TESTS_DOWNLOAD_CATCH2
    • [QUEST_]ENABLE_CUDA
    • [QUEST_]ENABLE_CUQUANTUM
    • [QUEST_]ENABLE_HIP
    • [QUEST_]ENABLE_DEPRECATED_API
    • [QUEST_]DISABLE_DEPRECATION_WARNINGS

Minor changes

  • The output of reportQuESTEnv() has been rearranged and reordered.
  • setSeeds (now called setQuESTSeeds()) now validates that its given list of integers is non-null.
  • The int fields of the QuESTEnv struct (such as isMultithreaded) have been changed to type bool (exposed by <stdbool.h> in C).
  • Added extended examples set_num_gpu_threads.(c|cpp) and user_owned_(sub)mpi.(c|cpp)

Patches

  • #729 Restored compatibility with ROCm 6 and beyond, and removed the need for -Ofast to be applied to CPU subroutines.
  • #699 Patched an overflow bug in the GPU (Thrust) backend affecting simulation using more than 64 GiB of memory in a single GPU (i.e. a non-distributed 32-qubit statevector, or 16-qubit density matrix). Formerly, the below functions would induce a crash, or set all amplitudes to zero, or output zero.
    • (set|create)FullStateDiagMatrFromPauliStrSum()
    • setQuregToPauliStrSum()
    • calcTotalProb()
    • calcProbOf(Multi)QubitOutcome()
    • calcFidelity()
    • calcExpecPauliStr()
    • calcExpecPauliStrSum()
    • calcExpecFullStateDiagMatr()
    • apply(Multi)QubitProjector()
    • initRandomPureState()
  • #693 Restored compatibility with CUDA 13 (solving compilation failure).
  • #817 Added guards to avoid bug on AMD GPUs with >= 2^32 amplitudes per GPU. Expect to patch underlying issue in v4.3.1.

Notable internal changes

  • The CPU and GPU backends no longer use std::complex arithmetic overloads, and instead make use of custom cpu_qcomp and gpu_qcomp types.
  • The internal functions no longer pass qubit lists as copies of heap-based std::vector<int>. They now instead use List64 - a custom, stack-based, light-weight, fixed-capacity list - and pass constant references thereof (``ConstList64`) where possible.
  • Internal MPI calls now use a dedicated MPI communicator rather than MPI_COMM_WORLD to avoid collisions with user messages.

New contributors

This release contained contributions from new contributors:

  • Vasco Ferreira in #702, #705, #708
  • Maurice Jamieson in #706
  • Daniel Expósito Patiño in #738
  • Íñigo Aréjula Aísa in #722
  • Amon K. in #783
  • Ashmit JaiSarita Gupta in #780
  • PoJen Wang in #796
  • Mukul Kumar in #791 (unmerged, but contains useful benchmarking)
Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

All reactions

v4.2.0

v4.2.0
@TysonRayJones TysonRayJones released this 14 Oct 01:39
v4.2.0
9d7618d
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Overview

This release adds exciting new Trotter functionality, including imaginary-time and Lindbladian simulation, as well as functions for more general manipulation of density matrices (like left or right-applying operators). It also patches critical performance regressions in CPU simulation, a maths error in the Trotter functions, and build issues when installing QuEST.

New features

  • Added real, imaginary and noisy/open (Lindblad) time evolution via Trotterisation (#647). Specifically:
    • applyTrotterizedUnitaryTimeEvolution()
    • applyTrotterizedImaginaryTimeEvolution()
    • applyTrotterizedNoisyTimeEvolution()
  • Added applyNonUnitaryPauliGadget() which permits rotating about a Pauli string by a complex angle, effecting a non-unitary operation (#637).
  • Added applyTrotterizedNonUnitaryPauliStrSumGadget() which effects exp(i x H) where x is any complex scalar (#647).
  • Added controlled Trotter functions (d4706b9, 2110b74, 211d4e8), i.e.
    • applyTrotterizedControlledPauliStrSumGadget()
    • applyTrotterizedMultiControlledPauliStrSumGadget()
    • applyTrotterizedMultiStateControlledPauliStrSumGadget()
  • Added optimised functions to prepare superpositions and mixtures of an arbitrary number of Qureg (d4a5714). Specifically:
    • setQuregToWeightedSum()
    • setQuregToMixture()
  • Added environment variables PERMIT_NODES_TO_SHARE_GPU and DEFAULT_VALIDATION_EPSILON, replacing their original macros, which now permits changing their values pre-runtime without recompilation (#653, #655).
  • Added left- and right-application of operators upon density matrices (#657, #668, c49f8d2, 53c6828), i.e.
    • leftapplyCompMatr1()
    • rightapplyCompMatr1()
    • leftapplyCompMatr2()
    • rightapplyCompMatr2()
    • leftapplyCompMatr()
    • rightapplyCompMatr()
    • leftapplyDiagMatr1()
    • rightapplyDiagMatr1()
    • leftapplyDiagMatr2()
    • rightapplyDiagMatr2()
    • leftapplyDiagMatr()
    • rightapplyDiagMatr()
    • leftapplyDiagMatrPower()
    • rightapplyDiagMatrPower()
    • leftapplyFullStateDiagMatr()
    • rightapplyFullStateDiagMatr()
    • leftapplyFullStateDiagMatrPower()
    • rightapplyFullStateDiagMatrPower()
    • leftapplySwap()
    • rightapplySwap()
    • leftapplyPauliX()
    • rightapplyPauliX()
    • leftapplyPauliY()
    • rightapplyPauliY()
    • leftapplyPauliZ()
    • rightapplyPauliZ()
    • leftapplyPauliStr()
    • rightapplyPauliStr()
    • leftapplyPauliGadget()
    • rightapplyPauliGadget()
    • leftapplyPhaseGadget()
    • rightapplyPhaseGadget()
    • leftapplyMultiQubitNot()
    • rightapplyMultiQubitNot()
    • leftapplyQubitProjector()
    • rightapplyQubitProjector()
    • leftapplyMultiQubitProjector()
    • rightapplyMultiQubitProjector()
    • leftapplyPauliStrSum()
    • rightapplyPauliStrSum()
  • Function reportQuESTEnv() will now additionally display the available RAM (#636).

Patches

  • Restored NUMA awareness, greatly improving multithreaded CPU performance (#658).
  • Patched a performance regression (from QuEST v3) in CPU simulation, related to complex arithmetic (60f9b3a).
  • Patched a performance regression (from QuEST v3) in the one-qubit Pauli functions, by redirecting them to make use of the one-qubit dense matrix functions (as performed by v3) (#682).
  • Patched applyTrotterizedPauliStrSumGadget() to effect exp(i t H) as documented, whereas it previously erroneously effected exp(-i t H) (#647).
  • Patched Trotterisation of order >= 4. Previously, the order >= 4 scenario of Trotterisation did not correctly invoke recursion, but instead called first order Trotterisation five times without symmetrisation. This meant passing order=4 erroneously excluded symmetrisation (halving the Trotter depth), and passing order>=6 merely performed unsymmetrised fourth-order Trotterisation (e0a0e96).
  • Patched installation of QuEST, which now correctly records the compile-time configuration. Beware that several macros became exclusively cmake options (#645, #685).
  • The unit test of createFullStateDiagMatr()'s input validation now expects the correct error message (aa11c23), and does not break CUDA execution thereafter (37e222e).

Other changes

  • Attached boolean field isCuQuantumEnabled to the QuESTEnv struct, so that it can be determined at runtime whether or not the cuQuantum GPU backend is being utilised. This is also now reported by reportQuESTEnv() (c357267).
  • Made createPauliStrSum() validate ahead of time whether it can fit the necessary data structures into RAM (ca6e9f8).
  • Updated the dynamics examples to use the new evolution functions (19e18b2).
  • Deprecated setQuregToSuperposition() since superseded by the new setQuregToWeightedSum() (ab8b560).
  • Added docs/news.md (5bd864b).
  • Added yet more missing documentation (but the battle continues!) (cb682b2)

New contributors

This release contained patches from new contributors:

  • Mai Đức Khang in #636.
  • Diogo Pratas Maia in #637.
Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

cosenal reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
1 person reacted

v4.1.0

v4.1.0
@TysonRayJones TysonRayJones released this 28 May 02:19
v4.1.0
2d1a6fb
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Overview

This minor release (#622) adds some convenience functions to control QuEST's reporter functions, patches a critical segmentation fault in simulation above 32 qubits, patches the build's installation process and some minor reporter issues, and improves the documentation.

New features

Two new Debug > Reporting functions customise the outputs of functions like reportPauliStr() and reportPauliStrSum():

  • setReportedPauliChars() specifies new output characters to replace "IXYZ".
  • setReportedPauliStrStyle() sets whether to print PauliStr as "XYIIIZ" or "Z0 Y4 X5".

Patches

  • #623 patched a critical bug in the amplitude-enumeration logic which caused a segmentation fault for simulations of over 32 qubits (believed to cause #618).
  • 15a08ae removed superfluous re-validation of user input inside Trotter circuits.
  • 5e449fe patched a seg-fault when calling setMaxNumReportedItems(1,1) (though insignificant bug #588 remains).
  • fb2527e patched reportScalar() which previously ignored the number of sig-figs set with setMaxNumReportedSigFigs().
  • c92ebb3 patched invalid-input error messages that interrupt reports which do not end in a trailing newline (by now always printing a newline before the error message).
  • #624 restored C++17 compatibility of the source (by removing non-standard designated initialisers), which is now targeted by the build (though unit tests still require C++20).
  • #601 and #616 patched the build's install process which previously required users to gratuitously re-specify preprocessor macros (like COMPILE_MPI) when including the pre-installed QuEST header.
  • 420e11d ensures that changes to the devel branch will trigger CI tests (as intended).

Other changes

  • Examples have been restructured, and a new example using QuEST to perform real-time Hamiltonian simulation (dynamics.c(pp)) was added.
  • CI now runs Windows tests first since they are the most error-prone.
  • CI now runs all isolated examples (in addition to merely compiling them), testing for link-time issues (see e9fa519).
  • CI now compiles and runs all files in the new automated examples folder, offering external contributors a quick and easy way to platform-agnostically test their PR (in lieu of preparing a unit test)(see e9fa519).
  • Code-coverage reporting in PRs (using LCOV) was disabled since it did not capture accelerated backend coverage.
  • Many functions received new documentation (although the war continues).
  • Several custom Doxygen tags were renamed (see #621)

New contributors

This release contained patches from new contributors:

  • Luc Jaulmes in #616
  • James Richings in #623
Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

All reactions

v4.0.0

v4.0.0
@TysonRayJones TysonRayJones released this 06 Apr 23:25
v4.0.0
53f8f3a
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

🎉  What's new

QuEST v4 has completely overhauled the API, software architecture, algorithms, implementations and testing. This page details the new features, divided into those relevant to users, developers who integrate QuEST into larger software stacks, and contributors who develop QuEST or otherwise peep at the source code!

TOC:

  • For users
  • For developers
  • For contributors
  • Acknowledgements

For users

  • auto-deployer
    Functions like createQureg() and createFullStateDiagMatr() will automatiaclly decide whether to make use of the compiled and available hardware facilities, like multithreading, GPU-acceleration and distribution. The user no longer needs to consider which deployments are optimal for their simulation sizes, nor which devices have sufficient memory to fit their Qureg!

  • new deployments
    QuEST can now make use of multiple GPUs, distributed across different machines on a network, or tightly-coupled by a high-bandwidth interconnect (like NVLink); or both! This is true independent of whether you're also using cuQuantum, NVIDIA or AMD GPUs. Further, used deployments are heterogeneous; simultaneous Quregs may use different facilities at runtime!

  • much faster
    Practically all backend algorithms have been replaced with novel, optimised, bespoke routines - primarily documented in arXiv 2311.0512. Further, special care has been paid to enabling compile-time optimisations, giving structures (like matrices) persistent GPU memory, and lazily evaluating properties like matrix unitarity only once!

  • cleaner interface
    The API has been polished; function names are more consistent, accept an arithmetic-overloaded complex scalar type (called qcomp), and more natural data structures. Matrices, Pauli tensors and their weighted sums are now easier to initialise and populate, accepting even matrix and string literals!
    Some functions now have type overloads - even the C ones! - and additional C++ overloads accepting native containers like std::vector.

  • reporters
    The API also includes utilities for prettily printing all QuEST data structures (like states, operators and scalars) and reporting on the environment and Qureg hardware accelerations being used, the memory available, and the maximum possible simulation sizes.
    Input validation has also been massively broadened and error messages made precise and dynamic. Usability is through the roof!

  • new functions
    The set of supported quantum operations has greatly expanded. All unitaries can be effected with any number of control qubits (in any state), diagonal matrices can be raised to powers, density matrices can undergo partial tracing and inhomogeneous Pauli channels (in addition to general Kraus maps and superoperatos), and multi-qubit projectors can now be performed, with and without renormalisation.

  • more control
    Extensive new debugging facilities allow disabling or changing the validation precision and error response at runtime, and controlling how many amplitudes and significant figures of Qureg and matrices are printed.

  • better documentation
    The documentation has been rewritten from the ground-up, and the API doc grouped into sub-categories and aesthetically overhauled with Doxygen Awesome. It is now more consistently structured, mathematically explicit, and is a treat on the eyes!

For developers

  • new build
    The CMake build has been overhauled and modernised, with wider platform support and facilities to ease QuEST's integration into larger stacks. The build is more modular, limiting specialised compilers (like nvcc and mpicc) to compiling only their essential files. This minimises friction and widens QuEST's compiler support.

  • easier integration
    QuEST's backend now uses the standard C++ complex primitive to represent quantum amplitudes and matrix elements, made precision agnostic via new qcomp type. Further, dense matrices now have both 1D row-major and 2D (aliasing the 1D) memory pointers. This permits Qureg and matrix data to be seamlessly accessed by third-party libraries, such as for linear algebra, without the need for adapters nor expensive copying.

For contributors

  • modular architecture
    QuEST's new software architecture is highly modular, separating the responsibilities of interfacing, validating user input, core pre-processing, localising distributed data, choosing which accelerator to use (CPUs or GPUs), and modifying local data using an accelerator. The core pre-processing is further modularised into modules responsible for autodeploying, inlining, performing maths and bitwise routines, probing available memory, checking internal preconditions, parsing user text, printing output, managing data structures and generating random numbers.
    See architecture.md for more information.

  • C++ backend
    While QuEST's frontend remains C and C++ agnostic, the backend has become consistently C++17, affording development luxuries like overloading, templating, type inference, namespaces, smart pointers, constant expressions, type-traiting, structured bindings, range-based looping and use of standard lists like vector. We have however endeavoured to keep the use of C++ facilities simple so that the code remains readable and editable by C programmers.

  • internal preconditions
    QuEST's defensive design has massively improved by the extensive use of precondition checks, which cheaply validate that internal functions receive correct inputs, where there is room for insidious bugs or future changes.
    This...

Read more
Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

otbrown and rrmeister reacted with hooray emoji Gopal-Dahale reacted with rocket emoji
All reactions
  • 🎉 2 reactions
  • 🚀 1 reaction
3 people reacted

v3.7.0

v3.7.0
@TysonRayJones TysonRayJones released this 22 Sep 11:17
v3.7.0
d4f75f7
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.

Overview

This release integrates a cuQuantum backend (generously supported by the NQCC), optimises distributed communication, and improves the unit tests.

New features

  • QuEST gained a new backend which integrates cuQuantum and Thrust for optimised simulation on modern NVIDIA GPUs. This is compiled with cmake argument -DUSE_CUQUANTUM=1, as detailed in the compile doc. Unlike QuEST's other backends, this does require prior installation of cuQuantum, outlined here. This deployment mode should run much faster than QuEST's custom GPU backend, and will soon enable multi-GPU simulation. The entirety of QuEST's API is supported! 🎉

This work was supported by the UK National Quantum Computing centre [NQCC200921]

Other changes

  • QuEST's distributed communication has been optimised when exchanging states via many maximum-size messages, thanks to the work of Jakub Adamski as per this manuscript.
  • Functions like multiQubitUnitary() and mixMultiQubitKrausMap() have relaxed the precision of their unitarity and CPTP checks, so they will complain less about user matrices. Now, for example, a unitarity matrix U is deemed valid only if every element of U*dagger(U) has a Euclidean distance of at most REAL_EPS from its expected identity-matrix element.
  • Unit tests now check that their initial register states are as expected before testing an operator. This ensures that some tests do not accidentally pass when they should be failing (like when run with an incorrectly specified GPU compute capability) due to an unexpected all-zero initial state.
  • Unit tests now use an improved and numerically stable function for generating random unitaries and Kraus maps, so should trigger fewer precision errors and false test failures.
Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

otbrown reacted with hooray emoji
All reactions
  • 🎉 1 reaction
1 person reacted

v3.6.0

v3.6.0
@TysonRayJones TysonRayJones released this 07 Aug 18:01
v3.6.0
eac4409
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.

Overview

This release makes QuEST compatible with AMD GPUs 🎉, makes the unit tests compatible with MSVC on Windows, and adds sub-diagonal operators.

New features

  • Compatibility with AMD GPUs, thanks to @bvillasen!
  • SubDiagonalOp; a non-distributed structure representing a diagonal unitary (specified only through the diagonal elements) upon a subset of a qureg's qubits. This can be passed to new functions:
    • createSubDiagonalOp()
    • destroySubDiagonalOp()
    • diagonalUnitary()
    • applySubDiagonalOp()
    • applyGateSubDiagonalOp()
  • Functions for applying gates specified as non-unitary matrices. Specifically:
    • applyGateMatrixN()
    • applyMultiControlledGateMatrixN()
  • setQuregToPauliHamil() for casting a Pauli Hamiltonian into a dense Z-basis matrix, stored in a density matrix Qureg.
  • Phase function SCALED_INVERSE_SHIFTED_WEIGHTED_DISTANCE recognised by applyParamNamedPhaseFunc() (and related functions)

Other changes

  • Unit tests are now compatible with MSVC on Windows, and are automatically ran from Github Actions.
  • Documentation is automatically regenerated whenever the master branch is updated.

Bug fixes

  • Math functions used internally (like cos()) now explicitly use quad precision when compiled with PRECISION=4, thanks to @Milos9304
  • Fixed overflow and other precision issues in the unit tests, thanks to @rrmeister

Contributors

  • @bvillasen
  • @Milos9304
  • @rrmeister
bvillasen, Milos9304, and rrmeister
Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

All reactions

v3.5.0

v3.5.0
@TysonRayJones TysonRayJones released this 21 Apr 10:07
v3.5.0
23a0a08
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.

Overview

This release adds some quality-of-life functions, mostly to the benefit of larger software stacks which integrate QuEST. It also includes some bug patches and internal software architectural clean-ups, primarily by @rrmeister.

New features

  • setDensityAmps() allowing direct modification of the amplitudes of a density matrix.
  • copySubstateToGPU() allowing partial overwriting of a statevector in GPU memory
  • copySubstateFromGPU() allowing partial loading of a GPU statevector into accessible memory
  • mixNonTPKrausMap() to simulate Kraus maps which are not necessarily trace-preserving

Other changes

  • Updated the Bernstein-Vazirani demo to simulate more analogously to the experimental method
  • Updated demo codes to use precision-agnostic string formatters
  • Improved CMake build (f8747ca)
  • Improved the internal validation architecture

Bug fixes

  • patched rare distributed bug in calcTotalProb() of density matrices (#326)
  • patched rare GPU build bug in applyPhaseFunc()
  • patched rare memory leak during failed validation of Qureg and DiagonalOp validation
  • patched GPU build flags (512966a)
  • patched invalidQuESTInputError() build problem on Windows (#314)
  • patched build warnings related to precision of internal non-simulation functions (fc25c34)

Contributors

  • @rrmeister
rrmeister
Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

All reactions

v3.4.1

v3.4.1
@TysonRayJones TysonRayJones released this 13 Oct 12:16
v3.4.1
9494994
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.

Overview

This is a quick patch of a GPU build bug, and a logical error in an unimportant GPU edge-case.

Bug fixes

  • patched CUDA build of v3.4.0.
  • patched edge-case of calcProbOfOutcome which on GPU with a state-vector of a single qubit, always returned 1.
Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

ChienKaiMa and glebx-f reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
2 people reacted

v3.4.0

v3.4.0
@TysonRayJones TysonRayJones released this 10 Oct 07:23
v3.4.0
8dd30ef

Overview

This release refactors QuEST for native Windows support, and adds some initialisation and seeding utilities mostly useful for simulators which use QuEST as a backend.

New features

Deterministically project a qubit into a classical outcome without renormalising the state.

  • applyProjector()

Density matrices, like state-vectors, can now be directly initialised from arrays of all amplitudes.

  • initStateFromAmps()

Users can now view and keep track of the seeds to QuEST's random number generator.

  • getQuESTSeeds()

Native Windows support! QuEST can now be compiled directly in MSVC, without needing to use MinGW. An MSVC build test is now part of the Github CI, although unit tests do not yet run automatically.

  • compile with CMake and NMake in the build folder via
    cmake .. -G "NMake Makefiles"
    nmake
    
  • or, compile directly with GNUMake from the root directory via
    cp examples/makefile .
    make COMPILER=cc COMPILER_TYPE=MSVC
    

API breaking changes

  • seedQuEST() and seedQuESTDefault() now require a pointer to the active QuESTEnv instance.
  • Previously, SCALED_INVERSE_SHIFTED_DISTANCE in applyNamedPhaseFunc() computed coeff/sqrt( (x2-x1-dx)^2 + ... ), but now computes coeff/sqrt( (x1-x2-dx)^2 + ... (x1 and x2 have swapped), to be more in-line with the expected behaviour.
  • Previously, SCALED_INVERSE_SHIFTED_NORM and SCALED_INVERSE_SHIFTED_DISTANCE in applyNamedPhaseFunc() used their divergence parameter when their denominators were precisely zero. Now, the divergence parameter is used whenever the denominator is within REAL_EPS to zero. This catches the scenario when a divergence has been translated only a very small distance from a sampled point.
Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

All reactions

v3.3.0

v3.3.0
@TysonRayJones TysonRayJones released this 22 Aug 13:14
v3.3.0
df2861f

Overview

This release adds some powerful new operators including pauli gadgets with any number of control qubits, diagonal operators expressed as general exponential-polynomial phase functions, and optimised implementations of the quantum Fourier transform and multi-controlled multi-target X gates. It brings the ability to efficiently calculate batches of probabilities of arbitrary quantum substates, and functions for creating diagonal operators from Ising Hamiltonians. These utilities are useful for high-performance simulation of quantum chemistry algorithms. Finally, we add an example implementation of Grover's algorithm, and the documentation is given a welcome face-lift.

New features

In addition to calcProbOfOutcome for calculating the probability of a single qubit outcome, one can now efficiently obtain the entire set of probabilities for the classical outcomes of entire sub-registers.

  • calcProbOfAllOutcomes()

Added optimised algorithmic methods for simultaneously applying multiple Pauli X gates. These run as fast as a single invocation of pauliX(), even in distributed mode!

  • multiQubitNot()
  • multiControlledMultiQubitNot().

With the help of Milos Prokop, Ising Hamiltonians expressed in the Pauli basis can now be loaded directly into diagonal operators, for much faster simulation.

  • initDiagonalOpFromPauliHamil()
  • createDiagonalOpFromPauliHamilFile()

Added controlled versions of the existing phase gadgets and Pauli gadgets.

  • multiControlledMultiRotateZ()
  • multiControlledMultiRotatePauli()

Added an efficient implementation of the quantum Fourier transform (QFT), which can be applied to both state-vectors and density-matrices, on an arbitrary sub-register.

  • applyQFT()
  • applyFullQFT()

With the help of Richard Meister, diagonal unitaries can be applied directly to a state, specified as a phase function, and requiring no dedicated memory. This includes phase functions specified as one-dimensional exponential-polynomials...

  • applyPhaseFunc()
  • applyPhaseFuncOverrides()

or as multi-variable exponential-polynomials...

  • applyMultiVarPhaseFunc()
  • applyMultiVarPhaseFuncOverrides()

or as one of many named phase functions, including several useful for quantum chemistry simulations, like measures of distance between registers representing signed integers in two's complement!

  • applyNamedPhaseFunc()
  • applyNamedPhaseFuncOverrides()
  • applyParamNamedPhaseFunc()
  • applyParamNamedPhaseFuncOverrides()

Finally, some changes to documentation.

  • updated the tutorial (examples/README.md) with extensive compilation and testing guidance
  • added example implementation of Grover's search
  • createQureg and createDensityQureg now include extensive documentation about their memory patterns on all hardware backends
  • added doc for QuEST_PREC, ComplexMatrix2 and ComplexMatrix4
  • added 'see more' sections to most functions, linking to related functions
  • linked all doc to invalidQuESTInputError(), if thrown
  • function exceptions are now formatted cleanly in lists
  • code snippets now use syntax highlighting
  • removed ugly borders around circuit diagrams

Bug fixes

  • patched syncDiagonalOp which previously did not copy all of a state-vector into GPU memory
  • supressed CMake build warnings (by Gleb Struchalin)
  • fixed doc rendering issue (via regrettable js/html hacks)
  • fixed all doxygen warnings
  • patched unit tests to compile precision agnostically
  • patched QASM output to compile precision agnostically
  • patched distributed file IO unit tests (like createPauliHamilFromFile), which sometimes seg-faulted
Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

All reactions
You are visitor 01402792 — 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.