class_docstr: A class for managing a circuit plot.
docstr: Return a dict ``{i:j}`` where i is the index of the wire that has
  been measured, and j is the gate where the wire is measured.
docstr_tok: ["Return","a","dict","``","{","i",":","j","}","``","where","i","is","the","index","of","the","wire","that","has","been","measured",",","and","j","is","the","gate","where","the","wire","is","measured","."]
code: def _measurements(self):
      """Return a dict ``{i:j}`` where i is the index of the wire that has
      been measured, and j is the gate where the wire is measured.
      """
      ismeasured = {}
      for i, g in enumerate(self._gates()):
          if getattr(g, "measurement", False):
              for target in g.targets:
                  if target in ismeasured:
                      if ismeasured[target] > i:
                          ismeasured[target] = i
                  else:
                      ismeasured[target] = i
      return ismeasured
  
imports: from __future__ import annotations
  from sympy.core.mul import Mul
  from sympy.external import import_module
  from sympy.physics.quantum.gate import Gate, OneQubitGate, CGate, CGateS
label_desc: Use image node_id 9 for calling the CircuitPlot obj's underlying member method code with example usage: obj._measurements() and returns: ismeasured