






import qiskit





def  _lowerCamelCase						(						__lowerCamelCase = 2       ) ->			qiskit.result.counts.Counts:

     '''simple docstring'''
     UpperCAmelCase__      :  str				      =			qubits

     # Using Aer's simulator
     UpperCAmelCase__      :  Tuple				      =			qiskit.Aer.get_backend("""aer_simulator"""       )

     # Creating a Quantum Circuit acting on the q register
     UpperCAmelCase__      :  Tuple				      =			qiskit.QuantumCircuit(__lowerCamelCase ,							__lowerCamelCase       )

     # Adding a H gate on qubit 0 (now q0 in superposition)
     circuit.h(0       )

     for i in range(1 ,							__lowerCamelCase       ):
          # Adding CX (CNOT) gate
          circuit.cx(i - 1 ,							__lowerCamelCase       )

     # Mapping the quantum measurement to the classical bits
     circuit.measure(list(range(__lowerCamelCase       )       ) ,							list(range(__lowerCamelCase       )       )       )

     # Now measuring any one qubit would affect other qubits to collapse
     # their super position and have same state as the measured one.

     # Executing the circuit on the simulator
     UpperCAmelCase__      :  Optional[int]				      =			qiskit.execute(__lowerCamelCase ,							__lowerCamelCase ,							shots=1000       )

     return job.result().get_counts(__lowerCamelCase       )


if __name__ == "__main__":
      print(f'''Total count for various states are: {quantum_entanglement(3)}''')








'''simple docstring'''





def snake_case_     (					lowercase__ = "The quick brown fox jumps over the lazy dog"   ,       ):
  UpperCAmelCase__      :					Dict				       =							set()

  # Replace all the whitespace in our sentence
  UpperCAmelCase__      :					str				       =							input_str.replace(" "   ,       ""		)
  for alpha in input_str:
    if "a" <= alpha.lower() <= "z":
      frequency.add(alpha.lower()		)
  return len(lowercase__		) == 2_6







def snake_case_     (					lowercase__ = "The quick brown fox jumps over the lazy dog"   ,       ):
  UpperCAmelCase__      :					str				       =							[False] * 2_6
  for char in input_str:
    if char.islower():
      UpperCAmelCase__      :					List[Any]				       =							True
    elif char.isupper():
      UpperCAmelCase__      :					List[Any]				       =							True
  return all(lowercase__		)







def snake_case_     (					lowercase__ = "The quick brown fox jumps over the lazy dog"   ,       ):
  return len({char for char in input_str.lower() if char.isalpha()}		) == 2_6







def snake_case_     (					):
  from timeit import timeit

  UpperCAmelCase__      :					Union[str, Any]				       =							"from __main__ import is_pangram, is_pangram_faster, is_pangram_fastest"
  print(timeit("is_pangram()"   ,       setup=lowercase__		)		)
  print(timeit("is_pangram_faster()"   ,       setup=lowercase__		)		)
  print(timeit("is_pangram_fastest()"   ,       setup=lowercase__		)		)
  # 5.348480500048026, 2.6477354579837993, 1.8470395830227062
  # 5.036091582966037, 2.644472333951853,  1.8869528750656173


if __name__ == "__main__":
      import doctest

      doctest.testmod()
      benchmark()



