QTechTheory/QuESTlink: v0.14
Authors/Creators
- 1. University of Oxford
- 2. @actions
- 3. @HQSQuantumSimulations
Description
This minor release adds support for diagonal matrices, a validation improvement, and a patch to an esoteric bug in ApplyCircuitDerivs[].
Gates
U,UNonNormandMatr, which previously accepted dense matrices (specified element-wise), now addtionally accept diagonal matrices specified as flat lists. Such diagonal gates have bespoke backend QuEST simulation functions (invoked by functions likeApplyCircuit[]), and bespoke/optimised Mathematica handling (invoked by functions likeCalcCircuitMatrix[]andSimplifyCircuit[]).For example, operators specified as
U_0[ {{a,0}, {0, b}} ]and
U_0[ {a,b} ]are equivalent, though the latter is (approximately) quadratically faster (in terms of its dimension) to simulate.
- derivative functions
ApplyCircuitDerivs[],CalcMetricTensor[]andCalcExpecPauliStringDerivs[]now explicitly check whether the given density matrix is Hermitian (otherwise throwing an error), since this is a pre-condition to their correct function.
patched an esoteric
ApplyCircuitDerivsbug differentiating w.r.t a parameter in aMatr[]operator upon a density matrix. Precisely; the existing Matr gate modifies density matrices rho underrho -> Matr rhoPreviously,
ApplyCircuitDerivs[]would compute the derivative ofMatrasD( Matr ||rho>> ) = conj(Matr) (x) D(Matr) ||rho>> + adjwhere||rho>>notates the equivalent vector under the Choi isomorphism.This formulation is erroneous, and treats
Matrlike a unitary gate operated asrho -> U rho dagger(U)Instead, the true derivative of Matr is simply;
D(Matr) ||rho>>This bug was extremely esoteric and was likely not encountered by users, since such state derivatives are typically used by variational algorithms leveraging unitary ansatzse. It also did not affect similar functions like
CalcExpecPauliStringDerivs[]andCalcMetricTensor[], which already forbid non-trace-preserving operators likeMatr.
Files
QTechTheory/QuESTlink-v0.14.zip
Files
(37.8 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:77bd6282c5e21ce1cfbf25e04ac9fd48
|
37.8 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/QTechTheory/QuESTlink/tree/v0.14 (URL)