You are browsing as a guest. Sign up (or log in) to start making projects!

6h 8m 51s logged

Its Devlog 2 and in midway didn’t knew That I will be able to go further in project but somehow Curosity pushed it. So I have basically in this Version I made following new Things -

  1. Added fundamental Single Qubit Gates and the Moment someone drag Gates into Circuit and it get Translated into circuit Instructions JSON which tracks for which gate is applied at target and step;

  2. The moment you click on Playcircuit button it Calculates the probability of Each possible Qubit state and corresponding qiskit code;

Basically this part of calculating the Circuit I had options either to use Qiskit directly via Python, Use react pre-written Scripts in react or Reinvent the Wheel by making my own Simulator which might not be as Efficient as Already made ones. So to see how strong my kidneys are I chose 3rd one. But you won’t believe I got answers to all My questions whether Why more qubits means exponential computation time, or tensors and many other things which I will write in blogs in some time.

So basically it was about initializing a State vector and then running step by step tensor product of gates applied and then when I got a single wire as a result of all gates in each step, then multiply the state vector with Matrix which contains 2^N rows and columns (n is number of qubits) which finally gives you the amplitudes of each state. FInally you format them to Show.

Now it still need better design and More code organization after which I will push new Version; till then You are welcome for Questions and Suggestions.

Note - This version handle single qubits till now.

0
11

Comments 0

No comments yet. Be the first!