Browse Subversion Repository
Contents of /trunk/calcunits/QC_swap.h
Parent Directory
| Revision Log
Revision 1 -
( show annotations)
( download)
( as text)
Wed Aug 3 10:14:23 2011 UTC
(12 years, 9 months ago)
by kaityo
File MIME type: text/x-chdr
File size: 781 byte(s)
First commit
| 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 |
|