MBO
 All Data Structures Files Functions Variables Typedefs Enumerations Modules Pages
SimpleExample
Basic example: embed spin lowering operator into a many particle space.
*/
#include <Mbo.h>
int main()
{
MboProdSpace singleParticleSpace = mboProdSpaceCreate(2);
MboProdSpace manyParticleSpace = mboProdSpaceCreate(0);
int N = 20;
int i;
for (i = 0; i < N; ++i) {
mboProdSpaceMul(singleParticleSpace, &manyParticleSpace);
}
mboTensorOpNull(manyParticleSpace, &smj);
int j = 7;
mboTensorOpAddTo(sm, j, smj);
mboProdSpaceDestroy(&singleParticleSpace);
mboProdSpaceDestroy(&manyParticleSpace);
}
/**