Skip to main content

OperatorPolynomial

A polynomial operator is defined in terms of a polynomial and an operator. It applies the polynomial to the operator when acting on vectors. For example, a polynomial p(x)=n=0Nanxnp(x) = \sum_{n=0}^{N} a_n x^n becomes p(A)=n=0NanAnp(A) = \sum_{n=0}^{N} a_n A^n when applied to an operator AA.

Constructors

OperatorPolynomial(const Operator operator, const Polynomial<real> polynomial) -> OperatorPolynomial

Constructs an OperatorPolynomial from an Operator and a Polynomial.

Parameters

  • operator: The operator to wrap (e.g. X, Create, operator_sum).
  • polynomial: The polynomial to apply to the operator.