Browse Subversion Repository
Contents of /trunk/calcunits/QC_not.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: 841 byte(s)
First commit
| 1 |
//--------------------------------------------------------------------------- |
| 2 |
// Not Gate |
| 3 |
//--------------------------------------------------------------------------- |
| 4 |
#ifndef QC_notH |
| 5 |
#define QC_notH |
| 6 |
//--------------------------------------------------------------------------- |
| 7 |
#include "QCalcUnit.h" |
| 8 |
//--------------------------------------------------------------------------- |
| 9 |
class QC_not : public QCalcUnit |
| 10 |
{ |
| 11 |
private: |
| 12 |
int Target; |
| 13 |
public: |
| 14 |
QC_not(const int _Target); |
| 15 |
static void calc(int target, double BitsR[], double BitsI[], int bits); |
| 16 |
virtual void Calc(QBits *qBits); |
| 17 |
virtual std::string GetName(void) const { |
| 18 |
return "Not"; |
| 19 |
} |
| 20 |
#ifdef __USE__MPI |
| 21 |
static void calcmpi(int t1, double R[], double I[], int N); |
| 22 |
#endif |
| 23 |
}; |
| 24 |
//--------------------------------------------------------------------------- |
| 25 |
#endif |
|