Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/calcunits/QC_pauliX.h

Parent Directory Parent Directory | Revision Log 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: 982 byte(s)
First commit
1 //---------------------------------------------------------------------------
2 // Pauli X gate
3 //---------------------------------------------------------------------------
4 #ifndef QC_pauliXH
5 #define QC_pauliXH
6 //---------------------------------------------------------------------------
7 //---------------------------------------------------------------------------
8 #include "QCalcUnit.h"
9 //---------------------------------------------------------------------------
10
11 class QC_pauliX : public QCalcUnit
12 {
13 private:
14 int Target;//Target bit of calculation
15
16 public:
17
18 QC_pauliX(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-X";
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

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26