TensorQOperator definition class. More...
#include <QO.h>
Public Member Functions | |
TensorQOperator (QOperator a, QOperator b) | |
Constructor for 2 QOperators. | |
TensorQOperator (int Nb, QOperator *op) | |
Constructor for 3 or more QOperators. | |
~TensorQOperator () | |
Destructor. | |
int | getNb () const |
Send the number of QOperator inside the tensor product. | |
int | getHtot () const |
Send the total dimension of the Hilbert space. | |
int | getHdim (int object) const |
Send the singular dimension of Hilbert space. | |
QOperator | getQOperator (int i) const |
Send the singular QOperator. | |
QOperator | getPartialTrace (int respectto) |
Send the partial trace in respect to another QOperator. |
TensorQOperator definition class.
This class provides a easy way to create tensor products between 2 or more QOperators.
TensorQOperator::TensorQOperator | ( | int | Nb, | |
QOperator * | op | |||
) |
Constructor for 3 or more QOperators.
TensorQOperator::~TensorQOperator | ( | ) |
Destructor.
int TensorQOperator::getHdim | ( | int | object | ) | const [inline] |
Send the singular dimension of Hilbert space.
int TensorQOperator::getHtot | ( | ) | const [inline] |
Send the total dimension of the Hilbert space.
int TensorQOperator::getNb | ( | ) | const [inline] |
Send the number of QOperator inside the tensor product.
QOperator TensorQOperator::getPartialTrace | ( | int | respectto | ) |
Send the partial trace in respect to another QOperator.
Calculate the partial trace.
respectto | Is the index to get the partial trace. |