Struct LSTOptions

Struct Documentation

struct LSTOptions

Options for Lie Similarity Transformation.

See also

lst

Public Members

SEQUANT_DESIGNATED_INIT_ONLY

makes positional init (LSTOptions{true, false}) ill-formed, so every call site must name what it sets (LSTOptions{.unitary = true}); without it, reordering the fields below – or flipping the meaning of one while keeping its position, as use_connected_form did to use_commutators – silently reinterprets positional callers instead of failing to compile

bool unitary = false

If true, uses unitary generator.

bool use_connected_form = false

If true, uses connected products [A,B] = (AB)_c; otherwise uses explicit commutators [A,B] = AB - BA. The connected-product form is only equivalent if the reference is the Wick vacuum and the caller supplies operator connectivity downstream, hence the default is the explicit form. Otherwise the reference average of BA need not vanish, so no connectivity makes (AB)_c reproduce [A,B], under any vacuum.

bool skip_clone = false

If true, will not clone the input expression.