





'''simple docstring'''

import re

from filelock import FileLock


try:
		import nltk

		__lowerCAmelCase							:     str		     =True
except (ImportError, ModuleNotFoundError):
		__lowerCAmelCase							:     Optional[Any]		     =False

if NLTK_AVAILABLE:
		with FileLock(".lock") as lock:
				nltk.download("punkt", quiet=True)





def 						UpperCamelCase    (							_lowerCamelCase : Tuple	):
				re.sub("<n>"						,	""						,	a__	)  # remove pegasus newline char
				assert NLTK_AVAILABLE, "nltk must be installed to separate newlines between sentences. (pip install nltk)"
				return "\n".join(nltk.sent_tokenize(a__	)	)










'''simple docstring'''

import qiskit





def 						UpperCamelCase    (							_lowerCamelCase : int						,	_lowerCamelCase : int	):
    A__    =      qiskit.Aer.get_backend("aer_simulator"	)

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

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

    # Execute the circuit on the simulator
    A__    =      qiskit.execute(_lowerCamelCase						,	_lowerCamelCase						,	shots=10_00	)

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


if __name__ == "__main__":
  print(f"""Total count for various states are: {single_qubit_measure(1, 1)}""")



