{"id":41249,"date":"2025-10-13T22:30:37","date_gmt":"2025-10-13T17:00:37","guid":{"rendered":"https:\/\/tocxten.com\/?page_id=41249"},"modified":"2025-10-13T23:10:28","modified_gmt":"2025-10-13T17:40:28","slug":"quantum-gates-rotations-instead-of-logic","status":"publish","type":"page","link":"https:\/\/tocxten.com\/index.php\/quantum-gates-rotations-instead-of-logic\/","title":{"rendered":"Quantum Gates: Rotations Instead of Logic"},"content":{"rendered":"\n<p class=\"has-medium-font-size\">In <strong>classical computing<\/strong>, logic gates (like <strong>AND, OR, NOT<\/strong>) operate on bits that are strictly <strong>0 or 1<\/strong>. Each gate applies a deterministic rule \u2014 for example, a <strong>NOT<\/strong> gate simply flips the bit: <\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>0\u21921,1\u21920<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\">In <strong>quantum computing<\/strong>, however, qubits are not restricted to being just 0 or 1. They can be in a <strong>superposition<\/strong> \u2014 a combination of both. Because of this, quantum operations must act in a fundamentally different way from classical logic.<\/p>\n\n\n\n<p class=\"has-medium-font-size\">Let\u2019s explore how.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-pale-ocean-gradient-background has-background\"><strong>1. Qubits as Quantum States<\/strong><\/h3>\n\n\n\n<p class=\"has-medium-font-size\">A qubit\u2019s general state can be expressed as:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"674\" height=\"376\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-10.png\" alt=\"\" class=\"wp-image-41254\" style=\"width:608px;height:auto\" srcset=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-10.png 674w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-10-300x167.png 300w\" sizes=\"auto, (max-width: 674px) 100vw, 674px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">But before measurement, the qubit can exist in any combination of the two \u2014 visualized as a point on the <strong>Bloch sphere<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading has-pale-ocean-gradient-background has-background\"><strong>2. The Bloch Sphere: Visualizing a Qubit<\/strong><\/h3>\n\n\n\n<p class=\"has-medium-font-size\">The <strong>Bloch sphere<\/strong> is a geometric representation of all possible states of a single qubit.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-medium-font-size\">The <strong>north pole<\/strong> represents \u22230\u27e9<\/li>\n\n\n\n<li class=\"has-medium-font-size\">The <strong>south pole<\/strong> represents \u22231\u27e9<\/li>\n\n\n\n<li class=\"has-medium-font-size\">Any point on the sphere\u2019s surface represents a valid superposition of the two.<\/li>\n<\/ul>\n\n\n\n<p class=\"has-medium-font-size\">A qubit\u2019s state can be described by two angles, \u03b8 and \u03d5:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"432\" height=\"81\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-11.png\" alt=\"\" class=\"wp-image-41259\" srcset=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-11.png 432w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-11-300x56.png 300w\" sizes=\"auto, (max-width: 432px) 100vw, 432px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">Thus, the qubit state corresponds to a <strong>vector<\/strong> pointing somewhere on the sphere \u2014 and quantum gates <strong>rotate<\/strong> this vector.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-pale-ocean-gradient-background has-background\"><strong>3. Quantum Gates as Rotations<\/strong><\/h3>\n\n\n\n<p class=\"has-medium-font-size\">Unlike classical logic gates, quantum gates <strong>do not<\/strong> change discrete values (0 or 1).<br>They instead perform <strong>rotations<\/strong> or <strong>transformations<\/strong> of the qubit\u2019s state vector on the Bloch sphere.<\/p>\n\n\n\n<p class=\"has-medium-font-size\">Every quantum gate corresponds to a <strong>unitary matrix<\/strong>, U, which has the property:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"128\" height=\"41\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-12.png\" alt=\"\" class=\"wp-image-41262\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"708\" height=\"47\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-13.png\" alt=\"\" class=\"wp-image-41264\" srcset=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-13.png 708w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-13-300x20.png 300w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">Unitary operations ensure that <strong>probabilities remain normalized<\/strong> (the total probability = 1) \u2014 meaning <strong>quantum evolution is reversible<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-pale-ocean-gradient-background has-background\"><strong>4. Examples of Common Single-Qubit Gates<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading has-very-light-gray-to-cyan-bluish-gray-gradient-background has-background has-medium-font-size\"><strong>(a) Pauli-X Gate (Quantum NOT Gate)<\/strong><\/h4>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Matrix:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"154\" height=\"90\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-14.png\" alt=\"\" class=\"wp-image-41268\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"204\" height=\"129\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-15.png\" alt=\"\" class=\"wp-image-41269\"\/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">Visualization:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-medium-font-size\">A <strong>rotation by 180\u00b0 around the X-axis<\/strong> of the Bloch sphere.<\/li>\n<\/ul>\n\n\n\n<p class=\"has-medium-font-size\">This is the <strong>quantum equivalent of a classical NOT gate<\/strong>, but it can also flip components of superpositions \u2014 not just 0 or 1.<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-very-light-gray-to-cyan-bluish-gray-gradient-background has-background has-medium-font-size\"><strong>(b) Pauli-Y Gate<\/strong><\/h4>\n\n\n\n<p class=\"has-medium-font-size\">Matrix:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"173\" height=\"96\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-16.png\" alt=\"\" class=\"wp-image-41273\"\/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">Effect:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-medium-font-size\">Rotates the qubit by 180\u00b0 around the <strong>Y-axis<\/strong> on the Bloch sphere.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading has-very-light-gray-to-cyan-bluish-gray-gradient-background has-background has-medium-font-size\"><strong>(c) Pauli-Z Gate<\/strong><\/h4>\n\n\n\n<p>Matrix:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"186\" height=\"88\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-17.png\" alt=\"\" class=\"wp-image-41274\"\/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">Effect:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-medium-font-size\">Flips the <strong>phase<\/strong> of the qubit: \u22231\u27e9 picks up a negative sign.<\/li>\n\n\n\n<li class=\"has-medium-font-size\">Rotation by 180\u00b0 around the <strong>Z-axis<\/strong>.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading has-very-light-gray-to-cyan-bluish-gray-gradient-background has-background has-medium-font-size\"><strong>(d) Hadamard Gate (H)<\/strong><\/h4>\n\n\n\n<p class=\"has-medium-font-size\">Matrix:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"223\" height=\"95\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-18.png\" alt=\"\" class=\"wp-image-41275\"\/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">Effect:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-medium-font-size\">Creates <strong>superposition<\/strong> from a basis state.<\/li>\n<\/ul>\n\n\n\n<p class=\"has-medium-font-size\">For example:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"212\" height=\"87\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-19.png\" alt=\"\" class=\"wp-image-41276\"\/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">This corresponds to a <strong>rotation around an axis halfway between X and Z<\/strong>. Thus, Hadamard turns a definite state into an equal mixture of 0 and 1 \u2014 a key step in most quantum algorithms.<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-very-light-gray-to-cyan-bluish-gray-gradient-background has-background has-medium-font-size\"><strong>e) Rotation Gates<\/strong><\/h4>\n\n\n\n<p class=\"has-medium-font-size\">Quantum computing also allows <strong>arbitrary rotations<\/strong> around each axis:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"694\" height=\"283\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-20.png\" alt=\"\" class=\"wp-image-41278\" srcset=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-20.png 694w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-20-300x122.png 300w\" sizes=\"auto, (max-width: 694px) 100vw, 694px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">These enable fine control of the qubit\u2019s state \u2014 rotating it by any angle \u03b8\\theta\u03b8 in 3D space.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-very-light-gray-to-cyan-bluish-gray-gradient-background has-background has-medium-font-size\"><strong>5. Multi-Qubit Quantum Gates<\/strong><\/h3>\n\n\n\n<p class=\"has-medium-font-size\">When more than one qubit is involved, gates can <strong>entangle<\/strong> them \u2014 linking their states in ways impossible classically.<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-medium-font-size\"><strong>Example: CNOT (Controlled-NOT) Gate<\/strong><\/h4>\n\n\n\n<p class=\"has-medium-font-size\">Matrix:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"319\" height=\"175\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-21.png\" alt=\"\" class=\"wp-image-41281\" srcset=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-21.png 319w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-21-300x165.png 300w\" sizes=\"auto, (max-width: 319px) 100vw, 319px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">Effect:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-medium-font-size\">If the <strong>control qubit<\/strong> = |1\u27e9, flip the <strong>target qubit<\/strong>.<\/li>\n\n\n\n<li class=\"has-medium-font-size\">If the control qubit = |0\u27e9, do nothing.<\/li>\n<\/ul>\n\n\n\n<p class=\"has-medium-font-size\">Used to create <strong>entangled states<\/strong>, e.g. the Bell state<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"272\" height=\"71\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-22.png\" alt=\"\" class=\"wp-image-41282\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading has-very-light-gray-to-cyan-bluish-gray-gradient-background has-background\"><strong>6. Why Quantum Gates Must Be Reversible<\/strong><\/h3>\n\n\n\n<p class=\"has-medium-font-size\">All unitary transformations (quantum gates) are <strong>reversibl<\/strong>e<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"732\" height=\"86\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-23.png\" alt=\"\" class=\"wp-image-41283\" srcset=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-23.png 732w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-23-300x35.png 300w\" sizes=\"auto, (max-width: 732px) 100vw, 732px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">This reversibility is a direct consequence of <strong>quantum mechanics<\/strong> \u2014 physical evolution of isolated systems must conserve probability.<br>Classical logic gates (like AND, OR) are <strong>not<\/strong> reversible because they lose information (you can\u2019t always reconstruct the inputs from the output).<br>In quantum systems, losing information would violate physical laws \u2014 so every quantum gate is a rotation, not an irreversible mapping.<\/p>\n\n\n\n<p class=\"has-very-light-gray-to-cyan-bluish-gray-gradient-background has-background has-medium-font-size\"><strong>7. Intuitive Summary<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table has-medium-font-size\"><table class=\"has-fixed-layout\"><thead><tr><th>Classical Logic Gates<\/th><th>Quantum Gates<\/th><\/tr><\/thead><tbody><tr><td>Change bits between 0 and 1 deterministically<\/td><td>Rotate qubit states continuously on the Bloch sphere<\/td><\/tr><tr><td>Non-reversible (information lost)<\/td><td>Reversible (unitary operations)<\/td><\/tr><tr><td>Operate on discrete values<\/td><td>Operate on complex amplitudes<\/td><\/tr><tr><td>Example: AND, OR, NOT<\/td><td>Example: X, Y, Z, H, CNOT, Rotation gates<\/td><\/tr><tr><td>Binary logic<\/td><td>Quantum mechanics &amp; linear algebra<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading has-pale-ocean-gradient-background has-background\"><strong>8. Visualization Analogy<\/strong><\/h3>\n\n\n\n<p class=\"has-medium-font-size\">Imagine the qubit\u2019s state as a <strong>tiny arrow (vector)<\/strong> inside a sphere.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-medium-font-size\">Classical gates can only flip the arrow <strong>up or down<\/strong> (0 or 1).<\/li>\n\n\n\n<li class=\"has-medium-font-size\">Quantum gates can <strong>rotate<\/strong> the arrow to any point on the sphere \u2014 allowing a continuous range of superpositions and phases.<\/li>\n<\/ul>\n\n\n\n<p class=\"has-medium-font-size\">The position of this arrow determines the probabilities of measuring 0 or 1.<br>Quantum algorithms carefully design sequences of gates (rotations) to position the arrow such that, when measured, the desired result has the <strong>highest probability<\/strong>.<\/p>\n\n\n\n<p class=\"has-pale-ocean-gradient-background has-background\"><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In classical computing, logic gates (like AND, OR, NOT) operate on bits that are strictly 0 or 1. Each gate applies a deterministic rule \u2014 for example, a NOT gate&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-41249","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/tocxten.com\/index.php\/wp-json\/wp\/v2\/pages\/41249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tocxten.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/tocxten.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/tocxten.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tocxten.com\/index.php\/wp-json\/wp\/v2\/comments?post=41249"}],"version-history":[{"count":19,"href":"https:\/\/tocxten.com\/index.php\/wp-json\/wp\/v2\/pages\/41249\/revisions"}],"predecessor-version":[{"id":41294,"href":"https:\/\/tocxten.com\/index.php\/wp-json\/wp\/v2\/pages\/41249\/revisions\/41294"}],"wp:attachment":[{"href":"https:\/\/tocxten.com\/index.php\/wp-json\/wp\/v2\/media?parent=41249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}