"""simple docstring"""







import qiskit



def     lowercase__( __SCREAMING_SNAKE_CASE							:  int  ,    __SCREAMING_SNAKE_CASE							:  int   ):
     lowercase_			:       Optional[Any]									=			qiskit.Aer.get_backend('aer_simulator'   )

     # Create a Quantum Circuit acting on the q register
     lowercase_			:       Dict									=			qiskit.QuantumCircuit(__SCREAMING_SNAKE_CASE  ,    __SCREAMING_SNAKE_CASE   )

     # Apply X (NOT) Gate to Qubits 0 & 1
     circuit.x(0   )
     circuit.x(1   )

     # Map the quantum measurement to the classical bits
     circuit.measure([0, 1]  ,    [0, 1]   )

     # Execute the circuit on the qasm simulator
     lowercase_			:       List[Any]									=			qiskit.execute(__SCREAMING_SNAKE_CASE  ,    __SCREAMING_SNAKE_CASE  ,    shots=10_00   )

     # Return the histogram data of the results of the experiment.
     return job.result().get_counts(__SCREAMING_SNAKE_CASE   )


if __name__ == "__main__":
       __SCREAMING_SNAKE_CASE								=single_qubit_measure(2, 2)
       print(F"Total count for various states are: {counts}")


"""simple docstring"""







from argparse import ArgumentParser

from .env import EnvironmentCommand



def     lowercase__( ):
     lowercase_			:       List[Any]									=			ArgumentParser('Diffusers CLI tool'  ,    usage='diffusers-cli <command> [<args>]'   )
     lowercase_			:       int									=			parser.add_subparsers(help='diffusers-cli command helpers'   )

     # Register commands
     EnvironmentCommand.register_subcommand(__SCREAMING_SNAKE_CASE   )

     # Let's go
     lowercase_			:       str									=			parser.parse_args()

     if not hasattr(__SCREAMING_SNAKE_CASE  ,    'func'   ):
          parser.print_help()
          exit(1   )

     # Run
     lowercase_			:       Optional[Any]									=			args.func(__SCREAMING_SNAKE_CASE   )
     service.run()


if __name__ == "__main__":
       main()

