



from cva import destroyAllWindows, imread, imshow, waitKey





def 							A			(  _UpperCAmelCase       :     Optional[Any]					)       ->				List[str]:







			'''simple docstring'''
			# getting number of pixels in the image
			_UpperCAmelCase ,  _UpperCAmelCase	 =     img.shape[0], img.shape[1]

			# converting each pixel's color to its negative
			for i in range(_UpperCAmelCase					):
						for j in range(_UpperCAmelCase					):
									_UpperCAmelCase	 =     [255, 255, 255] - img[i][j]

			return img


if __name__ == "__main__":
							# read original image
							UpperCAmelCase__     = imread("image_data/lena.jpg", 1)

							# convert to its negative
							UpperCAmelCase__     = convert_to_negative(img)

							# show result image
							imshow("negative of original image", img)
							waitKey(0)
							destroyAllWindows()





import qiskit





def 							A			(  _UpperCAmelCase       :     int							,     _UpperCAmelCase       :     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(_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
			_UpperCAmelCase	 =     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__":
							UpperCAmelCase__     = single_qubit_measure(2, 2)
							print(f"""Total count for various states are: {counts}""")
