Sunday, May 26, 2024

Magic

 Getting through Sharma lesson 5. 

The code sdegment below is somewhat magical; one can run it a few times

and get different results. sometimes 0, sometimes 1. 


That is because we are using a simulator. On a real quantum computer, measurement

collapses a state( albeit for a very short moment). It is no longer usable for computation.

It either carries on, or it doesn't!!


                                                                   
                                      
                                                                     *     *     *

Finished Sharma 5 with using the Qiskit/matplolib Bloch sphere. One has a choice

on how to code this:

                                                                      


Spherical:

                                                                             



XYZ:

                                                                                 

https://www.perplexity.ai/search/quantum-Computing-use-.E0vjMpwQm2_KthONSlnmA

No comments: