OSDN Git Service

removes destructor of QCalcUnit
[qcad/qcad.git] / calcunits / QC_pauliY.h
1 //---------------------------------------------------------------------------
2 // Pauli Y gate
3 //---------------------------------------------------------------------------
4 //---------------------------------------------------------------------------
5 #ifndef QC_pauliYH
6 #define QC_pauliYH
7 //---------------------------------------------------------------------------
8 #include "QCalcUnit.h"
9 //---------------------------------------------------------------------------
10
11 class QC_pauliY : public QCalcUnit
12 {
13 private:
14     int Target;//Target bit of calculation
15
16 public:
17
18     QC_pauliY(int _Target);// Constructor
19     static void calc(int target, double R[], double I[], int N);
20     virtual void Calc(QBits *QBits);// Calclation
21     virtual std::string GetName(void) const {
22         return "Pauli-Y";
23     }
24
25 #ifdef __USE__MPI
26     static void calcmpi(int t1, double R[], double I[], int N);
27 #endif
28
29 };
30 //---------------------------------------------------------------------------
31 #endif
32