code: def test_findstate(n_wires):
      """Asserts can find state marked by oracle, with operation full matrix and decomposition."""
      wires = list(range(n_wires))
  
      dev = qml.device("default.qubit", wires=wires)
  
      @qml.qnode(dev)
      def circ():
          for wire in wires:
              qml.Hadamard(wire)
  
          for _ in range(2):
              qml.Hadamard(wires[0])
              qml.MultiControlledX(wires=wires[1:] + wires[0:1])
              qml.Hadamard(wires[0])
              qml.GroverOperator(wires=wires)
  
          return qml.probs(wires=wires)
  
      probs = circ()
  
      assert np.argmax(probs) == len(probs) - 1
  
file_path: pennylane/tests/templates/test_subroutines/test_grover.py
imports: import functools
  import itertools
  import pytest
  import numpy
  import pennylane
  from pennylane.ops import Hadamard, PauliZ, MultiControlledX
label_desc: Use image node_id 11 for calling a global function with example usage: test_findstate(n_wires) and returns: qml