apply()

apply()#

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

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

Parameters:
state(r,) ndarray

State vector.

input_(m,) ndarray or None

Input vector (not used).

Returns:
out(r,) ndarray

The evaluation \(\Ghat[\qhat\otimes\qhat\otimes\qhat]\).