In this case, Hermiticity cannot be guaranteed - as such, by default
term coefficients and identity operators are ignored. However, this
behavior can be modified via keyword arguments describe below if necessary.
Args
operator
either a BosonOperator or QuadOperator.
ignore_coeff
bool
By default, the coefficients for
each term are ignored; S(a q^m p^n) = S(q^m p^n), and
the returned operator is always Hermitian.
If set to False, then instead the coefficients are taken into
account; S(q^m p^n) = a S(q^m p^n). In this case, if
a is a complex coefficient, it is not guaranteed that
the returned operator will be Hermitian.
ignore_identity
bool
By default, identity terms are ignore;
S(I) = 0. If set to False, then instead S(I) = I.
Returns
transformed_operator
an operator of the same class as in the input.
Warning
The runtime of this method is exponential in the maximum locality
of the original operator.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[]]