qgame::QGate Class Reference

Base class for a quantum gate. More...

#include <qggates.h>

Inheritance diagram for qgame::QGate:

qgame::QMatrixGate qgame::QGateCNOT qgame::QGateCPHASE qgame::QGateCPHASEOLD qgame::QGateH2 qgame::QGateNAND qgame::QGateQNOT qgame::QGateSRN qgame::QGateSWAP qgame::QGateU2 qgame::QGateUTHETA qgame::QOracle List of all members.

Public Member Functions

virtual std::string dump () const
 Return a string describing the gate.

virtual unsigned int numQb ()=0
 Number of qubits manipulated, NOT amplitudes.

virtual void apply (QuSubReg &)=0
 Apply gate to given qubits.


Detailed Description

Base class for a quantum gate.

All quantum gates are derived from this (virtual) base class and must implement numQb() and apply().

Definition at line 42 of file qggates.h.


The documentation for this class was generated from the following files:
Generated on Sat Apr 3 18:42:30 2004 for QGame++ by doxygen 1.3.5