The Quantum Exact Simulation Toolkit
v4.0.0
Loading...
Searching...
No Matches
convert.hpp
1
/** @file
2
* @author Tyson Jones
3
*
4
* @defgroup testutilsconvert Convert
5
* @ingroup testutils
6
* @brief
7
* Testing utilities for converting QuEST API structures
8
* (like Qureg, CompMatr, PauliStr) to/from testing types
9
* (like qvector and qmatrix).
10
* @{
11
*/
12
13
#ifndef CONVERT_HPP
14
#define CONVERT_HPP
15
16
#include "quest/include/quest.h"
17
#include "qvector.hpp"
18
#include "qmatrix.hpp"
19
20
21
void
setQuregToReference(
Qureg
, qvector);
22
void
setQuregToReference(
Qureg
, qmatrix);
23
24
qvector getVector(
Qureg
);
25
qmatrix getMatrix(
Qureg
);
26
27
qmatrix getMatrix(
CompMatr1
);
28
qmatrix getMatrix(
CompMatr2
);
29
qmatrix getMatrix(
CompMatr
);
30
qmatrix getMatrix(
DiagMatr1
);
31
qmatrix getMatrix(
DiagMatr2
);
32
qmatrix getMatrix(
DiagMatr
);
33
qmatrix getMatrix(
SuperOp
);
34
35
qmatrix getMatrix(
PauliStr
str, vector<int> targs);
36
qmatrix getMatrix(
PauliStr
str,
int
numQubits);
37
qmatrix getMatrix(
PauliStrSum
sum,
int
numQubits);
38
39
40
#endif
// CONVERT_HPP
41
42
/** @} (end defgroup) */
CompMatr1
Definition
matrices.h:64
CompMatr2
Definition
matrices.h:75
CompMatr
Definition
matrices.h:86
DiagMatr1
Definition
matrices.h:132
DiagMatr2
Definition
matrices.h:143
DiagMatr
Definition
matrices.h:154
PauliStrSum
Definition
paulis.h:65
PauliStr
Definition
paulis.h:53
Qureg
Definition
qureg.h:49
SuperOp
Definition
channels.h:74
tests
utils
convert.hpp
Generated by
1.12.0