MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / getSpoofedSerialStateVecFromDensMatrAndAmps

Function getSpoofedSerialStateVecFromDensMatrAndAmps

quest/src/core/localiser.cpp:333–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331
332
333Qureg getSpoofedSerialStateVecFromDensMatrAndAmps(Qureg denseQureg, qcomp* amps) {
334
335 // imitate statevector, turn off all parallelisation
336 int isDensMatr = 0;
337 int useDistrib = 0;
338 int useGpuAccel = 0;
339 int useMultithread = 0;
340 Qureg spoof = qureg_populateNonHeapFields(
341 denseQureg.numQubits, isDensMatr,
342 useDistrib, useGpuAccel, useMultithread);
343
344 // bind the external memory
345 spoof.cpuAmps = amps;
346 return spoof;
347}
348
349
350auto getSpoofedQuregAndMatrWithMatchingDistributions(Qureg qureg, FullStateDiagMatr matr) {

Calls 1

Tested by

no test coverage detected