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: Construct a new quantum object.
  
  Parameters
  ==========
  
  args : tuple
      The list of numbers or parameters that uniquely specify the
      quantum object. For a state, this will be its symbol or its
      set of quantum numbers.
  
  Examples
  ========
  
  >>> from sympy.physics.quantum.qexpr import QExpr
  >>> q = QExpr(0)
  >>> q
  0
  >>> q.label
  (0,)
  >>> q.hilbert_space
  H
  >>> q.args
  (0,)
  >>> q.is_commutative
  False
docstr_tok: ["Construct","a","new","quantum","object",".","Parameters","==========","args",":","tuple","The","list","of","numbers","or","parameters","that","uniquely","specify","the","quantum","object",".","For","a","state",",","this","will","be","its","symbol","or","its","set","of","quantum","numbers",".","Examples","========",">",">",">","from","sympy.physics.quantum.qexpr","import","QExpr",">",">",">","q","=","QExpr","(","0",")",">",">",">","q","0",">",">",">","q.label","(","0",",",")",">",">",">","q.hilbert_space","H",">",">",">","q.args","(","0",",",")",">",">",">","q.is_commutative","False"]
code: def __new__(cls, *args, **kwargs):
      """Construct a new quantum object.
  
      Parameters
      ==========
  
      args : tuple
          The list of numbers or parameters that uniquely specify the
          quantum object. For a state, this will be its symbol or its
          set of quantum numbers.
  
      Examples
      ========
  
      >>> from sympy.physics.quantum.qexpr import QExpr
      >>> q = QExpr(0)
      >>> q
      0
      >>> q.label
      (0,)
      >>> q.hilbert_space
      H
      >>> q.args
      (0,)
      >>> q.is_commutative
      False
      """
  
      # First compute args and call Expr.__new__ to create the instance
      args = cls._eval_args(args, **kwargs)
      if len(args) == 0:
          args = cls._eval_args(tuple(cls.default_args()), **kwargs)
      inst = Expr.__new__(cls, *args)
      # Now set the slots on the instance
      inst.hilbert_space = cls._eval_hilbert_space(args)
      return inst
  
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 2 for calling the QExpr obj's underlying member method code with example usage: obj.__new__(cls) and returns: inst