





'''simple docstring'''
import qiskit
def 				lowercase__   (   __lowercase						:  int				,  __lowercase						:  int     ) ->      qiskit.result.counts.Counts:



       """simple docstring"""






       __UpperCamelCase       =  qiskit.Aer.get_backend('aer_simulator'     )

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

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

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


if __name__ == "__main__":
    a__							:							Tuple =single_qubit_measure(2, 2)
    print(f'Total count for various states are: {counts}')



def 			A_      (    _UpperCAmelCase				,	_UpperCAmelCase				,	_UpperCAmelCase				,	_UpperCAmelCase				,	_UpperCAmelCase				,	):
						SCREAMING_SNAKE_CASE_: Optional[int]  		=       [redshift, radiation_density, matter_density, dark_energy]
						if any(p < 0 for p in parameters    ):
												raise ValueError("All input parameters must be positive"    )

						if any(p > 1 for p in parameters[1:4]    ):
												raise ValueError("Relative densities cannot be greater than one"    )
						else:
												SCREAMING_SNAKE_CASE_: int  		=       1 - (matter_density + radiation_density + dark_energy)

												SCREAMING_SNAKE_CASE_: Dict  		=       (
												    radiation_density * (redshift + 1) ** 4
												    + matter_density * (redshift + 1) ** 3
												    + curvature * (redshift + 1) ** 2
												    + dark_energy
												)

												SCREAMING_SNAKE_CASE_: Any  		=       hubble_constant * e_a ** (1 / 2)
												return hubble


if __name__ == "__main__":
						import doctest

						# run doctest
						doctest.testmod()

						# demo LCDM approximation
						lowerCAmelCase							:  List[Any]   	=						0.3

						print(
						    hubble_parameter(
						        hubble_constant=68.3,
						        radiation_density=1E-4,
						        matter_density=matter_density,
						        dark_energy=1 - matter_density,
						        redshift=0,
						    )
						)






