TensorKet Class Reference

TensorKet definition class. More...

#include <QO.h>

Inheritance diagram for TensorKet:
Ket

List of all members.

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.

Detailed Description

TensorKet definition class.

This class provides a easy way to create tensor products between 2 or more kets.


Constructor & Destructor Documentation

TensorKet::TensorKet ( Ket  a,
Ket  b 
)

Constructor for 2 kets.

TensorKet::TensorKet ( int  Nb,
Ket ket 
)

Constructor for 3 or more kets.

TensorKet::~TensorKet (  ) 

Member Function Documentation

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.

Parameters:
respectto Is the index of the ket to be calculated.

The documentation for this class was generated from the following files:

Generated on Sun Sep 6 20:54:37 2009 for CQEDSimulator by  doxygen 1.6.1