class_docstr: Abstract base class for PennyLane devices.
  
  Args:
      wires (int or Iterable[Number, str]]): Number of subsystems represented by the device,
          or iterable that contains unique labels for the subsystems as numbers (i.e., ``[-1, 0, 2]``)
          or strings (``['ancilla', 'q1', 'q2']``). Default 1 if not specified.
      shots (int): Number of circuit evaluations/random samples used to estimate
          expectation values of observables. Defaults to 1000 if not specified.
class_docstr_tok: ["Abstract","base","class","for","PennyLane","devices",".","Args",":","wires","(","int","or","Iterable","[","Number",",","str","]","]",")",":","Number","of","subsystems","represented","by","the","device",",","or","iterable","that","contains","unique","labels","for","the","subsystems","as","numbers","(","i.e.",",","``","[","-1",",","0",",","2","]","``",")","or","strings","(","``","[","'ancilla","'",",","'q1","'",",","'q2","'","]","``",")",".","Default","1","if","not","specified",".","shots","(","int",")",":","Number","of","circuit","evaluations\/random","samples","used","to","estimate","expectation","values","of","observables",".","Defaults","to","1000","if","not","specified","."]
docstr: Return the (marginal) probability of each computational basis
  state from the last run of the device.
  
  Args:
      wires (Sequence[int]): Sequence of wires to return
          marginal probabilities for. Wires not provided
          are traced out of the system.
  
  Returns:
      OrderedDict[tuple, float]: Dictionary mapping a tuple representing the state
      to the resulting probability. The dictionary should be sorted such that the
      state tuples are in lexicographical order.
docstr_tok: ["Return","the","(","marginal",")","probability","of","each","computational","basis","state","from","the","last","run","of","the","device",".","Args",":","wires","(","Sequence","[","int","]",")",":","Sequence","of","wires","to","return","marginal","probabilities","for",".","Wires","not","provided","are","traced","out","of","the","system",".","Returns",":","OrderedDict","[","tuple",",","float","]",":","Dictionary","mapping","a","tuple","representing","the","state","to","the","resulting","probability",".","The","dictionary","should","be","sorted","such","that","the","state","tuples","are","in","lexicographical","order","."]
code: def probability(self, wires=None):
      """Return the (marginal) probability of each computational basis
      state from the last run of the device.
  
      Args:
          wires (Sequence[int]): Sequence of wires to return
              marginal probabilities for. Wires not provided
              are traced out of the system.
  
      Returns:
          OrderedDict[tuple, float]: Dictionary mapping a tuple representing the state
          to the resulting probability. The dictionary should be sorted such that the
          state tuples are in lexicographical order.
      """
      raise NotImplementedError(
          f"Returning probability not currently supported by {self.short_name}"
      )
  
imports: import abc
  import copy
  import types
  import warnings
  from collections import OrderedDict
  from collections.abc import Iterable, Sequence
  from functools import lru_cache
  import numpy
  import pennylane
  from pennylane.measurements import MeasurementProcess, CountsMP, Expectation, ExpectationMP, MidMeasureMP, Probability, ProbabilityMP, Sample, SampleMP, ShadowExpvalMP, State, Variance
  from pennylane.operation import Observable, Operation, Tensor, Operator, StatePrepBase
  from pennylane.ops import Hamiltonian, Sum
  from pennylane.tape import QuantumScript, QuantumTape, expand_tape_state_prep
  from pennylane.wires import WireError, Wires
  from pennylane.queuing import QueuingManager
label_desc: Use image node_id 47 for calling the Device obj's underlying member method code with example usage: obj.probability(wires) without return types