


'''simple docstring'''


from __future__ import annotations






def        __lowerCAmelCase       (__lowerCAmelCase					,       __lowerCAmelCase					,       __lowerCAmelCase      ):



		if (voltage, current, resistance).count(0      ) != 1:
				raise ValueError("One and only one argument must be 0"      )
		if resistance < 0:
				raise ValueError("Resistance cannot be negative"      )
		if voltage == 0:
				return {"voltage": float(current * resistance      )}
		elif current == 0:
				return {"current": voltage / resistance}
		elif resistance == 0:
				return {"resistance": voltage / current}
		else:
				raise ValueError("Exactly one argument must be 0"      )


if __name__ == "__main__":
						import doctest

						doctest.testmod()




import qiskit





def 				UpperCAmelCase						(    lowercase							,			lowercase							):







				"""simple docstring"""



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

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

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

				# Execute the circuit on the simulator
				__lowercase 			=							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__":
		print(F'''Total count for various states are: {single_qubit_measure(1, 1)}''')