oper2bm.m

From Spinach Documentation Wiki
Revision as of 20:49, 22 February 2026 by Kuprov (talk | contribs) (Fix lead description from MATLAB header (folding/hyphenation pass))
Jump to: navigation, search

Bosonic monomial operator expansion of a user-specified square matrix.

Syntax

                   [states,coeffs]=oper2bm(A)

Arguments

        A      - a square matrix

Outputs

        states - states, in the Spinach BM basis index-
                 ing convention, that contribute to the
                 operator in question; use lin2kq() fun-
                 ction to convert to K,Q bosonic monomi-
                 al 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


Version 2.11, authors: Ilya Kuprov