class_docstr: A base class for all quantum object like operators and states.
class_docstr_tok: ["A","base","class","for","all","quantum","object","like","operators","and","states","."]
docstr: Default printing behavior of QExpr objects
  
  Handles the default printing of a QExpr. To add other things to the
  printing of the object, such as an operator name to operators or
  brackets to states, the class should override the _print/_pretty/_latex
  functions directly and make calls to _print_contents where appropriate.
  This allows things like InnerProduct to easily control its printing the
  printing of contents.
docstr_tok: ["Default","printing","behavior","of","QExpr","objects","Handles","the","default","printing","of","a","QExpr",".","To","add","other","things","to","the","printing","of","the","object",",","such","as","an","operator","name","to","operators","or","brackets","to","states",",","the","class","should","override","the","_print\/_pretty\/_latex","functions","directly","and","make","calls","to","_print_contents","where","appropriate",".","This","allows","things","like","InnerProduct","to","easily","control","its","printing","the","printing","of","contents","."]
code: def _sympystr(self, printer, *args):
      """Default printing behavior of QExpr objects
  
      Handles the default printing of a QExpr. To add other things to the
      printing of the object, such as an operator name to operators or
      brackets to states, the class should override the _print/_pretty/_latex
      functions directly and make calls to _print_contents where appropriate.
      This allows things like InnerProduct to easily control its printing the
      printing of contents.
      """
      return self._print_contents(printer, *args)
  
imports: from sympy.core.expr import Expr
  from sympy.core.symbol import Symbol
  from sympy.core.sympify import sympify
  from sympy.matrices.dense import Matrix
  from sympy.printing.pretty.stringpict import prettyForm
  from sympy.core.containers import Tuple
  from sympy.utilities.iterables import is_sequence
  from sympy.physics.quantum.dagger import Dagger
  from sympy.physics.quantum.matrixutils import numpy_ndarray, scipy_sparse_matrix, to_sympy, to_numpy, to_scipy_sparse
label_desc: Use image node_id 22 for calling the QExpr obj's underlying member method code with example usage: obj._sympystr(printer) and returns: self