Documentation for ITensorsOpenSystems._InternalUtils

ITensorsOpenSystems._InternalUtils.autoMPO_multiplyFunction

autoMPOmultiply(a::Scaled,b::Prod)::Scaled autoMPOmultiply(a::Sum,b::Sum) autoMPOmultiply(a::Sum,b) autoMPOmultiply(a,b::Sum) autoMPO_multiply(a, b)

Multiplies a pair of autoMPO objects in such a way that the result is an "expected form" That is it will always produce a sum of products, rather than a product of sums and it will correctly multiply a Scaled by a Prod

source
ITensorsOpenSystems._InternalUtils.partition_kwargsFunction

function partition_kwargs(kwargs,sigils::String...)::Dict{String,<:Dict}

Separates a named tuple into subsets based on suffixes of the keywords
returns a dictionary taking the suffixes as the keys and with a dictionary
of keywords (with the suffix removed) and associated values

see also: `partition_nosigil`
source
ITensorsOpenSystems._InternalUtils.partition_nosigilConstant

const partitionnosigil = "No Sigil" Used by `partitionkwargs` to denote the collection those keywords that have no suffix. Note that as it contains spaces it cannot be part of a valid keyword, so this cannot lead to ambiguity

see also: `partition_kwargs`
source