QuEST_debug.h
Go to the documentation of this file.
1 // Distributed under MIT licence. See https://github.com/QuEST-Kit/QuEST/blob/master/LICENCE.txt for details
2 
10 # ifndef QUEST_DEBUG_H
11 # define QUEST_DEBUG_H
12 
13 # include "QuEST_precision.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
25 void initStateOfSingleQubit(Qureg *qureg, int qubitId, int outcome);
26 
32 void initStateDebug(Qureg qureg);
33 
37 void initStateFromSingleFile(Qureg *qureg, char filename[200], QuESTEnv env);
38 
42 int compareStates(Qureg mq1, Qureg mq2, qreal precision);
43 
48 void setDensityAmps(Qureg qureg, qreal* reals, qreal* imags);
49 
50 
51 
55 int QuESTPrecision(void);
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 # endif // QUEST_DEBUG_H
int compareStates(Qureg mq1, Qureg mq2, qreal precision)
Return whether two given wavefunctions are equivalent within a given precision Global phase included ...
Definition: QuEST.c:1573
void initStateFromSingleFile(Qureg *qureg, char filename[200], QuESTEnv env)
Initialises the wavefunction amplitudes according to those specified in a file.
Definition: QuEST.c:1582
Information about the environment the program is running in.
Definition: QuEST.h:362
#define qreal
int QuESTPrecision(void)
Return the precision of qreal for use in testing.
void initStateOfSingleQubit(Qureg *qureg, int qubitId, int outcome)
Initialise the state vector of probability amplitudes such that one qubit is set to 'outcome' and all...
Definition: QuEST.c:1587
Represents a system of qubits.
Definition: QuEST.h:322
void initStateDebug(Qureg qureg)
Initialise the state vector of probability amplitudes to an (unphysical) state with each component of...
void setDensityAmps(Qureg qureg, qreal *reals, qreal *imags)
Set elements in the underlying state vector represenation of a density matrix.
Definition: QuEST.c:1030