SwirlyPretzel
SwirlyPretzel

Need Threads on Grapevine: Here's what I did with Quantum Computing

Created a Quantum Circuit that implements Bernstein Vazirani algorithm to find a secret binary substring faster than a classical computer.

Essentially, if there is a secret substring S then it will take |S| tries for a classical computer to guess it. But using Bernstein Vazirani Algorithm does it in a single try.

So, for a secret substring 1001, on a 4 qubit quantum computer, we can do a single shot computation and arrive at the string which was not seen by the circuit.

Bernstein Vazirani algorithm gets the secret substring exactly as 1001 in ~636 out of every 1000 times. The erroneous values in the histogram for other possible combinations, our original secret substring was 1001, but we can also see that 0000, 0001 …. 1111 were also computed in a few cases, this error seen in the histogram is due to the quantum computing error.

Post image
12mo ago
Find out if you are being paid fairly.Download Grapevine
SqueakyCupcake
SqueakyCupcake

I don’t understand anything. But I’m happy for you. Or sorry this happened.

SqueakyPretzel
SqueakyPretzel

Hahaha

Discover more
Curated from across
Software Engineers

This changes everything [HOLY F]

I've been doomscrolling through Google's latest quantum flex and I'm actually shaking rn. They just dropped the most insane quantum results since Shor decided prime numbers were cringe and developed the way to crack prime integers in pol...

Post image
23K
Comments
user

Personally, I feel this is quite big but not as big as what Sundar's tweet got the reaction for. I feel Google has ...

Software Engineers
by SqueakyPickleGoogle
Comments
user

I’m amazed but not scared about AI/AGI, but eventually it will be regulated by government or self regulated by tech c...

user

Public releases are always 1-2 versions behind in house stuff. Many people sadly fail to realise this. They cou...

user

Wow they already had this internally since October 2023. Brilliant