class_docstr: Test that GroverOperator is applied correctly.
class_docstr_tok: ["Test","that","GroverOperator","is","applied","correctly","."]
docstr: Additional kernel to apply GroverOperator to all state wires.
docstr_tok: ["Additional","kernel","to","apply","GroverOperator","to","all","state","wires","."]
code: def grover_kernel_full_wires(self, state, op_wires, batched):
      """Additional kernel to apply GroverOperator to all state wires."""
      prefactor = 2 ** (1 - len(op_wires))
      sum_axes = tuple(range(batched, np.ndim(state)))
      collapsed = np.sum(state, axis=sum_axes)
      return prefactor * np.expand_dims(collapsed, sum_axes) - state
  
imports: from functools import reduce
  import pytest
  import numpy
  from scipy.stats import unitary_group
  import pennylane
  from pennylane.operation import _UNSET_BATCH_SIZE, Operation
  from pennylane.devices.qubit.apply_operation import apply_operation, apply_operation_einsum, apply_operation_tensordot
label_desc: Use image node_id 1 for calling the TestApplyGroverOperator obj's underlying member method code with example usage: obj.grover_kernel_full_wires(state, op_wires, batched) and returns: unknown