old_contents: __all__ = []
  
  # The following pattern is used below for importing sub-modules:
  #
  # 1. "from foo import *".  This imports all the names from foo.__all__ into
  #    this module. But, this does not put those names into the __all__ of
  #    this module. This enables "from sympy.physics.quantum import State" to
  #    work.
  # 2. "import foo; __all__.extend(foo.__all__)". This adds all the names in
  #    foo.__all__ to the __all__ of this module. The names in __all__
  #    determine which names are imported when
  #    "from sympy.physics.quantum import *" is done.
  
  from . import anticommutator
  from .anticommutator import *
  __all__.extend(anticommutator.__all__)
  
  from .qapply import __all__ as qap_all
  from .qapply import *
  __all__.extend(qap_all)
  
  from . import commutator
  from .commutator import *
  __all__.extend(commutator.__all__)
  
  from . import dagger
  from .dagger import *
  __all__.extend(dagger.__all__)
  
  from . import hilbert
  from .hilbert import *
  __all__.extend(hilbert.__all__)
  
  from . import innerproduct
  from .innerproduct import *
  __all__.extend(innerproduct.__all__)
  
  from . import operator
  from .operator import *
  __all__.extend(operator.__all__)
  
  from .represent import __all__ as rep_all
  from .represent import *
  __all__.extend(rep_all)
  
  from . import state
  from .state import *
  __all__.extend(state.__all__)
  
  from . import tensorproduct
  from .tensorproduct import *
  __all__.extend(tensorproduct.__all__)
  
  from . import constants
  from .constants import *
  __all__.extend(constants.__all__)
  
  from . import qutility
  from .qutility import *
  __all__.extend(qutility.__all__)
  
new_contents: # sympsi global imports
  from .anticommutator import *
  from .qapply import *
  from .commutator import *
  from .dagger import *
  from .hilbert import *
  from .innerproduct import *
  from .operator import *
  from .represent import *
  from .state import *
  from .tensorproduct import *
  from .constants import *
  from .qutility import *
subject: simplify __init__ file