OSDN Git Service

revises makefile of htdocs
[qcad/qcad.git] / calcunits / QC_hadamard.h
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