


"""simple docstring"""
from __future__ import annotations

def 				_snake_case      (   __snake_case							:      Tuple   ):




   """simple docstring"""







   if len(a__   ) == 0:
      return array

   _lowerCamelCase	:					List[Any]   =		min(a__   ), max(a__   )

   # Compute the variables
   _lowerCamelCase	:					Optional[Any]   =		_max - _min + 1
   _lowerCamelCase	:					Optional[int]   =		[0] * holes_range, [0] * holes_range

   # Make the sorting.
   for i in array:
      _lowerCamelCase	:					Dict   =		i - _min
      _lowerCamelCase	:					Optional[Any]   =		i
      holes_repeat[index] += 1

   # Makes the array back by replacing the numbers.
   _lowerCamelCase	:					List[str]   =		0
   for i in range(a__   ):
      while holes_repeat[i] > 0:
         _lowerCamelCase	:					Union[str, Any]   =		holes[i]
         index += 1
         holes_repeat[i] -= 1

    # Returns the sorted array.
   return array


if __name__ == "__main__":
 import doctest

 doctest.testmod()
 UpperCAmelCase				=						input("""Enter numbers separated by comma:\n""")
 UpperCAmelCase				=						[int(x) for x in user_input.split(""",""")]
 print(pigeon_sort(unsorted))









"""simple docstring"""


import qiskit


def        UpperCAmelCase      (					a__     ,      a__ ):





						'''simple docstring'''






						lowerCAmelCase   :List[Any]						=			qiskit.Aer.get_backend('aer_simulator' )

						# Create a Quantum Circuit acting on the q register
						lowerCAmelCase   :Optional[int]						=			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
						lowerCAmelCase   :Dict						=			qiskit.execute(a__     ,      a__     ,      shots=10_00 )

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


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