Geomon-Joshy / qosf_mentornship_task_2

This is my try at doing task 2 of qosf_mentorship screening task

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qosf_mentornship_task_2

This is my try at doing task 2 of qosf_mentorship screening tasks

libraries needed :-

  1. python3.
  2. qiskit .
  3. qiskit.visualization.
  4. array from numpy.
  5. random.
    We take a random number from the list list1=[0,1,2,3] using random.choice(list1)

We create a set of 4-bit numbers based on the random number.
A coresponding QuantumCircuit is created.
Few simple gates are applied to get a result.
The result is simulated using *Aer* simulator and is viewed on a histogram using plot_histogram
Here is you what you can expect:-

Random number 4-bit value Result
0 0011 0100
1 1010 0011
2 0101 0110
3 1100 0001

About

This is my try at doing task 2 of qosf_mentorship screening task

License:GNU General Public License v3.0


Languages

Language:Python 100.0%