Quantum computing, Computing, Qubit Project with IBM Qiskit | Part 6: User Buttons | Jay Shah
So i the most exciting part, i guess so before we start coding the buttons in the button frame, its good for us to you know, have a look at all these buttons. What do they mean? So, if you can see here in this button frame, we have a lot of buttons and we have two categories of buttons. One is these uh buttons that you can see, which are the actual gates? Quantum gates did all these buttons here: x, y z, r, x, r y r, z, s s d, t, t d and h, all of them denote quantum gates and they perform these operation of quantum gate. So the i call them quantum buttons and all the buttons that you see here in sort of light pink color. These are the second class of buttons that we have, and these are just sort of utility buttons or for user comfort. So let us understand the the functions of these buttons before we dive deep into a coding. So you know what you are doing so before we will core all the buttons. I will tell you: what are the functions of all these buttons? What is the quantum physics that goes behind all these so and before we will start coding these buttons, you will be having some basic understanding of all the single qubit gates and all these buttons and what button means. What so lets? First talk about all these buttons. The four buttons quit visualize clear and about so about button lets click it.
So you can see here. What is this? You can see the logo, the first thing to notice. We have the logo the same as our main window and, if you remember from the previous video i told you that we will, we were setting default is equal to uh, low code or ico, and this is the reason. So, even if we have any other window that pops up it will be still this, you can see. We have a few options here, nothing to worry, then the title is about now the same way we gave quantum classes to this window. We can give it to this, then this is a text that sort of heading that we give about bottom glasses. So this is a visualization tool for single qubit rotation on the block sphere, and this is created by me jaisha, and we have used python peak internet use kit for this project. Now we have all these buttons and their definitions along with these. The commands that you can use so on this in this column, what you see are the commands that you can use to apply these rotations, so all of these buttons actually apply rotations and then well see in detail what what all this means that you can see On your screen, the special note for these x rx, ry and rz buttons, and we will also see error handling – and this is related to that and another note that we want our users to understand so this about quantum glossy.
This about button just displays this text. This complete text, so this in this whole window, will give the entire overview of the project to the user. So when a user is using, he knows what things means: what for example, flips the state of qubit when you use this x date? So we i just just given the function of a particular gate and the command you can use again. You dont need to worry about this. We will be seeing this shortly. What everything means here and now just let me just close it go on so that that was everything about the about button and uh. Now let me get to the clear button so lets see. I have just applied a few gates. I am trying to visualize something, but after i completed this visualization, i want to visualize some other set of operations, so i dont want to close the window and then again run everything again run the program for next visualization, so thats. Why this clear button comes into the picture, so what this clear button does is it clears the screen very obvious, and the other thing that it does is that it re initialize the circuit to the initial state. So when we apply all these commands, there are the various operations that goes on and it changes the state of the circuit of the qubit. So when we press clear it also brings the qubit back to its initial state. So these are the two functions of the clear command and then we come to the visualize button after the clear button uh we come to this visualize button and it is the most important button in the entire project so say, for example, i press these two buttons Here, but how i visualize it so we click on visualize and another pop up window will come up.
It will take time responding, it happens there we go, you can see, you can see it here, these rotations that are going on and its okay. If you dont understand this, so it goes here. So this is the rotation and you can see you save the figure you can just you know, drag it here. Everything have a better look but thats all, and we said original view, so get back to the original view, and this functionality is provided by q skip. So we. What uh we will do is that you use that already provided functionality, so we can just build over it. So visualize button has only one function that visualizes everything you see just and another button here. Is this quit so once you have visualized your circuit and you want to close this application, you can click on quit gone, so it closes the application, it aborts it its done. So that was a four buttons uh. Let me show you again the project yeah. So in this video we saw the function of these four buttons about displays. The info about the project, clear clears the clear button clears the screen and it re initializes. The circuit to the initial state visualize button helps us to visualize the circuit that we have typed and the quit button. Uh just uh closes the application, so these are the four buttons that you have seen in the next video. We will see some buttons uh in uh, some of the of these buttons and see what is the mat behind with the mathematics that drives these transformations and how we use qskit for it, and we will visualize it too.
So uh lets see uh uh you in the next video. I hope you like this video and the the most amazing stuff will coming up in the next video.