MBO
 All Data Structures Files Functions Variables Typedefs Enumerations Modules Pages
Typedefs | Functions
MboElemOp.h File Reference

Definition of elementary operators. More...

#include <MboExport.h>
#include <MboIndices.h>
#include <MboErrors.h>

Go to the source code of this file.

Typedefs

typedef struct MboElemOp_t * MboElemOp
 Type for representing elementary operators. More...
 

Functions

MBO_EXPORT MBO_STATUS mboElemOpCreate (MboElemOp *elemOp)
 Create a MboElemOp object. More...
 
MBO_EXPORT void mboElemOpDestroy (MboElemOp *elemOp)
 Destroy a MboElemOp object. More...
 
MBO_EXPORT MBO_STATUS mboElemOpAddTo (MboLocInd r, MboLocInd c, struct MboAmplitude *a, MboElemOp *elemOp)
 Add a non-zero entry to an MboElemOp. More...
 
MBO_EXPORT void mboElemOpScale (struct MboAmplitude *a, MboElemOp elemOp)
 Rescale an elementary operator. More...
 
MBO_EXPORT MBO_STATUS mboElemOpPlus (MboElemOp elemOpA, MboElemOp *elemOpB)
 Add elementary operators. More...
 
MBO_EXPORT MBO_STATUS mboElemOpMul (MboElemOp elemOpA, MboElemOp *elemOpB)
 Add elementary operators. More...
 
MBO_EXPORT MboElemOp mboElemOpCopy (MboElemOp elemOp)
 copy an elementary operator More...
 
MBO_EXPORT int mboElemOpNumEntries (MboElemOp elemOp)
 Get the number of non-zero entries. More...
 
MBO_EXPORT struct MboNonZeroEntrymboElemOpGetEntries (MboElemOp elemOp)
 Get the non-zero entries in the operator. More...
 
MBO_EXPORT void mboElemOpDeleteEntry (MboElemOp elemOp, int e)
 Delete a non-zero entry from an operator. More...
 
MBO_EXPORT int mboElemOpCheck (MboElemOp elemOp)
 Check internal integrity of an elementary operator. More...
 
MBO_EXPORT MboElemOp mboSigmaPlus ()
 Spin raising operator. More...
 
MBO_EXPORT MboElemOp mboSigmaMinus ()
 Spin lowering operator. More...
 
MBO_EXPORT MboElemOp mboSigmaZ ()
 Sigma z Pauli spin matrix. More...
 
MBO_EXPORT MboElemOp mboEye (MboLocInd dim)
 Identity operator. More...
 
MBO_EXPORT MboElemOp mboNumOp (MboLocInd dim)
 Quantum mechanical harmonic oscillator number operator. More...
 
MBO_EXPORT MboElemOp mboAnnihilationOp (MboLocInd dim)
 Quantum mechanical harmonic oscillator annihilation operator. More...
 
MBO_EXPORT MboElemOp mboCreationOp (MboLocInd dim)
 Quantum mechanical harmonic oscillator creation operator. More...
 

Detailed Description

Definition of elementary operators.

Elementary operators are used as building blocks of tensor product operators. In the context of quantum mechanics they are single particle operators. Mathematically, they are sparse matrices: A collection of non-zero entries.