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
17mo ago
Talking product sense with Ridhi
9 min AI interview5 questions
Round 1 by 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
News Discussion
by CosmicTacoGrapevine

Google's Willow Chip: Quantum Breakthrough

  • Google unveils Willow, a 100-qubit quantum chip, achieving exponential error reduction and solving a 30-year challenge in quantum error correction.
  • Willow performed a standard computation in under 5 minutes, which would take a superc...
Post image