-
Notifications
You must be signed in to change notification settings - Fork 6
/
quantum_state.h
88 lines (74 loc) · 2.27 KB
/
quantum_state.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#ifndef _QUANTUM_STATE
#define _QUANTUM_STATE
#include "dd_package/include/dd/Package.hpp"
#include "cflobdd/CFLOBDD/matrix1234_complex_float_boost.h"
#include "cflobdd/CFLOBDD/wmatrix1234_complex_fb_mul.h"
#include <random>
class QuantumState {
public:
// Constructor
QuantumState();
// Destructor
virtual ~QuantumState();
virtual void Print() = 0;
};
using namespace CFL_OBDD;
class CFLOBDDQuantumState : public QuantumState {
public:
CFLOBDDQuantumState(CFLOBDD_COMPLEX_BIG state);
CFLOBDDQuantumState();
~CFLOBDDQuantumState();
void Print();
CFLOBDD_COMPLEX_BIG GetState() {return state;}
private:
CFLOBDD_COMPLEX_BIG state;
};
#include "cflobdd/cudd-complex-big/cplusplus/cuddObj.hh"
class BDDQuantumState : public QuantumState {
public:
BDDQuantumState(ADD state);
BDDQuantumState();
~BDDQuantumState();
void Print();
ADD GetState() {return state;}
private:
ADD state;
};
#include "cflobdd/CFLOBDD/wmatrix1234_complex_fb_mul.h"
class WeightedBDDQuantumState : public QuantumState
{
public:
// Constructor
WeightedBDDQuantumState(WEIGHTED_CFLOBDD_COMPLEX_FLOAT_BOOST_MUL state);
WeightedBDDQuantumState();
~WeightedBDDQuantumState();
void Print();
WEIGHTED_CFLOBDD_COMPLEX_FLOAT_BOOST_MUL GetState() {return state;}
private:
WEIGHTED_CFLOBDD_COMPLEX_FLOAT_BOOST_MUL state;
};
class WeightedCFLOBDDQuantumState : public QuantumState {
public:
WeightedCFLOBDDQuantumState(WEIGHTED_CFLOBDD_COMPLEX_FLOAT_BOOST_MUL state);
WeightedCFLOBDDQuantumState();
~WeightedCFLOBDDQuantumState();
void Print();
WeightedCFLOBDDQuantumState GetState() {return state;}
private:
WEIGHTED_CFLOBDD_COMPLEX_FLOAT_BOOST_MUL state;
};
using namespace dd;
class MQTDDQuantumState : public QuantumState
{
public:
// Constructor
MQTDDQuantumState(dd::vEdge state);//, std::unique_ptr<Package<DDPackageConfig>>& ddp);
MQTDDQuantumState();
~MQTDDQuantumState();
void Print();
vEdge GetState() {return state;}
private:
vEdge state;
// std::unique_ptr<Package<DDPackageConfig>> ddp;
};
#endif