{"id":41663,"date":"2025-10-20T11:32:28","date_gmt":"2025-10-20T06:02:28","guid":{"rendered":"https:\/\/tocxten.com\/?page_id=41663"},"modified":"2025-10-20T11:47:47","modified_gmt":"2025-10-20T06:17:47","slug":"quantum-circuits","status":"publish","type":"page","link":"https:\/\/tocxten.com\/index.php\/quantum-circuits\/","title":{"rendered":"Quantum Circuits"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"981\" height=\"468\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-60.png\" alt=\"\" class=\"wp-image-41664\" style=\"width:462px;height:auto\" srcset=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-60.png 981w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-60-300x143.png 300w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-60-768x366.png 768w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-60-760x363.png 760w\" sizes=\"auto, (max-width: 981px) 100vw, 981px\" \/><\/figure>\n\n\n\n<p class=\"has-background\" style=\"background-color:#cbdee9\"><em>Quantum circuits are composed of quantum gates and are used to perform quantum algorithms.<\/em> <em>A quantum circuit is a series of <strong>quantum gates <\/strong>that act on one or more qubits.<\/em> <em>The gates are arranged in a specific order, and the circuit is executed in a specific sequence<\/em><\/p>\n\n\n\n<p>A <strong>Quantum Circuit<\/strong> is a <strong>model for quantum computation<\/strong> that describes how <strong>qubits<\/strong> are initialized, manipulated, and measured through a sequence of <strong>quantum gates<\/strong>.<br>It serves the same role in quantum computing as logic circuits do in classical computing \u2014 but instead of using irreversible logical operations (AND, OR, NOT), quantum circuits use <strong>reversible unitary operations<\/strong> that exploit <strong>superposition<\/strong> and <strong>entanglement<\/strong>.<\/p>\n\n\n\n<p>In simple terms:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>A <strong>quantum circuit<\/strong> is a series of quantum gates acting on qubits to perform a computation, followed by measurement to produce a classical result.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading has-pale-ocean-gradient-background has-background\"><strong>1. Structure of a Quantum Circuit<\/strong><\/h2>\n\n\n\n<p>A quantum circuit consists of three main stages:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Initialization<\/strong> \u2014 Qubits are prepared in a known starting state (usually |0\u27e9).<\/li>\n\n\n\n<li><strong>Manipulation (Processing)<\/strong> \u2014 Quantum gates act on qubits to create superpositions and entanglement.<\/li>\n\n\n\n<li><strong>Measurement<\/strong> \u2014 The qubits are measured, collapsing them into classical bits as output.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Representation<\/strong><\/h3>\n\n\n\n<p>Quantum circuits are represented diagrammatically:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Horizontal lines<\/strong> represent <strong>qubits<\/strong>.<\/li>\n\n\n\n<li><strong>Boxes or symbols<\/strong> on the lines represent <strong>quantum gates<\/strong>.<\/li>\n\n\n\n<li><strong>Time flows from left to right<\/strong>.<\/li>\n\n\n\n<li><strong>Vertical connections<\/strong> indicate multi-qubit interactions (e.g., CNOT).<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading has-pale-ocean-gradient-background has-background\"><strong>2. Mathematical Description<\/strong><\/h2>\n\n\n\n<p>Mathematically, a quantum circuit implements a <strong>unitary transformation<\/strong> UUU on the combined state of all qubits in a quantum register.<\/p>\n\n\n\n<p>If a system has <strong>n qubits<\/strong>, its state is represented by a <strong>2\u207f-dimensional complex vector<\/strong> \u2223\u03c8\u27e9|\\psi\u27e9\u2223\u03c8\u27e9.<br>A circuit applies a sequence of gates: \u2223\u03c8out\u27e9=UkUk\u22121\u2026U1\u2223\u03c8in\u27e9<\/p>\n\n\n\n<p>Each Ui\u200b corresponds to a gate, and the entire circuit corresponds to their product (composition).<br>Since each gate is unitary, the overall operation is also unitary \u2014 ensuring reversibility and probability conservation<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-pale-ocean-gradient-background has-background\"><strong>3. Components of a Quantum Circuit<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3.1 Qubits<\/strong><\/h3>\n\n\n\n<p>The fundamental data carriers \u2014 can exist in a <strong>superposition<\/strong> of |0\u27e9 and |1\u27e9: \u2223\u03c8\u27e9=\u03b1\u22230\u27e9+\u03b2\u22231\u27e9<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3.2 Quantum Gates<\/strong><\/h3>\n\n\n\n<p>Operators that modify the qubits\u2019 state vectors.<br>They can act on one or multiple qubits and are represented as matrices.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3.3 Entanglement Links<\/strong><\/h3>\n\n\n\n<p>Multi-qubit gates (like <strong>CNOT<\/strong>) create <strong>entanglement<\/strong>, correlating qubits within the register.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3.4 Measurement<\/strong><\/h3>\n\n\n\n<p>At the end of the circuit, qubits are measured, collapsing superpositions to classical results (0 or 1).<br>Measurements are represented by <strong>meter symbols (\u27e8M\u27e9)<\/strong> in circuit diagrams.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading has-pale-ocean-gradient-background has-background\"><strong>4. Example: Simple Quantum Circuit<\/strong><\/h2>\n\n\n\n<p>Let\u2019s look at a <strong>2-qubit circuit<\/strong> that generates an <strong>entangled Bell state<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"315\" height=\"100\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-61.png\" alt=\"\" class=\"wp-image-41669\" srcset=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-61.png 315w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-61-300x95.png 300w\" sizes=\"auto, (max-width: 315px) 100vw, 315px\" \/><\/figure>\n\n\n\n<p class=\"has-background\" style=\"background-color:#c28d8d\"><strong>Explanation<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"697\" height=\"362\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-62.png\" alt=\"\" class=\"wp-image-41671\" srcset=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-62.png 697w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-62-300x156.png 300w\" sizes=\"auto, (max-width: 697px) 100vw, 697px\" \/><\/figure>\n\n\n\n<p class=\"has-pale-ocean-gradient-background has-background\" style=\"font-size:25px\"><strong>Quantum Circuit Diagram Notation<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Symbol<\/strong><\/th><th><strong>Gate Name<\/strong><\/th><th><strong>Function<\/strong><\/th><\/tr><\/thead><tbody><tr><td><strong>H<\/strong><\/td><td>Hadamard<\/td><td>Creates superposition<\/td><\/tr><tr><td><strong>X, Y, Z<\/strong><\/td><td>Pauli Gates<\/td><td>Rotations \/ bit-flip \/ phase-flip<\/td><\/tr><tr><td><strong>S, T<\/strong><\/td><td>Phase Gates<\/td><td>Phase rotations<\/td><\/tr><tr><td><strong>\u2295 (circle with +)<\/strong><\/td><td>Target of CNOT<\/td><td>Flips target if control is 1<\/td><\/tr><tr><td><strong>\u25cf (filled dot)<\/strong><\/td><td>Control qubit<\/td><td>Triggers controlled operation<\/td><\/tr><tr><td><strong>\u2297<\/strong><\/td><td>Measurement<\/td><td>Converts quantum to classical state<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>These symbols combine to describe any quantum algorithm graphically.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-pale-ocean-gradient-background has-background\"><strong>6. Multi-Qubit Quantum Circuits<\/strong><\/h2>\n\n\n\n<p>Quantum circuits can include multiple qubits, allowing <strong>entanglement<\/strong> and <strong>parallelism<\/strong>.<br>For example, a <strong>3-qubit circuit<\/strong> might perform controlled operations, quantum addition, or Grover search iterations.<\/p>\n\n\n\n<p>Each additional qubit <strong>doubles<\/strong> the size of the state space \u2014<br>\u2192 an n-qubit circuit operates on a <strong>2\u207f-dimensional vector space<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading has-pale-ocean-gradient-background has-background\"><strong>7. Measurement and Output Probabilities<\/strong><\/h2>\n\n\n\n<p>When measurement is performed:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Each qubit collapses to 0 or 1.<\/li>\n\n\n\n<li>The outcome follows a <strong>probability distribution<\/strong> given by the squared magnitude of amplitudes in the quantum state.<\/li>\n<\/ul>\n\n\n\n<p>For example, if:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"265\" height=\"71\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-63.png\" alt=\"\" class=\"wp-image-41678\"\/><\/figure>\n\n\n\n<p>Then:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>P(00)=\u00bd<\/li>\n\n\n\n<li>P(11)=\u00bd<\/li>\n<\/ul>\n\n\n\n<p>This probabilistic output is central to quantum computation \u2014 results are often derived statistically through repeated circuit runs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-pale-ocean-gradient-background has-background\"><strong>8. Building Quantum Algorithms Using Circuits<\/strong><\/h2>\n\n\n\n<p>Quantum circuits are <strong>composed hierarchically<\/strong> \u2014 smaller subcircuits form the building blocks of larger algorithms.<\/p>\n\n\n\n<p><strong>Examples:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Quantum Fourier Transform (QFT):<\/strong> Chain of Hadamard and controlled phase gates.<\/li>\n\n\n\n<li><strong>Grover\u2019s Algorithm:<\/strong> Sequence of oracle and diffusion circuits.<\/li>\n\n\n\n<li><strong>Shor\u2019s Algorithm:<\/strong> Combines modular exponentiation and QFT circuits for factorization.<\/li>\n<\/ul>\n\n\n\n<p>Each algorithm can be represented as a <strong>circuit diagram<\/strong> that maps qubit interactions and transformations step-by-step.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading has-pale-ocean-gradient-background has-background\"><strong>9. Simulation and Programming Tools<\/strong><\/h2>\n\n\n\n<p>Modern quantum programming frameworks allow users to <strong>design and simulate<\/strong> circuits before executing them on real quantum hardware.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th><strong>Framework<\/strong><\/th><th><strong>Developer<\/strong><\/th><th><strong>Feature<\/strong><\/th><\/tr><\/thead><tbody><tr><td><strong>Qiskit<\/strong><\/td><td>IBM<\/td><td>Circuit-based design, access to IBM Q hardware<\/td><\/tr><tr><td><strong>Cirq<\/strong><\/td><td>Google<\/td><td>Low-level circuit manipulation<\/td><\/tr><tr><td><strong>PennyLane<\/strong><\/td><td>Xanadu<\/td><td>Quantum machine learning and hybrid circuits<\/td><\/tr><tr><td><strong>Braket SDK<\/strong><\/td><td>AWS<\/td><td>Cloud access to multiple quantum devices<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Example (Qiskit):<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"422\" height=\"335\" src=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-64.png\" alt=\"\" class=\"wp-image-41682\" srcset=\"https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-64.png 422w, https:\/\/tocxten.com\/wp-content\/uploads\/2025\/10\/image-64-300x238.png 300w\" sizes=\"auto, (max-width: 422px) 100vw, 422px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading has-pale-ocean-gradient-background has-background\"><strong>10. Circuit Depth and Complexity<\/strong><\/h2>\n\n\n\n<p>Two key metrics determine circuit performance<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th><strong>Metric<\/strong><\/th><th><strong>Meaning<\/strong><\/th><\/tr><\/thead><tbody><tr><td><strong>Circuit Width<\/strong><\/td><td>Number of qubits used<\/td><\/tr><tr><td><strong>Circuit Depth<\/strong><\/td><td>Number of sequential gate layers<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Shallow circuits<\/strong> (small depth) are desirable since qubits decohere quickly.<\/li>\n\n\n\n<li><strong>Optimized compilers<\/strong> aim to minimize depth and reduce gate errors.<\/li>\n<\/ul>\n\n\n\n<p>In quantum hardware, longer circuits mean higher <strong>error accumulation<\/strong>, so efficient design is critical.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-pale-ocean-gradient-background has-background\"><strong>11. Visualization: Bloch Sphere and Circuit Evolution<\/strong><\/h2>\n\n\n\n<p>A quantum circuit\u2019s gates correspond to <strong>rotations on each qubit\u2019s Bloch sphere<\/strong>.<br>When multiple qubits interact, their combined state moves through a <strong>multi-dimensional Hilbert space<\/strong> \u2014 beyond visualization, but mathematically tractable.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading has-pale-ocean-gradient-background has-background\"><strong>12. Noise and Real Hardware Considerations<\/strong><\/h2>\n\n\n\n<p>In real devices:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Each gate introduces small <strong>errors<\/strong>.<\/li>\n\n\n\n<li><strong>Crosstalk<\/strong> between qubits can distort operations.<\/li>\n\n\n\n<li><strong>Decoherence<\/strong> limits how deep a circuit can go before the state collapses.<\/li>\n<\/ul>\n\n\n\n<p>Quantum circuit design must therefore balance <strong>algorithmic power<\/strong> with <strong>hardware constraints<\/strong>, often using <strong>error mitigation<\/strong> and <strong>noise-aware compilation<\/strong>.<\/p>\n\n\n\n<p class=\"has-pale-ocean-gradient-background has-background\" style=\"font-size:25px\"><strong>Summary<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th><strong>Concept<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td><strong>Definition<\/strong><\/td><td>Sequence of quantum gates operating on qubits<\/td><\/tr><tr><td><strong>Operation Type<\/strong><\/td><td>Reversible unitary transformations<\/td><\/tr><tr><td><strong>Representation<\/strong><\/td><td>Circuit diagrams (gates on horizontal lines)<\/td><\/tr><tr><td><strong>Purpose<\/strong><\/td><td>Implement quantum algorithms<\/td><\/tr><tr><td><strong>Core Components<\/strong><\/td><td>Initialization, gates, entanglement, measurement<\/td><\/tr><tr><td><strong>Output<\/strong><\/td><td>Probabilistic measurement outcomes<\/td><\/tr><tr><td><strong>Optimization Goal<\/strong><\/td><td>Minimize depth, maximize fidelity<\/td><\/tr><tr><td><strong>Tools<\/strong><\/td><td>Qiskit, Cirq, PennyLane, Braket SDK<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading has-pale-ocean-gradient-background has-background\"><strong>14. Conclusion<\/strong><\/h2>\n\n\n\n<p>Quantum circuits form the <strong>computational core<\/strong> of quantum computing.<br>They provide a visual and mathematical framework for describing how qubits evolve from an initial state to a measurable result through sequences of unitary transformations.<\/p>\n\n\n\n<p>Through quantum circuits, we can design and execute <strong>algorithms that exploit superposition and entanglement<\/strong>, enabling exponential speedups in areas like <strong>cryptography, optimization, and machine learning<\/strong>.<\/p>\n\n\n\n<p>In essence:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Quantum circuits are the language of quantum computation \u2014 each gate is a word, and together they form algorithms that harness the full power of quantum mechanics.<\/strong><\/p>\n<\/blockquote>\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>Quantum circuits are composed of quantum gates and are used to perform quantum algorithms. A quantum circuit is a series of quantum gates that act on one or more qubits&#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-41663","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/tocxten.com\/index.php\/wp-json\/wp\/v2\/pages\/41663","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=41663"}],"version-history":[{"count":12,"href":"https:\/\/tocxten.com\/index.php\/wp-json\/wp\/v2\/pages\/41663\/revisions"}],"predecessor-version":[{"id":41688,"href":"https:\/\/tocxten.com\/index.php\/wp-json\/wp\/v2\/pages\/41663\/revisions\/41688"}],"wp:attachment":[{"href":"https:\/\/tocxten.com\/index.php\/wp-json\/wp\/v2\/media?parent=41663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}