35 #include <MboExport.h>
MBO_EXPORT MboElemOp mboEye(MboLocInd dim)
Identity operator.
MBO_EXPORT MboElemOp mboAnnihilationOp(MboLocInd dim)
Quantum mechanical harmonic oscillator annihilation operator.
MBO_EXPORT void mboElemOpDeleteEntry(MboElemOp elemOp, int e)
Delete a non-zero entry from an operator.
MBO_EXPORT MboElemOp mboSigmaPlus()
Spin raising operator.
MBO_EXPORT void mboElemOpScale(struct MboAmplitude *a, MboElemOp elemOp)
Rescale an elementary operator.
MBO_EXPORT MboElemOp mboNumOp(MboLocInd dim)
Quantum mechanical harmonic oscillator number operator.
Error codes used by the MBO library.
MBO_EXPORT struct MboNonZeroEntry * mboElemOpGetEntries(MboElemOp elemOp)
Get the non-zero entries in the operator.
MBO_EXPORT MBO_STATUS mboElemOpMul(MboElemOp elemOpA, MboElemOp *elemOpB)
Add elementary operators.
MBO_EXPORT MboElemOp mboElemOpCopy(MboElemOp elemOp)
copy an elementary operator
Minimal complex numbers.
Definition: MboAmplitude.h:37
struct MboElemOp_t * MboElemOp
Type for representing elementary operators.
Definition: MboElemOp.h:56
MBO_EXPORT int mboElemOpCheck(MboElemOp elemOp)
Check internal integrity of an elementary operator.
MBO_EXPORT MBO_STATUS mboElemOpCreate(MboElemOp *elemOp)
Create a MboElemOp object.
MBO_STATUS
Error codes used by the MBO library.
Definition: MboErrors.h:33
MBO_EXPORT MBO_STATUS mboElemOpAddTo(MboLocInd r, MboLocInd c, struct MboAmplitude *a, MboElemOp *elemOp)
Add a non-zero entry to an MboElemOp.
A sparse matrix entry.
Definition: MboNonZeroEntry.h:37
MBO_EXPORT int mboElemOpNumEntries(MboElemOp elemOp)
Get the number of non-zero entries.
int MboLocInd
Local indices.
Definition: MboIndices.h:31
Integer types for indices used in mbo library.
MBO_EXPORT MboElemOp mboSigmaMinus()
Spin lowering operator.
MBO_EXPORT void mboElemOpDestroy(MboElemOp *elemOp)
Destroy a MboElemOp object.
MBO_EXPORT MBO_STATUS mboElemOpPlus(MboElemOp elemOpA, MboElemOp *elemOpB)
Add elementary operators.
MBO_EXPORT MboElemOp mboCreationOp(MboLocInd dim)
Quantum mechanical harmonic oscillator creation operator.
MBO_EXPORT MboElemOp mboSigmaZ()
Sigma z Pauli spin matrix.