16#include "quest/include/quest.h"
23typedef vector<vector<qcomp>> qmatrix;
27qmatrix getConstantMatrix(
size_t dim, qcomp elem);
29qmatrix getDiagonalMatrix(qvector v);
30qmatrix getPauliMatrix(
int id);
32qmatrix operator * (
const qcomp&,
const qmatrix& );
33qmatrix operator * (
const qmatrix&,
const qcomp&);
34qmatrix operator * (
const qreal&,
const qmatrix&);
35qmatrix operator * (
const qmatrix&,
const qreal&);
36qmatrix operator *= (qmatrix&,
const qcomp&);
37qmatrix operator *= (qmatrix&,
const qreal&);
39qmatrix operator / (
const qmatrix&,
const qcomp&);
40qmatrix operator / (
const qmatrix&,
const qreal&) ;
41qmatrix operator /= (qmatrix&,
const qcomp&);
42qmatrix operator /= (qmatrix&,
const qreal&);
44qmatrix operator + (
const qmatrix&,
const qmatrix&);
45qmatrix operator += (qmatrix&,
const qmatrix&);
47qmatrix operator - (
const qmatrix&,
const qmatrix&);
48qmatrix operator -= (qmatrix&,
const qmatrix&);
50qmatrix operator * (
const qmatrix&,
const qmatrix&);
51qmatrix operator *= (qmatrix&,
const qmatrix&);
53void setSubMatrix(qmatrix &dest, qmatrix sub,
size_t r,
size_t c);
54void setSubMatrix(qmatrix &dest, qvector sub,
size_t flatInd);
55void setToDebugState(qmatrix &m);
57qvector getDiagonals(qmatrix m);
qmatrix getIdentityMatrix(size_t dim)
void setSubMatrix(qmatrix &dest, qmatrix sub, size_t r, size_t c)
qmatrix getZeroMatrix(size_t dim)