class_docstr: Measurement process that returns the quantum state in the computational basis.
  
  Please refer to :func:`state` for detailed documentation.
  
  Args:
      wires (.Wires): The wires the measurement process applies to.
      id (str): custom label given to a measurement instance, can be useful for some applications
          where the instance has to be identified
class_docstr_tok: ["Measurement","process","that","returns","the","quantum","state","in","the","computational","basis",".","Please","refer","to",":","func",":","`","state","`","for","detailed","documentation",".","Args",":","wires","(",".Wires",")",":","The","wires","the","measurement","process","applies","to",".","id","(","str",")",":","custom","label","given","to","a","measurement","instance",",","can","be","useful","for","some","applications","where","the","instance","has","to","be","identified"]
code: def process_state(self, state: Sequence[complex], wire_order: Wires):
      # pylint:disable=redefined-outer-name
      wires = self.wires
      if not wires or wire_order == wires:
          return qml.math.cast(state, "complex128")
  
      if set(wires) != set(wire_order):
          raise WireError(
              f"Unexpected unique wires {Wires.unique_wires([wires, wire_order])} found. "
              f"Expected wire order {wire_order} to be a rearrangement of {wires}"
          )
  
      shape = (2,) * len(wires)
      flat_shape = (2 ** len(wires),)
      desired_axes = [wire_order.index(w) for w in wires]
      if qml.math.ndim(state) == 2:  # batched state
          batch_size = qml.math.shape(state)[0]
          shape = (batch_size,) + shape
          flat_shape = (batch_size,) + flat_shape
          desired_axes = [0] + [i + 1 for i in desired_axes]
  
      state = qml.math.reshape(state, shape)
      state = qml.math.transpose(state, desired_axes)
      state = qml.math.reshape(state, flat_shape)
      return qml.math.cast(state, "complex128")
  
file_path: pennylane/pennylane/measurements/state.py
imports: from typing import Sequence, Optional
  import pennylane
  from pennylane.wires import Wires, WireError
  from .measurements import State, StateMeasurement
label_desc: Use image node_id 5 for calling the StateMP obj's underlying member method code with example usage: obj.process_state(state, wire_order) and returns: qml, qml