Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/calcunits/QC_hadamard.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download) (as text)
Wed Aug 3 10:14:23 2011 UTC (12 years, 8 months ago) by kaityo
File MIME type: text/x-chdr
File size: 913 byte(s)
First commit
1 //---------------------------------------------------------------------------
2 // Hadamard gate
3 //---------------------------------------------------------------------------
4 #ifndef QC_hadamardH
5 #define QC_hadamardH
6 //---------------------------------------------------------------------------
7 #include "QCalcUnit.h"
8 //---------------------------------------------------------------------------
9
10 class QC_hadamard : public QCalcUnit
11 {
12 private:
13 int Target;//Target bit of calculation
14
15 public:
16
17 QC_hadamard(int _Target);// Constructor
18 static void calc(int target, double R[], double I[], int N);
19 virtual void Calc(QBits *QBits);// Calclation
20 virtual std::string GetName(void) const {
21 return "Hadamard";
22 }
23
24 #ifdef __USE__MPI
25 static void calcmpi(int t1, double R[], double I[], int N);
26 #endif
27
28 };
29 //---------------------------------------------------------------------------
30 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26