TensorKet definition class. More...
#include <QO.h>
Public Member Functions | |
| TensorKet (Ket a, Ket b) | |
| Constructor for 2 kets. | |
| TensorKet (int Nb, Ket *ket) | |
| Constructor for 3 or more kets. | |
| ~TensorKet () | |
| int | getNb () const |
| Send the number of kets in the tensor product. | |
| int | getHtot () const |
| Send the total dimension of Hilbert space. | |
| int | getHdim (int object) const |
| Send the singular dimension of the Hilbert space. | |
| Ket | getKet (int i) const |
| Send the singular ket operator. | |
| Ket | getPartialTrace (int respectto) |
| Send the partial trace in respect to another ket. | |
TensorKet definition class.
This class provides a easy way to create tensor products between 2 or more kets.
| TensorKet::TensorKet | ( | int | Nb, | |
| Ket * | ket | |||
| ) |
Constructor for 3 or more kets.
| TensorKet::~TensorKet | ( | ) |
| int TensorKet::getHdim | ( | int | object | ) | const [inline] |
Send the singular dimension of the Hilbert space.
| int TensorKet::getHtot | ( | ) | const [inline] |
Send the total dimension of Hilbert space.
| Ket TensorKet::getKet | ( | int | i | ) | const [inline] |
Send the singular ket operator.
| int TensorKet::getNb | ( | ) | const [inline] |
Send the number of kets in the tensor product.
| Ket TensorKet::getPartialTrace | ( | int | respectto | ) |
Send the partial trace in respect to another ket.
Allow you to get the partial trace of a tensor product.
| respectto | Is the index of the ket to be calculated. |
1.6.1