QOperator, quantum operator class definition. More...
#include <QOperators.h>
Public Member Functions | |
QOperator (int dim_i=1) | |
Default constructor, see SMatrix. | |
QOperator (int dim_i, complex< double > diag) | |
Diagonal constructor, see SMatrix. | |
QOperator (int dim_i, const complex< double > *Mtab_i) | |
Creation from array, see SMatrix. | |
QOperator (int dim_i, double *real, double *imag) | |
Creation from real array and imaginary array, see SMatrix. | |
QOperator (const SMatrix &m) | |
Constructor by copy from SMatrix. | |
QOperator (const QOperator &m) | |
Constructor by copy. | |
Friends | |
EXPORTED_FUNCTION Ket | operator* (const QOperator &m, const Ket &ket) |
QOperator - ket multiplication. | |
EXPORTED_FUNCTION Bra | operator* (const Bra &bra, const QOperator &m) |
Bra - QOperator multiplication. |
QOperator, quantum operator class definition.
This class provides the basical operation between Ket - Bra - Operators.
QOperator::QOperator | ( | int | dim_i = 1 |
) | [inline] |
Default constructor, see SMatrix.
QOperator::QOperator | ( | int | dim_i, | |
complex< double > | diag | |||
) | [inline] |
Diagonal constructor, see SMatrix.
QOperator::QOperator | ( | int | dim_i, | |
const complex< double > * | Mtab_i | |||
) | [inline] |
Creation from array, see SMatrix.
QOperator::QOperator | ( | int | dim_i, | |
double * | real, | |||
double * | imag | |||
) | [inline] |
Creation from real array and imaginary array, see SMatrix.
QOperator::QOperator | ( | const QOperator & | m | ) | [inline] |
Constructor by copy.
QOperator - ket multiplication.