-
Notifications
You must be signed in to change notification settings - Fork 6
/
quantum_gate.cpp
100 lines (77 loc) · 1.58 KB
/
quantum_gate.cpp
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
89
90
91
92
93
94
95
96
97
98
99
100
#include "quantum_gate.h"
QuantumGate::QuantumGate() {}
QuantumGate::~QuantumGate() {}
// ********* CFLOBDDQuantumGate *********
CFLOBDDQuantumGate::CFLOBDDQuantumGate()
{
}
CFLOBDDQuantumGate::CFLOBDDQuantumGate(CFLOBDD_COMPLEX_BIG g)
{
gate = g;
}
CFLOBDDQuantumGate::~CFLOBDDQuantumGate()
{
}
void CFLOBDDQuantumGate::Print()
{
gate.print(std::cout);
}
// ********* BDDQuantumGate *********
BDDQuantumGate::BDDQuantumGate()
{
}
BDDQuantumGate::BDDQuantumGate(ADD g)
{
gate = g;
}
BDDQuantumGate::~BDDQuantumGate()
{
}
void BDDQuantumGate::Print()
{
gate.print(2, 2);
}
// ********* WeightedBDDQuantumGate *********
WeightedBDDQuantumGate::WeightedBDDQuantumGate()
{
}
WeightedBDDQuantumGate::WeightedBDDQuantumGate(WEIGHTED_CFLOBDD_COMPLEX_FLOAT_BOOST_MUL g)
{
gate = g;
}
WeightedBDDQuantumGate::~WeightedBDDQuantumGate()
{
}
void WeightedBDDQuantumGate::Print()
{
}
// ********* WeightedCFLOBDDQuantumGate *********
WeightedCFLOBDDQuantumGate::WeightedCFLOBDDQuantumGate()
{
}
WeightedCFLOBDDQuantumGate::WeightedCFLOBDDQuantumGate(WEIGHTED_CFLOBDD_COMPLEX_FLOAT_BOOST_MUL g)
{
gate = g;
}
WeightedCFLOBDDQuantumGate::~WeightedCFLOBDDQuantumGate()
{
}
void WeightedCFLOBDDQuantumGate::Print()
{
gate.print(std::cout);
}
// ********* MQTDDQuantumGate *********
MQTDDQuantumGate::MQTDDQuantumGate()
{
}
MQTDDQuantumGate::MQTDDQuantumGate(dd::mEdge g)//, std::unique_ptr<Package<DDPackageConfig>>& d) : ddp(std::move(d))
{
gate = g;
}
MQTDDQuantumGate::~MQTDDQuantumGate()
{
}
void MQTDDQuantumGate::Print()
{
// ddp->printMatrix(gate);
}