class_docstr: Immutable dictionary used to represent a Fermi sentence, a linear combination of Fermi words, with the keys
  as FermiWord instances and the values correspond to coefficients.
  
  >>> w1 = FermiWord({(0, 0) : '+', (1, 1) : '-'})
  >>> w2 = FermiWord({(0, 1) : '+', (1, 2) : '-'})
  >>> s = FermiSentence({w1 : 1.2, w2: 3.1})
  >>> s
  1.2 * a⁺(0) a(1)
  + 3.1 * a⁺(1) a(2)
class_docstr_tok: ["Immutable","dictionary","used","to","represent","a","Fermi","sentence",",","a","linear","combination","of","Fermi","words",",","with","the","keys","as","FermiWord","instances","and","the","values","correspond","to","coefficients",".",">",">",">","w1","=","FermiWord","(","{","(","0",",","0",")",":","'+","'",",","(","1",",","1",")",":","'-","'","}",")",">",">",">","w2","=","FermiWord","(","{","(","0",",","1",")",":","'+","'",",","(","1",",","2",")",":","'-","'","}",")",">",">",">","s","=","FermiSentence","(","{","w1",":","1.2",",","w2",":","3.1","}",")",">",">",">","s","1.2","*","a\u207a","(","0",")","a","(","1",")","+","3.1","*","a\u207a","(","1",")","a","(","2",")"]
docstr: Reverse multiply a FermiSentence
  
  Multiplies a FermiSentence "from the left" with an object that can't be modified
  to support __mul__ for FermiSentence. Will be defaulted in for example when
  multiplying ``2 * fermi_sentence``, since the ``__mul__`` operator on an integer
  will fail to multiply with a FermiSentence
docstr_tok: ["Reverse","multiply","a","FermiSentence","Multiplies","a","FermiSentence","``","from","the","left","''","with","an","object","that","ca","n't","be","modified","to","support","__mul__","for","FermiSentence",".","Will","be","defaulted","in","for","example","when","multiplying","``","2","*","fermi_sentence","``",",","since","the","``","__mul__","``","operator","on","an","integer","will","fail","to","multiply","with","a","FermiSentence"]
code: def __rmul__(self, other):
      r"""Reverse multiply a FermiSentence
  
      Multiplies a FermiSentence "from the left" with an object that can't be modified
      to support __mul__ for FermiSentence. Will be defaulted in for example when
      multiplying ``2 * fermi_sentence``, since the ``__mul__`` operator on an integer
      will fail to multiply with a FermiSentence"""
  
      if isinstance(other, (Number, ndarray)):
          if isinstance(other, ndarray) and qml.math.size(other) > 1:
              raise ValueError(
                  f"Arithmetic Fermi operations can only accept an array of length 1, "
                  f"but received {other} of length {len(other)}"
              )
          vals = [i * other for i in self.values()]
          return FermiSentence(dict(zip(self.keys(), vals)))
  
      raise TypeError(
          f"Cannot multiply {type(other)} by FermiSentence."
      )
  
imports: import re
  from copy import copy
  from numbers import Number
  from numpy import ndarray
  import pennylane
label_desc: Use image node_id 11 for calling the FermiSentence obj's underlying member method code with example usage: obj.__rmul__(other) and returns: FermiSentence