enlev2bm.m

From Spinach Documentation Wiki
Revision as of 21:04, 22 February 2026 by Kuprov (talk | contribs) (Create documentation page from Spinach function header)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Bosonic monomial expansion of specific bosonic energy

Syntax

          [states,coeffs]=enlev2bm(nlevels,lvl_num)

Arguments

        nlevels - number of energy levels in the  mode,
                  a positive integer
        lvl_num - energy level number, counting from the
                  empty mode state upwards

Outputs

        states  - states, in the Spinach BM basis index-
                  ing, that contribute to the operator in
                  question; use lin2kq to convert to K,Q
                  bosonic monomial indices
        coeffs  - coefficients with which the BMs enter
                  the linear combination

Examples

See examples in the Spinach distribution relevant to this function.

Notes

This page was generated from the function header in the Spinach repository.

See also

Main_Page

Version 2.11, authors: Ilya Kuprov