I was wondering how can we convert data into a hash using Qiskit quantum computer? e.g, this code below will generate a SHA256 hash based on random data.
data = str(45) + "f5a55af7ea98" + "8e84ad6f84f66"
hash = hashlib.sha256(data.encode()).hexdigest()
print(hash)
result: d73ee4cd204acb431745ba79154dac7d73bfe05608d3911bb432bc8b4a8addf9
I know the answer is not easy, although the question looks simple.
Thank you