{"id":42243,"date":"2025-10-30T21:00:28","date_gmt":"2025-10-30T15:30:28","guid":{"rendered":"https:\/\/tocxten.com\/?page_id=42243"},"modified":"2025-10-30T21:25:39","modified_gmt":"2025-10-30T15:55:39","slug":"representation-of-qubits","status":"publish","type":"page","link":"https:\/\/tocxten.com\/index.php\/representation-of-qubits\/","title":{"rendered":"Representation of Qubits"},"content":{"rendered":"\n<h2 class=\"wp-block-heading has-background\" style=\"background-color:#eadada\"><strong>1. Classical vs Quantum Representation<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Classical 2-Bit Example<\/strong><\/h3>\n\n\n\n<p class=\"has-medium-font-size\">In classical computing, information is represented using <strong>bits<\/strong>, where each bit can exist in one of two possible states \u2014 <strong>0 or 1<\/strong>.<br>A system with <strong>two bits<\/strong> can represent <strong>four distinct states<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Bit Combination<\/th><th>Binary<\/th><th>Decimal Equivalent<\/th><\/tr><\/thead><tbody><tr><td>00<\/td><td>0<\/td><td>0<\/td><\/tr><tr><td>01<\/td><td>1<\/td><td>1<\/td><\/tr><tr><td>10<\/td><td>2<\/td><td>2<\/td><\/tr><tr><td>11<\/td><td>3<\/td><td>3<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">Each bit combination corresponds to a unique decimal value between <strong>0 and 3<\/strong>. Importantly, a <strong>classical system can exist in only one of these states at any given time<\/strong>.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>For example:<\/strong><br>If we have two classical bits, and their values are <code>0<\/code> and <code>1<\/code>, the system is in state <code>01<\/code>.<br>It cannot simultaneously represent <code>10<\/code> or <code>11<\/code>. This deterministic nature limits classical computing to <strong>sequential state exploration<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-background\" style=\"background-color:#bcaaaa\"><strong>Quantum 2-Qubit System<\/strong><\/h3>\n\n\n\n<p class=\"has-medium-font-size\">Quantum computing introduces a new paradigm based on the principles of <strong>superposition<\/strong> and <strong>quantum parallelism<\/strong>. A <strong>qubit (quantum bit)<\/strong> is the fundamental unit of quantum information. Unlike a classical bit that can be either 0 or 1, a qubit can exist in a <strong>superposition<\/strong> of both 0 and 1 simultaneously. For a <strong>two-qubit system<\/strong>, the possible basis states are the same as the classical combinations:<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\u222300\u27e9,\u222301\u27e9,\u222310\u27e9,\u222311\u27e9<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\">However, in quantum computing, the <strong>state of the system<\/strong> can be a <strong>linear combination<\/strong> of all these basis states:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"936\" height=\"162\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-115.png\" alt=\"\" class=\"wp-image-42244\" srcset=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-115.png 936w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-115-300x52.png 300w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-115-768x133.png 768w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-115-760x132.png 760w\" sizes=\"auto, (max-width: 936px) 100vw, 936px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">This means that a two-qubit system can represent <strong>all four states simultaneously<\/strong>, until measured.<br>Upon measurement, the system <strong>collapses<\/strong> to one of these states, with probabilities given by the squares of their respective amplitudes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-background\" style=\"background-color:#dfcbcb\"><strong>2. Representation of Qubits<\/strong><\/h2>\n\n\n\n<p class=\"has-medium-font-size\">To mathematically describe qubits, we use <strong>state vectors<\/strong> in a <strong>complex Hilbert space<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>State Vector Representation<\/strong><\/h3>\n\n\n\n<p class=\"has-medium-font-size\">A <strong>state vector<\/strong> represents the quantum state of a system and contains the <strong>probability amplitudes<\/strong> of each possible outcome.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Example: A Quantum Coin<\/strong><\/h4>\n\n\n\n<p class=\"has-medium-font-size\">Consider a quantum coin that can exist in a superposition of <strong>Head (H)<\/strong> and <strong>Tail (T)<\/strong>.<\/p>\n\n\n\n<p class=\"has-medium-font-size\">If the coin is in the <strong>Head state<\/strong>, we can write:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"132\" height=\"88\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-116.png\" alt=\"\" class=\"wp-image-42245\"\/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">If the coin is in the <strong>Tail state<\/strong>, we represent it as:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"131\" height=\"84\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-117.png\" alt=\"\" class=\"wp-image-42246\"\/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">Thus, the general state of the coin can be expressed as a <strong>superposition<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"312\" height=\"81\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-118.png\" alt=\"\" class=\"wp-image-42247\" srcset=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-118.png 312w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-118-300x78.png 300w\" sizes=\"auto, (max-width: 312px) 100vw, 312px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">where \u03b1 and \u03b2 are <strong>complex numbers<\/strong> that satisfy:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"165\" height=\"57\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-120.png\" alt=\"\" class=\"wp-image-42249\"\/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">This state vector expresses the <strong>probability of being in Head or Tail state<\/strong> \u2014 analogous to being in 0 or 1 state in a qubit.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-background\" style=\"background-color:#dacfcf\"><strong>3 Dirac Notation (Bra-Ket Notation)<\/strong><\/h2>\n\n\n\n<p class=\"has-medium-font-size\">Dirac notation, introduced by <strong>Paul Dirac<\/strong>, provides a convenient and elegant way to represent quantum states and their operations.<\/p>\n\n\n\n<p class=\"has-medium-font-size\">It simplifies matrix and vector operations used in quantum mechanics.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Basic Components<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li class=\"has-medium-font-size\"><strong>Ket (|\u03c8\u27e9)<\/strong> : Represents a <strong>column vector<\/strong> \u2014 the quantum state itself.<br>Example:<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"286\" height=\"98\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-122.png\" alt=\"\" class=\"wp-image-42251\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"654\" height=\"212\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-124.png\" alt=\"\" class=\"wp-image-42257\" srcset=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-124.png 654w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-124-300x97.png 300w\" sizes=\"auto, (max-width: 654px) 100vw, 654px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"920\" height=\"320\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-125.png\" alt=\"\" class=\"wp-image-42259\" srcset=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-125.png 920w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-125-300x104.png 300w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-125-768x267.png 768w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-125-760x264.png 760w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading has-background\" style=\"background-color:#dccdcd\"><strong>4. Common Qubit States<\/strong><\/h2>\n\n\n\n<p class=\"has-medium-font-size\">Here are the <strong>most frequently used qubit states<\/strong> in quantum computing:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"400\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-126-1024x400.png\" alt=\"\" class=\"wp-image-42262\" style=\"width:608px;height:auto\" srcset=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-126-1024x400.png 1024w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-126-300x117.png 300w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-126-768x300.png 768w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-126-1536x599.png 1536w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-126-1130x441.png 1130w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-126-760x297.png 760w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-126.png 1766w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading has-background\" style=\"background-color:#ddcccc\"><strong>5. Measurement in Qubit Notation<\/strong><\/h2>\n\n\n\n<p class=\"has-medium-font-size\">When a qubit is measured, it <strong>collapses<\/strong> from its superposition into one of the <strong>basis states<\/strong>.<\/p>\n\n\n\n<p class=\"has-medium-font-size\">If a qubit is in state:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"205\" height=\"48\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-127.png\" alt=\"\" class=\"wp-image-42265\"\/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">then upon measurement:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"351\" height=\"72\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-128.png\" alt=\"\" class=\"wp-image-42266\" srcset=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-128.png 351w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-128-300x62.png 300w\" sizes=\"auto, (max-width: 351px) 100vw, 351px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">The <strong>measurement process<\/strong> destroys the superposition and leaves the qubit in the observed state<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example<\/strong><\/h3>\n\n\n\n<p class=\"has-medium-font-size\">Suppose<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"298\" height=\"109\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-129.png\" alt=\"\" class=\"wp-image-42267\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"850\" height=\"203\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-130.png\" alt=\"\" class=\"wp-image-42268\" srcset=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-130.png 850w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-130-300x72.png 300w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-130-768x183.png 768w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-130-760x182.png 760w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading has-background\" style=\"background-color:#dac8c8\"><strong>6. Visualization on the Bloch Sphere<\/strong><\/h2>\n\n\n\n<p class=\"has-medium-font-size\">Every single qubit state can be visualized on a <strong>Bloch Sphere<\/strong>, a 3D representation of the state space.<\/p>\n\n\n\n<p class=\"has-medium-font-size\">The general qubit state:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"414\" height=\"99\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-131.png\" alt=\"\" class=\"wp-image-42269\" srcset=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-131.png 414w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-131-300x72.png 300w\" sizes=\"auto, (max-width: 414px) 100vw, 414px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">corresponds to a point on the sphere defined by:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-medium-font-size\"><strong>\u03b8 (theta)<\/strong>: polar angle<\/li>\n\n\n\n<li class=\"has-medium-font-size\"><strong>\u03c6 (phi)<\/strong>: azimuthal angle<\/li>\n<\/ul>\n\n\n\n<p class=\"has-medium-font-size\">This representation is powerful for visualizing <strong>quantum gates<\/strong>, <strong>rotations<\/strong>, and <strong>state transformations<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-background\" style=\"background-color:#e1d9d9\"><strong>7. Summary<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-medium-font-size\"><strong>Classical bits<\/strong> can exist in one state at a time, while <strong>qubits<\/strong> can exist in superposition.<\/li>\n\n\n\n<li class=\"has-medium-font-size\"><strong>Dirac notation<\/strong> provides a compact mathematical way to describe quantum states.<\/li>\n\n\n\n<li class=\"has-medium-font-size\"><strong>State vectors<\/strong> and <strong>amplitudes<\/strong> define probabilities of measurement outcomes.<\/li>\n\n\n\n<li class=\"has-medium-font-size\"><strong>Measurement collapses<\/strong> the qubit to one basis state.<\/li>\n\n\n\n<li class=\"has-medium-font-size\">The <strong>Bloch sphere<\/strong> helps visualize any single-qubit state geometrically.<\/li>\n<\/ul>\n\n\n\n<p class=\"has-background\" style=\"background-color:#f1c9c9;font-size:24px\"><strong>8. Qiskit Example<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code has-background\" style=\"background-color:#d2c6c6\"><code>from qiskit import QuantumCircuit\nfrom qiskit.visualization import plot_bloch_multivector\nfrom qiskit.quantum_info import Statevector\n\n# Create a single qubit quantum circuit\nqc = QuantumCircuit(1)\n\n# Apply Hadamard gate to create superposition\nqc.h(0)\nqc.draw('mpl')\n\n# Get the statevector\nstate = Statevector.from_instruction(qc)\nplot_bloch_multivector(state)\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"389\" height=\"406\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-132.png\" alt=\"\" class=\"wp-image-42274\" srcset=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-132.png 389w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-132-287x300.png 287w\" sizes=\"auto, (max-width: 389px) 100vw, 389px\" \/><\/figure>\n\n\n\n<p class=\"has-background\" style=\"background-color:#e3d9d9\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Classical vs Quantum Representation Classical 2-Bit Example In classical computing, information is represented using bits, where each bit can exist in one of two possible states \u2014 0 or&#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-42243","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/tocxten.com\/index.php\/wp-json\/wp\/v2\/pages\/42243","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=42243"}],"version-history":[{"count":21,"href":"https:\/\/tocxten.com\/index.php\/wp-json\/wp\/v2\/pages\/42243\/revisions"}],"predecessor-version":[{"id":42292,"href":"https:\/\/tocxten.com\/index.php\/wp-json\/wp\/v2\/pages\/42243\/revisions\/42292"}],"wp:attachment":[{"href":"https:\/\/tocxten.com\/index.php\/wp-json\/wp\/v2\/media?parent=42243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}