class_docstr: Mid-circuit measurement.
  
  This class additionally stores information about unknown measurement outcomes in the qubit model.
  Measurements on a single qubit in the computational basis are assumed.
  
  Please refer to :func:`measure` for detailed documentation.
  
  Args:
      wires (.Wires): The wires the measurement process applies to.
          This can only be specified if an observable was not provided.
      reset (bool): Whether to reset the wire after measurement.
      postselect (Optional[int]): Which basis state to postselect after a mid-circuit
          measurement. None by default. If postselection is requested, only the post-measurement
          state that is used for postselection will be considered in the remaining circuit.
      id (str): Custom label given to a measurement instance.
class_docstr_tok: ["Mid-circuit","measurement",".","This","class","additionally","stores","information","about","unknown","measurement","outcomes","in","the","qubit","model",".","Measurements","on","a","single","qubit","in","the","computational","basis","are","assumed",".","Please","refer","to",":","func",":","`","measure","`","for","detailed","documentation",".","Args",":","wires","(",".Wires",")",":","The","wires","the","measurement","process","applies","to",".","This","can","only","be","specified","if","an","observable","was","not","provided",".","reset","(","bool",")",":","Whether","to","reset","the","wire","after","measurement",".","postselect","(","Optional","[","int","]",")",":","Which","basis","state","to","postselect","after","a","mid-circuit","measurement",".","None","by","default",".","If","postselection","is","requested",",","only","the","post-measurement","state","that","is","used","for","postselection","will","be","considered","in","the","remaining","circuit",".","id","(","str",")",":","Custom","label","given","to","a","measurement","instance","."]
code: def __init__(
      self,
      wires: Optional[Wires] = None,
      reset: Optional[bool] = False,
      postselect: Optional[int] = None,
      id: Optional[str] = None,
  ):
      super().__init__(wires=Wires(wires), id=id)
      self.reset = reset
      self.postselect = postselect
  
imports: import uuid
  from typing import Generic, TypeVar, Optional
  import numpy
  import pennylane
  from pennylane.wires import Wires
  from .measurements import MeasurementProcess, MidMeasure
label_desc: Use image node_id 2 to create a new MidMeasureMP object from inherited base classes: MeasurementProcess with example: obj = MidMeasureMP(wires, reset, postselect, id)