OSDN Git Service

Initial Commit
[qcad/qcad.git] / calcunits / QC_swap.h
1 //---------------------------------------------------------------------------
2 #ifndef QC_swapH
3 #define QC_swapH
4 //---------------------------------------------------------------------------
5 #include "QCalcUnit.h"
6 //---------------------------------------------------------------------------
7
8 class QC_swap : public QCalcUnit
9 {
10 private:
11     int TargetBit1;
12     int TargetBit2;
13
14 public:
15     QC_swap(int t1,int t2);
16     static void calc(int t1, int t2, double R[], double I[], int N);
17     virtual void Calc(QBits *QBits);
18     virtual std::string GetName(void) const {
19         return "Swap";
20     }
21
22 #ifdef __USE__MPI
23     static void calcmpi(int t1, int t2, double R[], double I[], int N);
24 #endif
25
26 };
27 //---------------------------------------------------------------------------
28 #endif