# Converting data into a SHA256 hash using Qiskit quantum computer

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)


I know the answer is not easy, although the question looks simple.

Thank you

• @ZakariaHalloumi that's not possible, as simulation would require more than $2^{256}$ bits of memory, which is way, way more than the number of atoms in the universe. Remember that simulation only helps designing quantum algorithms, it doesn't provide any speedup when compared to classical algorithms May 20 at 23:40