






'''simple docstring'''



import qiskit



def  __UpperCAmelCase						(					SCREAMING_SNAKE_CASE__:						int,       SCREAMING_SNAKE_CASE__:						int     )	->      qiskit.result.counts.Counts:

   """simple docstring"""
   __a					  =     qiskit.Aer.get_backend('aer_simulator'     )

   # Create a Quantum Circuit acting on the q register
   __a					  =     qiskit.QuantumCircuit(a__,       a__     )

   # 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
   __a					  =     qiskit.execute(a__,       a__,       shots=1000     )

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


if __name__ == "__main__":
 __UpperCamelCase   :							List[Any]         =   single_qubit_measure(2, 2)
 print(f"""Total count for various states are: {counts}""")



from .imports import is_rich_available


if is_rich_available():
		from rich.traceback import install

		install(show_locals=False)

else:
		raise ModuleNotFoundError('''To use the rich extension, install rich with `pip install rich`''')
