
"""simple docstring"""




def  _lowerCAmelCase		(		_UpperCamelCase = 4_000_000						):






  """simple docstring"""



  _lowercase:			Dict       =     [0, 1]
  _lowercase:			Optional[Any]       =     0
  while fib[i] <= n:
    fib.append(fib[i] + fib[i + 1]						)
    if fib[i + 2] > n:
      break
    i += 1
  _lowercase:			Dict       =     0
  for j in range(len(a_						) - 1						):
    if fib[j] % 2 == 0:
      total += fib[j]

  return total


if __name__ == "__main__":
  print(f"""{solution() = }""")


"""simple docstring"""




import qiskit




def  _lowerCAmelCase		(		_UpperCamelCase ,				_UpperCamelCase						):






  """simple docstring"""



  _lowercase:			Dict       =     qiskit.Aer.get_backend('''aer_simulator'''						)

  # Create a Quantum Circuit acting on the q register
  _lowercase:			str       =     qiskit.QuantumCircuit(_UpperCamelCase ,				_UpperCamelCase						)

  # 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:			Tuple       =     qiskit.execute(_UpperCamelCase ,				_UpperCamelCase ,				shots=1_000						)

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


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