apply()#

QuadraticOperator.apply(state, input_=None)[source]#

Apply the operator to the given state / input: \(\Ophat_{\ell}(\qhat,\u) = \Hhat[\qhat\otimes\qhat]\)

Parameters
state(r,) ndarray

State vector.

input_(m,) ndarray or None

Input vector (not used).

Returns
out(r,) ndarray

Application \(\Hhat[\qhat\otimes\qhat]\).