<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mathematics, Cryptography, Quantum on kenji.blog</title><link>http://kenji.blog/en/categories/mathematics-cryptography-quantum/</link><description>Recent content in Mathematics, Cryptography, Quantum on kenji.blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>kenjinote</copyright><lastBuildDate>Sat, 05 Sep 2026 22:10:00 +0900</lastBuildDate><atom:link href="http://kenji.blog/en/categories/mathematics-cryptography-quantum/index.xml" rel="self" type="application/rss+xml"/><item><title>[Complete Guide] What is a Quantum Computer? ~The Ultimate Computing Principle from Scratch~</title><link>http://kenji.blog/en/p/quantum-computer-basics/</link><pubDate>Sat, 05 Sep 2026 22:10:00 +0900</pubDate><guid>http://kenji.blog/en/p/quantum-computer-basics/</guid><description>&lt;img src="http://kenji.blog/p/quantum-computer-basics/quantum_basics_eyecatch_1788613712487.jpg" alt="Featured image of post [Complete Guide] What is a Quantum Computer? ~The Ultimate Computing Principle from Scratch~" />&lt;h2 id="introduction-the-paradigm-shift-in-computing-brought-by-quantum-computers">Introduction: The &amp;ldquo;Paradigm Shift in Computing&amp;rdquo; Brought by Quantum Computers
&lt;/h2>&lt;p>In recent years, not a day goes by without seeing the term &amp;ldquo;quantum computer&amp;rdquo; in the news or technical articles. Sci-fi-like stories are often told, such as &amp;ldquo;calculations that would take current supercomputers thousands of years can be finished in minutes&amp;rdquo; or &amp;ldquo;all current cryptographic technologies might be broken.&amp;rdquo; Giant IT companies like Google, IBM, and Microsoft, as well as universities and startups worldwide, are fiercely competing to commercialize this dream technology.&lt;/p>
&lt;p>However, if asked, &amp;ldquo;What exactly is a quantum computer?&amp;rdquo;, few people could answer accurately. Many have a vague image of a &amp;ldquo;magic box that can calculate all combinations simultaneously,&amp;rdquo; but strictly speaking, that is incorrect.&lt;/p>
&lt;p>In this article, we will thoroughly explain from the basics how quantum computers fundamentally differ from classical computers (the PCs and smartphones we usually use), and how they utilize mysterious phenomena of quantum mechanics such as &amp;ldquo;Superposition,&amp;rdquo; &amp;ldquo;Entanglement,&amp;rdquo; and &amp;ldquo;Quantum gates&amp;rdquo; for calculations, in a professional yet easy-to-understand manner. By the time you finish reading this article, you should clearly understand the essential greatness of quantum computers and their current challenges.&lt;/p>
&lt;hr>
&lt;h2 id="chapter-1-the-crucial-difference-between-classical-and-quantum-computers">Chapter 1: The Crucial Difference Between Classical and Quantum Computers
&lt;/h2>&lt;p>To understand how a quantum computer works, we first need to review how the &amp;ldquo;classical computers&amp;rdquo; we currently use operate.&lt;/p>
&lt;h3 id="comparison-table-classical-computers-vs-quantum-computers">Comparison Table: Classical Computers vs Quantum Computers
&lt;/h3>&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Item&lt;/th>
&lt;th>Classical Computer&lt;/th>
&lt;th>Quantum Computer&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>Basic Unit&lt;/strong>&lt;/td>
&lt;td>Bit (0 or 1)&lt;/td>
&lt;td>Qubit (superposition of 0 and 1)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>State Representation&lt;/strong>&lt;/td>
&lt;td>Deterministic&lt;/td>
&lt;td>Probabilistic (undetermined until observed)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Calculation Method&lt;/strong>&lt;/td>
&lt;td>Sequential processing (requires physical cores for parallelization)&lt;/td>
&lt;td>Quantum parallelism (manipulates exponential states simultaneously)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Excels at&lt;/strong>&lt;/td>
&lt;td>Arithmetic operations, everyday data processing&lt;/td>
&lt;td>Prime factorization, quantum chemistry calculations&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Error Tolerance&lt;/strong>&lt;/td>
&lt;td>Very strong&lt;/td>
&lt;td>Very weak (requires cryogenic environments and error correction)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="the-world-of-classical-computers-the-bit-of-0-or-1">The World of Classical Computers: The &amp;ldquo;Bit&amp;rdquo; of 0 or 1
&lt;/h3>&lt;p>Classical computers represent all information in a state of either &amp;ldquo;0&amp;rdquo; or &amp;ldquo;1&amp;rdquo;. This is called a &lt;strong>Bit&lt;/strong>. Physically, it is represented by whether the voltage of a transistor on a semiconductor chip is high (1) or low (0).
The high-quality photos on your smartphone, the text you are reading now, and your favorite YouTube videos are all ultimately reduced to a massive sequence of 0s and 1s. Computation is nothing more than the process of applying operations to this sequence of 0s and 1s by combining basic logic circuits such as AND, OR, and NOT.
This is a very reliable and deterministic world. If the input is the same, you will always get the same output.&lt;/p>
&lt;h3 id="the-world-of-quantum-computers-the-qubit-that-is-both-0-and-1">The World of Quantum Computers: The &amp;ldquo;Qubit&amp;rdquo; That is Both 0 and 1
&lt;/h3>&lt;p>On the other hand, the smallest unit of information in a quantum computer is called a &lt;strong>Qubit (Quantum bit)&lt;/strong>.
The biggest feature of a qubit is that, unlike a classical bit which is strictly either &amp;ldquo;0&amp;rdquo; or &amp;ldquo;1&amp;rdquo;, it can take on a state where &amp;ldquo;0 and 1 are mixed with specific probabilities.&amp;rdquo; This is called &lt;strong>&amp;ldquo;Superposition&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;p>For example, if a classical bit is a coin placed with either &amp;ldquo;heads&amp;rdquo; or &amp;ldquo;tails&amp;rdquo; facing up, a qubit is often compared to a &amp;ldquo;coin constantly spinning in the air.&amp;rdquo; A spinning coin cannot be said to be heads or tails; both states are superimposed. And the moment the coin falls to the floor and stops moving (in quantum mechanics, this is called &amp;ldquo;observation&amp;rdquo;), it is determined as either &amp;ldquo;heads&amp;rdquo; or &amp;ldquo;tails&amp;rdquo; for the first time.&lt;/p>
&lt;p>Quantum computers incorporate this very property unique to the microscopic world (quantum mechanics)—where &amp;ldquo;the state is not determined until observed&amp;rdquo;—directly into the information processing process.&lt;/p>
&lt;hr>
&lt;h2 id="chapter-2-three-quantum-mechanical-properties-that-fundamentally-change-computing">Chapter 2: Three Quantum Mechanical Properties That Fundamentally Change Computing
&lt;/h2>&lt;p>The source of the astonishing computing power of quantum computers is not simply a high clock frequency or small components. It lies in utilizing the laws of physics themselves as computational resources. The following three quantum mechanical phenomena are the keys.&lt;/p>
&lt;h3 id="1-superposition-and-exponential-information-capacity">1. Superposition and Exponential Information Capacity
&lt;/h3>&lt;p>As mentioned earlier, a qubit can simultaneously hold the states of both 0 and 1. One qubit is a &amp;ldquo;superposition of 0 and 1,&amp;rdquo; but what happens when you increase the number of qubits?&lt;/p>
&lt;ul>
&lt;li>1 Qubit: Superposition of 2 states (0, 1)&lt;/li>
&lt;li>2 Qubits: Superposition of 4 states (00, 01, 10, 11)&lt;/li>
&lt;li>3 Qubits: Superposition of 8 states&lt;/li>
&lt;li>&lt;strong>N Qubits: Superposition of $2^N$ patterns&lt;/strong>&lt;/li>
&lt;/ul>
&lt;p>With just 50 qubits, you can simultaneously hold $2^{50}$ (about 1.1 quadrillion) states. And with just 300 qubits, you can hold $2^{300}$ patterns at once—a number greater than all the atoms in the universe! This exponential information holding capacity is the foundation of a quantum computer&amp;rsquo;s potential. It is physically impossible for a classical computer to store more states in memory than there are atoms in the universe.&lt;/p>
&lt;h3 id="2-entanglement-spooky-action-at-a-distance">2. Entanglement: Spooky Action at a Distance
&lt;/h3>&lt;p>Quantum entanglement is such a counter-intuitive and mysterious phenomenon that Albert Einstein called it &amp;ldquo;Spooky action at a distance&amp;rdquo; and refused to accept it throughout his life.&lt;/p>
&lt;p>When multiple qubits enter a state of &amp;ldquo;quantum entanglement,&amp;rdquo; they become strongly linked to each other, forming a shared destiny: &lt;strong>&amp;ldquo;when the state of one is determined, the state of the other is instantly determined, no matter how far apart they are.&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>For example, suppose we have two entangled qubits A and B (each in a superposition of 0 and 1). If we observe A and find it to be &amp;ldquo;0,&amp;rdquo; the state of B is instantly determined (for example, to definitely be &amp;ldquo;1&amp;rdquo;), exceeding the speed of light, which is the limit of information transmission.
In quantum computers, this entanglement is used to represent complex correlations between multiple qubits and perform massively parallel information processing. Without entanglement, the computing power of quantum computers would not be much different from that of classical computers.&lt;/p>
&lt;h3 id="3-quantum-interference-the-magic-that-brings-out-the-right-answer">3. Quantum Interference: The Magic That Brings Out the Right Answer
&lt;/h3>&lt;p>You might think, &amp;ldquo;If it can hold all patterns simultaneously, couldn&amp;rsquo;t it calculate them all at once in parallel and output the answer instantly?&amp;rdquo; This is the most common misconception about quantum computers.
Even if you calculate in a superposition state, you must &amp;ldquo;observe&amp;rdquo; to finally know the answer. However, the moment you observe, the state randomly collapses into one of the $2^N$ patterns. This would just give you a random answer.&lt;/p>
&lt;p>Here is where &lt;strong>&amp;ldquo;Quantum Interference&amp;rdquo;&lt;/strong> comes in. When waves collide, they strengthen each other where their wavelengths match, and cancel each other out where they are out of sync (the principle is essentially the same as noise-canceling headphones).&lt;/p>
&lt;p>An excellent &amp;ldquo;quantum algorithm&amp;rdquo; masterfully manipulates quantum states during the computation process so that &lt;strong>&amp;ldquo;the probability amplitudes of states (waves) leading to the correct answer amplify each other&amp;rdquo;&lt;/strong> and &lt;strong>&amp;ldquo;the probability amplitudes of states leading to incorrect answers cancel each other out.&amp;rdquo;&lt;/strong> It is designed so that when ultimately observed, the &amp;ldquo;correct answer&amp;rdquo; pops out with a probability as close to 100% as possible. Designing this interference process well is the very essence of quantum programming.&lt;/p>
&lt;hr>
&lt;h2 id="chapter-3-how-do-they-compute-quantum-gates-and-quantum-circuits">Chapter 3: How Do They Compute? &amp;ldquo;Quantum Gates&amp;rdquo; and &amp;ldquo;Quantum Circuits&amp;rdquo;
&lt;/h2>&lt;p>Just as classical computers use logic gates (AND, OR, NOT, etc.) to perform calculations, quantum computers apply operations called &lt;strong>&amp;ldquo;Quantum Gates&amp;rdquo;&lt;/strong> to qubits to advance calculations. A combination of multiple quantum gates is called a ** Quantum Circuit**.&lt;/p>
&lt;p>The state of a qubit is mathematically represented as a point on the surface of a 3-dimensional sphere called a &amp;ldquo;Bloch sphere.&amp;rdquo; The North Pole is &amp;ldquo;0&amp;rdquo;, the South Pole is &amp;ldquo;1&amp;rdquo;, and the equator represents a state where &amp;ldquo;0 and 1 are equally superimposed.&amp;rdquo; A quantum gate is nothing more than an operation that rotates the state (vector) on the surface of this sphere.&lt;/p>
&lt;p>Let&amp;rsquo;s introduce some representative quantum gates.&lt;/p>
&lt;h3 id="1-hadamard-gate-h-gate">1. Hadamard Gate (H Gate)
&lt;/h3>&lt;p>This is the most fundamental gate unique to quantum computers, not found in classical computers. When a qubit exactly in the &amp;ldquo;0&amp;rdquo; state passes through an H gate, it creates a &amp;ldquo;perfect superposition state&amp;rdquo; (a point on the equator of the Bloch sphere) where 0 and 1 are observed with exactly 50% probability each. As an initialization step for quantum computation, many algorithms begin by applying this H gate to all qubits.&lt;/p>
&lt;h3 id="2-pauli-gates-x-y-z-gates">2. Pauli Gates (X, Y, Z Gates)
&lt;/h3>&lt;p>These gates correspond to the NOT gate (flipping 0 to 1, and 1 to 0) of classical computers. On the Bloch sphere, they correspond to 180-degree rotations around the X, Y, and Z axes. The X gate, in particular, flips the North Pole (0) to the South Pole (1), working exactly the same as a classical NOT gate. The Z gate has the role of flipping the &amp;ldquo;phase&amp;rdquo; (like the timing of a wave) of a superposition, which is extremely important for causing quantum interference.&lt;/p>
&lt;h3 id="3-cnot-gate-controlled-not-gate">3. CNOT Gate (Controlled NOT Gate)
&lt;/h3>&lt;p>This is a hyper-important gate for creating quantum entanglement. It uses two qubits (a control bit and a target bit).
It operates as follows: &amp;ldquo;If the control bit is 1, flip the state of the target bit (apply an X gate). If the control bit is 0, do nothing.&amp;rdquo; At first glance, it looks like a simple IF conditional branch, but what happens if the control bit is in a &amp;ldquo;superposition state of 0 and 1&amp;rdquo;? The target bit becomes a &amp;ldquo;superposition of flipped and unflipped states,&amp;rdquo; and the destinies of the two bits become completely linked. The two qubits beautifully become &amp;ldquo;entangled.&amp;rdquo;&lt;/p>
&lt;p>By placing and applying these gates in sequence from left to right like a musical score, complex algorithms are executed.&lt;/p>
&lt;hr>
&lt;h2 id="chapter-4-what-are-quantum-computers-good-at-and-what-are-they-bad-at">Chapter 4: What Are Quantum Computers Good At, and What Are They Bad At?
&lt;/h2>&lt;p>Here is an important fact: quantum computers are not omnipotent gods.
For everyday tasks like web browsing, video rendering, Excel macro processing, or running general smartphone apps, quantum computers will probably never surpass classical computers. Classical computers, which are already highly optimized and boast overwhelming speed and low cost, are better suited for these sequential processes.&lt;/p>
&lt;p>Quantum computers truly shine only when applied to &lt;strong>&amp;ldquo;specific problems where the combinations of calculations explode exponentially for classical computers, taking time comparable to the age of the universe.&amp;rdquo;&lt;/strong> This is called &amp;ldquo;Quantum Supremacy&amp;rdquo; or &amp;ldquo;Quantum Advantage.&amp;rdquo;&lt;/p>
&lt;h3 id="what-quantum-computers-excel-at-killer-applications">What Quantum Computers Excel At (Killer Applications)
&lt;/h3>&lt;h4 id="1-prime-factorization-and-cryptanalysis-shors-algorithm">1. Prime Factorization and Cryptanalysis (Shor&amp;rsquo;s Algorithm)
&lt;/h4>&lt;p>Currently, secure communications on the Internet (such as credit card payments and sending personal information) are protected by &amp;ldquo;RSA encryption,&amp;rdquo; which is based on the premise that &amp;ldquo;prime factorization of huge numbers is practically impossible (takes an enormous amount of time) for classical computers.&amp;rdquo;
However, by using &amp;ldquo;Shor&amp;rsquo;s Algorithm&amp;rdquo; discovered by mathematician Peter Shor in 1994, a quantum computer can skillfully use interference to solve this at a dramatic speed (polynomial time). Because of this, there is a risk that the current cryptographic systems will collapse in the future, and central banks and government agencies worldwide are rushing to transition to &amp;ldquo;Post-Quantum Cryptography.&amp;rdquo;&lt;/p>
&lt;h4 id="2-quantum-chemistry-calculations-new-materials-and-drug-discovery">2. Quantum Chemistry Calculations, New Materials, and Drug Discovery
&lt;/h4>&lt;p>The behavior of molecules and atoms in the natural world originally follows the laws of quantum mechanics. When trying to simulate the behavior of complex molecules on a classical computer, the combinations of electron interactions explode, hitting the computational limits even for relatively small molecules.
As Nobel laureate Richard Feynman said, &amp;ldquo;Nature isn&amp;rsquo;t classical, dammit, and if you want to make a simulation of nature, you&amp;rsquo;d better make it quantum mechanical,&amp;rdquo; quantum computers exert overwhelming native power in material simulations. Breakthroughs that solve humanity&amp;rsquo;s challenges are expected, such as the design of revolutionary new drugs, the discovery of room-temperature superconductors, the development of highly efficient solar cells and battery materials, and the synthesis of energy-efficient fertilizers.&lt;/p>
&lt;h4 id="3-combinatorial-optimization-problems-and-search-grovers-algorithm">3. Combinatorial Optimization Problems and Search (Grover&amp;rsquo;s Algorithm)
&lt;/h4>&lt;p>Quantum algorithms also demonstrate power for problems that involve finding the optimal choice from an enormous number of options (logistics route optimization, financial portfolio optimization, etc.). By using &amp;ldquo;Grover&amp;rsquo;s Algorithm,&amp;rdquo; the target data can be found from an unsorted database in the square root of the time it would take a classical computer. For example, if there are 100 million pieces of data, a search that takes a maximum of 100 million tries classically can be completed in just about 10,000 tries.&lt;/p>
&lt;hr>
&lt;h2 id="chapter-5-the-hardware-walls-in-the-way-decoherence-and-quantum-error-correction">Chapter 5: The Hardware Walls In the Way: &amp;ldquo;Decoherence&amp;rdquo; and &amp;ldquo;Quantum Error Correction&amp;rdquo;
&lt;/h2>&lt;p>Although theoretically magically powerful, the path to practical application of quantum computers is blocked by extremely high and steep physical walls. The biggest enemy is &lt;strong>&amp;ldquo;Noise&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;p>The &amp;ldquo;superposition&amp;rdquo; and &amp;ldquo;quantum entanglement&amp;rdquo; of qubits are extremely delicate and fragile states. Even the slightest ambient heat, electromagnetic fluctuation, or cosmic rays can instantly cause that magical state to collapse, turning it into just a classical bit. This phenomenon is called &lt;strong>&amp;ldquo;Decoherence&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;h3 id="the-fierce-competition-of-physical-implementation-methods">The Fierce Competition of Physical Implementation Methods
&lt;/h3>&lt;p>Currently, there is a battle for supremacy worldwide regarding how to physically create these delicate qubits.&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Superconducting Method&lt;/strong>: Adopted by Google, IBM, Amazon, etc. It uses loop-shaped superconducting circuits and controls the quantum state by cooling it to a cryogenic temperature close to absolute zero (about -273°C) using massive refrigerators. It is currently the most advanced method and the easiest to scale up the number of qubits, but the cooling equipment is huge and expensive.&lt;/li>
&lt;li>&lt;strong>Trapped Ion Method&lt;/strong>: Adopted by IonQ, Quantinuum, etc. It traps ions (atoms) in a vacuum using electromagnetic fields and controls them by shining precise lasers. Its strength is that all qubits are uniform and can maintain their state for a long time (long coherence time), but the operation speed is slower compared to superconducting.&lt;/li>
&lt;li>&lt;strong>Photonic Method&lt;/strong>: Focused on by PsiQuantum, etc. It uses particles of light (photons). It has the great advantage of not requiring a cryogenic environment and mostly operating at room temperature, while being highly compatible with existing silicon chip manufacturing and fiber-optic communication technologies.&lt;/li>
&lt;li>&lt;strong>Topological Method&lt;/strong>: Researched for a long time by Microsoft. It is an ambitious approach trying to create qubits fundamentally robust against environmental noise (resistant to errors) by utilizing the topological properties of special particles called anyons. It is theoretically the strongest, but the physical realization hurdle is considered the highest.&lt;/li>
&lt;/ul>
&lt;h3 id="the-path-to-the-ultimate-goal-fault-tolerant-quantum-computer-ftqc">The Path to the Ultimate Goal: &amp;ldquo;Fault-Tolerant Quantum Computer (FTQC)&amp;rdquo;
&lt;/h3>&lt;p>Calculation errors (like bit flips from cosmic rays) also exist in today&amp;rsquo;s classical computers, but they are perfectly corrected by &amp;ldquo;error-correcting codes,&amp;rdquo; so we can use our smartphones without ever noticing an error. To perform practical large-scale calculations on a quantum computer, similar &lt;strong>&amp;ldquo;Quantum Error Correction (QEC)&amp;rdquo;&lt;/strong> is essential.&lt;/p>
&lt;p>However, because quantum states have the property of &amp;ldquo;breaking when observed,&amp;rdquo; there is a fatal dilemma: you cannot directly look inside (observe) to check for errors.
To avoid this, theories have been established (like surface codes) that skillfully combine many unstable &amp;ldquo;physical qubits&amp;rdquo; to build one stable &amp;ldquo;logical qubit&amp;rdquo; that can detect and correct errors.
However, it is said that 1,000 to 10,000 physical qubits are needed to create just one logical qubit. Executing Shor&amp;rsquo;s algorithm using thousands of logical qubits would require a massive system with millions to tens of millions of physical qubits overall.&lt;/p>
&lt;p>We are currently in what is called the era of &lt;strong>NISQ (Noisy Intermediate-Scale Quantum)&lt;/strong> devices. These are transitional machines operating with tens to hundreds of qubits without error correction.
Experts predict that it will take a long-term research and development period of 10 to several decades to realize the ultimate goal, a fully error-correctable &lt;strong>&amp;ldquo;Fault-Tolerant Quantum Computer (FTQC)&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;hr>
&lt;h2 id="chapter-6-history-and-future-prospects-of-quantum-computers">Chapter 6: History and Future Prospects of Quantum Computers
&lt;/h2>&lt;p>Finally, let&amp;rsquo;s take a bird&amp;rsquo;s-eye view of how quantum computers were born and where they are heading.&lt;/p>
&lt;h3 id="from-the-birth-of-the-theory-to-the-demonstration-of-quantum-supremacy">From the Birth of the Theory to the Demonstration of &amp;ldquo;Quantum Supremacy&amp;rdquo;
&lt;/h3>&lt;ul>
&lt;li>&lt;strong>1980s&lt;/strong>: Physicists Paul Benioff and Richard Feynman proposed the concept of a computer using the principles of quantum mechanics. The phrase &amp;ldquo;If you want to make a simulation of nature, you&amp;rsquo;d better make it quantum mechanical&amp;rdquo; was the starting point.&lt;/li>
&lt;li>&lt;strong>1994&lt;/strong>: Peter Shor published a quantum algorithm for prime factorization (Shor&amp;rsquo;s algorithm). It shocked the world and triggered a massive influx of research funding.&lt;/li>
&lt;li>&lt;strong>1996&lt;/strong>: Lov Grover published Grover&amp;rsquo;s algorithm to speed up data search.&lt;/li>
&lt;li>**2019 **: A historical milestone. Google announced that using its 53-qubit superconducting processor &amp;ldquo;Sycamore,&amp;rdquo; it completed a random number generation verification calculation in about 200 seconds that would have taken a classical supercomputer 10,000 years (so they claimed). This caused a sensation as the world&amp;rsquo;s first declaration of demonstrating &lt;strong>&amp;ldquo;Quantum Supremacy&amp;rdquo;&lt;/strong> (although IBM and others later improved the classical supercomputer algorithm and argued it could be calculated in a few days, leading to heated debates).&lt;/li>
&lt;li>&lt;strong>From 2023 onwards&lt;/strong>: IBM announced the processor &amp;ldquo;Condor&amp;rdquo; with over 1,000 qubits. Furthermore, early demonstrations of error correction technology are being reported one after another, such as Harvard University&amp;rsquo;s success in creating and manipulating &amp;ldquo;logical qubits.&amp;rdquo;&lt;/li>
&lt;/ul>
&lt;h3 id="towards-the-technology-of-the-next-generation">Towards the Technology of the Next Generation
&lt;/h3>&lt;p>A quantum computer is not merely a &amp;ldquo;next-generation CPU with a faster clock speed.&amp;rdquo; It is a true paradigm shift in computer science, fundamentally rewriting the concept of computation itself with the rules of quantum mechanics that govern the microscopic world.&lt;/p>
&lt;p>We will probably not have a &amp;ldquo;personal quantum smartphone&amp;rdquo; that fits in our pockets during our lifetime (and there is no need for one). However, the future is steadily approaching where powerful quantum data centers behind cloud networks like AWS and Azure might one day suddenly discover a cure for an incurable disease, or calculate dream clean energy materials to solve global warming (for example, catalysts to synthesize ammonia from atmospheric nitrogen at room temperature).&lt;/p>
&lt;p>We are currently in a dawn comparable to the 1940s ENIAC, which ran on punch cards while the heat from its massive vacuum tubes made the whole room hot. However, top-level researchers and engineers worldwide are pooling their wisdom, and technical breakthroughs are reported daily.
We, who can witness the evolution of this new &amp;ldquo;dawn of computing&amp;rdquo; in real time, can be said to live in a historically very exciting era.&lt;/p>
&lt;p>The door to the quantum world has just been opened. Keep an eye on future developments.&lt;/p>
&lt;hr>
&lt;p>&lt;em>This article aims to explain the basic concepts of quantum computing in an easy-to-understand manner for business professionals and the general public interested in technology. Please note that some rigorous mathematical and physical definitions (such as bra-ket notation and details of complex probability amplitudes) have been partially simplified.&lt;/em>&lt;/p></description></item><item><title>The True Mathematical Structure of the General Number Field Sieve (GNFS)</title><link>http://kenji.blog/en/p/%E4%B8%80%E8%88%AC%E6%95%B0%E4%BD%93%E7%AF%A9%E6%B3%95gnfs%E3%81%AE%E7%9C%9F%E3%81%AE%E6%95%B0%E5%AD%A6%E7%9A%84%E6%A7%8B%E9%80%A0/</link><pubDate>Sat, 05 Sep 2026 02:26:13 +0900</pubDate><guid>http://kenji.blog/en/p/%E4%B8%80%E8%88%AC%E6%95%B0%E4%BD%93%E7%AF%A9%E6%B3%95gnfs%E3%81%AE%E7%9C%9F%E3%81%AE%E6%95%B0%E5%AD%A6%E7%9A%84%E6%A7%8B%E9%80%A0/</guid><description>&lt;img src="http://kenji.blog/p/%E4%B8%80%E8%88%AC%E6%95%B0%E4%BD%93%E7%AF%A9%E6%B3%95gnfs%E3%81%AE%E7%9C%9F%E3%81%AE%E6%95%B0%E5%AD%A6%E7%9A%84%E6%A7%8B%E9%80%A0/rsa_encryption_break_1788542156523.jpg" alt="Featured image of post The True Mathematical Structure of the General Number Field Sieve (GNFS)" />&lt;h1 id="the-true-mathematical-structure-of-the-general-number-field-sieve-gnfs">The True Mathematical Structure of the General Number Field Sieve (GNFS)
&lt;/h1>&lt;p>The ultimate goal of GNFS is to find $X^2 \equiv Y^2 \pmod N$.
To achieve this, mathematicians built a bridge between the &lt;strong>&amp;ldquo;world of real integers&amp;rdquo;&lt;/strong> and the &lt;strong>&amp;ldquo;world of algebraic number fields&amp;rdquo;&lt;/strong>. That bridge is the &amp;ldquo;homomorphism&amp;rdquo;.&lt;/p>
&lt;h2 id="stage-1-the-homomorphism-connecting-worlds">Stage 1: The &amp;ldquo;Homomorphism&amp;rdquo; Connecting Worlds
&lt;/h2>&lt;h3 id="1-polynomial-selection-and-root-definition">1. Polynomial Selection and Root Definition
&lt;/h3>&lt;p>For a massive composite number $N$, select an integer $m$ and a polynomial $f(x)$ such that $f(m) \equiv 0 \pmod N$.
(Example: Expand $N$ in base $m$ and create $f(x)$ from its coefficients. Here, assume $f(x)$ is irreducible (cannot be factored further) over the field of rational numbers $\mathbb{Q}$).&lt;/p>
&lt;p>Next, let one of the &amp;ldquo;complex roots&amp;rdquo; of the equation $f(x) = 0$ be $\alpha$.
Naturally, $f(\alpha) = 0$. $\alpha$ is not an integer but a complex number (an algebraic number) that may involve square roots or imaginary numbers.&lt;/p>
&lt;h3 id="2-construction-of-rings-and-homomorphisms">2. Construction of Rings and Homomorphisms
&lt;/h3>&lt;p>Now, prepare two mathematical &amp;ldquo;rings&amp;rdquo; (worlds where addition and multiplication are defined).&lt;/p>
&lt;ul>
&lt;li>&lt;strong>World A: $\mathbb{Z}[\alpha]$&lt;/strong> (Ring of algebraic integers containing $\alpha$)
A world of numbers represented in the form $a + b\alpha + c\alpha^2 + \dots$.&lt;/li>
&lt;li>&lt;strong>World B: $\mathbb{Z}/N\mathbb{Z}$&lt;/strong> (Ring of residues modulo $N$)
A modulo arithmetic world consisting only of integers from $0$ to $N-1$.&lt;/li>
&lt;/ul>
&lt;p>Here, we define a mapping $\phi$ from World A to World B as follows:
&lt;strong>$$\phi : \mathbb{Z}[\alpha] \to \mathbb{Z}/N\mathbb{Z}$$&lt;/strong>
&lt;strong>$$\phi(\alpha) = m \pmod N$$&lt;/strong>&lt;/p>
&lt;p>This mapping $\phi$ is a magical operation that completely replaces the variable $\alpha$ in World A with the integer $m$ in World B.
This $\phi$ possesses an extremely powerful property known as a &lt;strong>&amp;ldquo;Ring Homomorphism&amp;rdquo;&lt;/strong>.
A homomorphism is the property of &lt;strong>&amp;ldquo;warping to another world without breaking the structure of addition and multiplication&amp;rdquo;&lt;/strong>. In other words, the following equations hold:&lt;/p>
&lt;ul>
&lt;li>$\phi(X \times Y) = \phi(X) \times \phi(Y)$&lt;/li>
&lt;li>$\phi(X^2) = \phi(X)^2$&lt;/li>
&lt;/ul>
&lt;p>What does this mean? If we can create a &lt;strong>&amp;ldquo;square ($\gamma^2$)&amp;rdquo;&lt;/strong> of some complex element $\gamma$ in &amp;ldquo;World A (the world of $\alpha$)&amp;rdquo;, warping it to &amp;ldquo;World B (the modulo world)&amp;rdquo; via $\phi$ will ** perfectly preserve the square form $\phi(\gamma)^2$**.&lt;/p>
&lt;hr>
&lt;h2 id="stage-2-the-collapse-of-prime-factorization-and-the-birth-of-the-ideal">Stage 2: The Collapse of Prime Factorization and the Birth of the &amp;ldquo;Ideal&amp;rdquo;
&lt;/h2>&lt;p>We want to collect many appropriate elements $(a - b\alpha)$ in World A ($\mathbb{Z}[\alpha]$) and multiply them together to create a &amp;ldquo;perfect square (square element)&amp;rdquo;.
Normally, we could simply &amp;ldquo;prime factorize&amp;rdquo; each collected $(a - b\alpha)$ and combine them (solving via matrices) so that all prime exponents become even, thus creating a square.&lt;/p>
&lt;p>&lt;strong>However, here a devastating wall of algebra stands in our way.&lt;/strong>
In algebraic number fields like $\mathbb{Z}[\alpha]$, the &lt;strong>&amp;ldquo;uniqueness of prime factorization (any number can be uniquely expressed as a product of primes in exactly one way)&amp;rdquo;, which we learn in middle school, collapses.&lt;/strong>&lt;/p>
&lt;p>(Example: In a certain algebraic number field, $6 = 2 \times 3$, but at the same time $6 = (1+\sqrt{-5}) \times (1-\sqrt{-5})$, making it impossible to know which are the true primes.)&lt;/p>
&lt;p>If prime factorization is not uniquely determined, the puzzle (sieve method) of &amp;ldquo;counting the number of primes to make them even&amp;rdquo; becomes fundamentally impossible to execute.&lt;/p>
&lt;h3 id="the-salvation-by-kummer-and-dedekind-the-ideal">The Salvation by Kummer and Dedekind: The &amp;ldquo;Ideal&amp;rdquo;
&lt;/h3>&lt;p>What saved us from this collapse was the concept of the &lt;strong>&amp;ldquo;Ideal (ideal number)&amp;rdquo;&lt;/strong> created by 19th-century mathematicians.
By considering not the elements themselves but the &amp;ldquo;set of multiples (ideals)&amp;rdquo; generated by those elements, they made prime factorization possible again.&lt;/p>
&lt;p>In the ring of integers of an algebraic number field $\mathcal{O}_K$ (a more complete ring containing $\mathbb{Z}[\alpha]$), even if elements cannot be uniquely prime-factorized, it is proven that &lt;strong>&amp;ldquo;an ideal can always be uniquely prime-factorized into a product of &amp;lsquo;prime ideals ($\mathfrak{p}$)&amp;rsquo; in exactly one way&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;p>Therefore, in GNFS, instead of factorizing the element $(a - b\alpha)$ itself, we perform &lt;strong>prime ideal factorization on the principal ideal $\langle a - b\alpha \rangle$&lt;/strong> that it generates.&lt;/p>
&lt;hr>
&lt;h2 id="stage-3-norms-and-the-two-sieves">Stage 3: Norms and the Two Sieves
&lt;/h2>&lt;p>So, how do we know which prime ideals the ideal $\langle a - b\alpha \rangle$ factors into?
Here, we use a function called the &lt;strong>&amp;ldquo;Norm&amp;rdquo;&lt;/strong>. The norm is a function that converts complex elements of an algebraic number field into &amp;ldquo;ordinary real integers $\mathbb{Z}$&amp;rdquo;.&lt;/p>
&lt;p>The norm of the element $(a - b\alpha)$ can be calculated by a simple polynomial calculation $b^d f(a/b)$ (where $d$ is the degree of $f(x)$).&lt;/p>
&lt;p>Due to algebraic theorems, it is known that &lt;strong>&amp;ldquo;if the norm of a certain ideal can be completely factored into small primes (is smooth), then the original ideal can also be completely factored into small prime ideals.&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>Thus, GNFS simultaneously calculates the following two values for a massive number of integer pairs $(a, b)$ and collects only the pairs where both values are &amp;ldquo;smooth numbers&amp;rdquo;.&lt;/p>
&lt;ol>
&lt;li>&lt;strong>Rational Sieve&lt;/strong>: $a - bm$ (Values in the real world)&lt;/li>
&lt;li>&lt;strong>Algebraic Sieve&lt;/strong>: $b^d f(a/b)$ (Norm in the algebraic number field world)&lt;/li>
&lt;/ol>
&lt;p>By collecting tens of millions of pairs $(a, b)$ where both are smooth, and solving the prime factorization data of ideals (how many prime ideals are included) as a giant matrix (linear algebra over GF(2)), we find a set $S$ of pairs such that &amp;ldquo;when multiplied together, the exponents of all prime ideals become even&amp;rdquo;.&lt;/p>
&lt;hr>
&lt;h2 id="stage-4-the-two-confronting-obstructions-and-the-ideal-class-group">Stage 4: The Two Confronting &amp;ldquo;Obstructions&amp;rdquo; and the Ideal Class Group
&lt;/h2>&lt;p>Through matrix calculations, we found that multiplying all the ideals of $(a - b\alpha)$ belonging to set $S$ results in the square of a certain ideal $I$.
&lt;/p>
$$\prod_{S} \langle a - b\alpha \rangle = I^2$$
&lt;p>&lt;strong>However, it doesn&amp;rsquo;t end here. The deepest and most difficult mathematical wall in GNFS lies here.&lt;/strong>&lt;/p>
&lt;p>What we ultimately want is not the &amp;ldquo;square of an ideal&amp;rdquo;, but the &lt;strong>&amp;ldquo;square of an element ($\gamma^2$)&amp;rdquo;&lt;/strong> to plug into the mapping $\phi$.
Just because the ideal is squared doesn&amp;rsquo;t necessarily mean the element itself is squared. There exist &lt;strong>two formidable mathematical obstructions&lt;/strong> here.&lt;/p>
&lt;h3 id="obstruction-1-the-wall-of-the-ideal-class-group">Obstruction 1: The Wall of the Ideal Class Group
&lt;/h3>&lt;p>The ideal $I$ is not always an &amp;ldquo;ideal generated by a single element (principal ideal)&amp;rdquo;.
It is impossible to extract a concrete element $\gamma$ from an ideal that is not principal.&lt;/p>
&lt;p>Here, the concept of the &lt;strong>&amp;ldquo;Ideal Class Group ($Cl_K$)&amp;rdquo;&lt;/strong> comes into play. The ideal class group is a group that measures &amp;ldquo;how many non-principal ideals exist in that algebraic number field (how much the uniqueness of prime factorization is broken)&amp;rdquo;.
Even if $\prod \langle a - b\alpha \rangle$ becomes $I^2$, if $I$ is not the identity element (principal ideal) in the ideal class group, it cannot be pulled back to the square of an element.&lt;/p>
&lt;h3 id="obstruction-2-the-wall-of-the-unit-group">Obstruction 2: The Wall of the Unit Group
&lt;/h3>&lt;p>Suppose we get lucky and $I$ is a principal ideal $\langle \gamma \rangle$.
Then, $\prod \langle a - b\alpha \rangle = \langle \gamma^2 \rangle$.
You might think, &amp;ldquo;Great, the element is squared too!&amp;rdquo;, but that is a huge mistake.&lt;/p>
&lt;p>The fact that ideals (sets of multiples) are equal does not mean the elements are completely equal. A deviation by a &lt;strong>&amp;ldquo;Unit (a number whose reciprocal is also an integer, like 1 or -1)&amp;rdquo;&lt;/strong> inevitably occurs.
In other words, the actual equality of the elements is as follows:
&lt;/p>
$$\prod_{S} (a - b\alpha) = u \cdot \gamma^2$$
&lt;p>
($u$ is an element of the unit group $U_K$)&lt;/p>
&lt;p>Unless this unit $u$ itself is the square of something (a square element), the left side can absolutely never become a &amp;ldquo;perfect square of an element&amp;rdquo;.&lt;/p>
&lt;hr>
&lt;h2 id="stage-5-adlemans-magic-quadratic-characters">Stage 5: Adleman&amp;rsquo;s Magic &amp;ldquo;Quadratic Characters&amp;rdquo;
&lt;/h2>&lt;p>The obstruction of the ideal class group and the obstruction of the unit group. How do we overcome these two?
Here, a genius method called &lt;strong>&amp;ldquo;Quadratic Characters&amp;rdquo;&lt;/strong>, introduced by cryptographer Leonard Adleman (the &amp;ldquo;A&amp;rdquo; in RSA) and others, makes its appearance.&lt;/p>
&lt;p>To determine &amp;ldquo;whether a certain element is a perfect square in the algebraic number field&amp;rdquo;, we use an algebraic number field version of the Legendre symbol (quadratic residue).
To the giant matrix from earlier (the puzzle to make the count of prime ideals even), we secretly append dozens of additional conditions (columns) stating that &lt;strong>&amp;ldquo;the quadratic characters for some special prime ideals $\mathfrak{q}$ also all become $1$ (even)&amp;rdquo;.&lt;/strong>&lt;/p>
&lt;p>When we find a set $S$ that satisfies even these additional conditions through matrix calculations, deep theorems of algebraic number theory guarantee that &lt;strong>&amp;ldquo;both the obstruction of the ideal class group and the obstruction of the unit group will naturally vanish with overwhelming probability.&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>With this, we finally obtain the true equation.
&lt;/p>
$$\prod_{S} (a - b\alpha) = \gamma^2$$
&lt;hr>
&lt;h2 id="final-stage-the-convergence-of-worlds-and-the-fall-of-encryption">Final Stage: The Convergence of Worlds and the Fall of Encryption
&lt;/h2>&lt;p>Finally, all the pieces of the puzzle are in place.&lt;/p>
&lt;p>&lt;strong>[Element in the Algebraic Number Field World (World A)]&lt;/strong>
$\gamma^2 = \prod (a - b\alpha)$
(We find $\gamma$ from this using a square root algorithm)&lt;/p>
&lt;p>&lt;strong>[Element in the Real World (World of Rational Numbers)]&lt;/strong>
$V^2 = \prod (a - bm)$
(Since this is just ordinary integer multiplication, the square root $V$ can be found normally)&lt;/p>
&lt;p>Now, it&amp;rsquo;s time for the magical bridge we built at the very beginning, the &lt;strong>homomorphism $\phi$&lt;/strong>, to take the stage.
We warp the element $\gamma$ from World A to World B (the world modulo $N$) using $\phi$ (the mapping that substitutes $m$ for $\alpha$).
&lt;/p>
$$Y = \phi(\gamma) \pmod N$$
&lt;p>Meanwhile, we take the $V$ created in the real world directly to the modulo world and call it $X$.
&lt;/p>
$$X = V \pmod N$$
&lt;p>Due to the homomorphism&amp;rsquo;s property of &amp;ldquo;preserving structure&amp;rdquo;, the square relationship that held in World A is perfectly preserved in World B (the world modulo $N$) as well.
Furthermore, because the original pairs $(a, b)$ were correspondingly created in the forms $a - b\alpha$ and $a - bm$, these $X$ and $Y$ collide in the world modulo $N$ to produce the following absolute equation:&lt;/p>
&lt;p>&lt;strong>$$X^2 \equiv Y^2 \pmod N$$&lt;/strong>&lt;/p>
&lt;p>All that is left is to pray that these $X$ and $Y$ are not trivial solutions ($X \equiv \pm Y$) and calculate:
&lt;strong>$\gcd(X - Y, N)$&lt;/strong>&lt;/p>
&lt;p>If it is a non-trivial solution, the Euclidean algorithm will race through in 0.001 seconds, and the secret primes $p$ and $q$, which are the heart of RSA encryption, will be printed on the output screen.&lt;/p>
&lt;hr>
&lt;p>This is the &lt;strong>complete form of the &amp;ldquo;General Number Field Sieve (GNFS)&amp;rdquo;&lt;/strong>, gathering the essence of modern mathematics.&lt;/p></description></item><item><title>How to enable KaTeX (LaTeX-style math formulas) in Hugo</title><link>http://kenji.blog/en/p/hugo%E3%81%A7katexlatex%E9%A2%A8%E6%95%B0%E5%BC%8F%E8%A1%A8%E7%A4%BA%E3%82%92%E6%9C%89%E5%8A%B9%E3%81%AB%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95/</link><pubDate>Fri, 31 Mar 2023 23:11:26 +0900</pubDate><guid>http://kenji.blog/en/p/hugo%E3%81%A7katexlatex%E9%A2%A8%E6%95%B0%E5%BC%8F%E8%A1%A8%E7%A4%BA%E3%82%92%E6%9C%89%E5%8A%B9%E3%81%AB%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95/</guid><description>&lt;img src="http://kenji.blog/p/hugo%E3%81%A7katexlatex%E9%A2%A8%E6%95%B0%E5%BC%8F%E8%A1%A8%E7%A4%BA%E3%82%92%E6%9C%89%E5%8A%B9%E3%81%AB%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95/img.png" alt="Featured image of post How to enable KaTeX (LaTeX-style math formulas) in Hugo" />&lt;h1 id="what-is-katex">What is KaTeX
&lt;/h1>&lt;p>KaTeX is a JavaScript library for displaying LaTeX-style mathematical formulas in HTML.&lt;/p>
&lt;p>Specifically, it can display formulas like the following:&lt;/p>
$$f(x) = x^2 + x + 41$$
&lt;p>There seem to be other LaTeX-style math rendering libraries, but KaTeX is known for being simple and fast.&lt;/p>
&lt;h1 id="how-to-introduce-it-to-hugo">How to introduce it to Hugo
&lt;/h1>&lt;ol>
&lt;li>Create a new &lt;code>layouts/partials/math.html&lt;/code> in your Hugo folder hierarchy.&lt;/li>
&lt;/ol>
&lt;p>Make the contents as follows:&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt"> 1
&lt;/span>&lt;span class="lnt"> 2
&lt;/span>&lt;span class="lnt"> 3
&lt;/span>&lt;span class="lnt"> 4
&lt;/span>&lt;span class="lnt"> 5
&lt;/span>&lt;span class="lnt"> 6
&lt;/span>&lt;span class="lnt"> 7
&lt;/span>&lt;span class="lnt"> 8
&lt;/span>&lt;span class="lnt"> 9
&lt;/span>&lt;span class="lnt">10
&lt;/span>&lt;span class="lnt">11
&lt;/span>&lt;span class="lnt">12
&lt;/span>&lt;span class="lnt">13
&lt;/span>&lt;span class="lnt">14
&lt;/span>&lt;span class="lnt">15
&lt;/span>&lt;span class="lnt">16
&lt;/span>&lt;span class="lnt">17
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">&amp;lt;link rel=&amp;#34;stylesheet&amp;#34; href=&amp;#34;https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/katex.min.css&amp;#34; integrity=&amp;#34;sha384-vKruj+a13U8yHIkAyGgK1J3ArTLzrFGBbBc0tDp4ad/EyewESeXE/Iv67Aj8gKZ0&amp;#34; crossorigin=&amp;#34;anonymous&amp;#34;&amp;gt;
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&amp;lt;script defer src=&amp;#34;https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/katex.min.js&amp;#34; integrity=&amp;#34;sha384-PwRUT/YqbnEjkZO0zZxNqcxACrXe+j766U2amXcgMg5457rve2Y7I6ZJSm2A0mS4&amp;#34; crossorigin=&amp;#34;anonymous&amp;#34;&amp;gt;&amp;lt;/script&amp;gt;
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&amp;lt;script defer src=&amp;#34;https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/contrib/auto-render.min.js&amp;#34; integrity=&amp;#34;sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05&amp;#34; crossorigin=&amp;#34;anonymous&amp;#34;&amp;gt;&amp;lt;/script&amp;gt;
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&amp;lt;script&amp;gt;
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">document.addEventListener(&amp;#34;DOMContentLoaded&amp;#34;, function() {
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> renderMathInElement(
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> document.body,
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> {
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> delimiters: [
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> {left: &amp;#34;$$&amp;#34;, right: &amp;#34;$$&amp;#34;, display: true},
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> {left: &amp;#34;\\[&amp;#34;, right: &amp;#34;\\]&amp;#34;, display: true},
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> {left: &amp;#34;$&amp;#34;, right: &amp;#34;$&amp;#34;, display: false},
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> {left: &amp;#34;\\(&amp;#34;, right: &amp;#34;\\)&amp;#34;, display: false}
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> ]
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> });
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> });
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&amp;lt;/script&amp;gt;
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;ol start="2">
&lt;li>Next, add the following code to the existing file &lt;code>layouts/partials/extend_head.html&lt;/code>.&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;span class="lnt">2
&lt;/span>&lt;span class="lnt">3
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">{{ if or .Params.math .Site.Params.math }}
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">{{ partial &amp;#34;math.html&amp;#34; . }}
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">{{ end }}
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;ol start="3">
&lt;li>Now you are ready to use KaTeX.&lt;/li>
&lt;/ol>
&lt;p>You can enable KaTeX by adding &lt;code>math: true&lt;/code> to the front matter of a page.&lt;/p>
&lt;ol start="4">
&lt;li>All you have to do is write formulas in LaTeX style in the body of the page article.&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">$$ e^{i \pi} = -1 $$
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>If you describe it as above, it will be displayed as follows:&lt;/p>
$$ e^{i \pi} = -1 $$
&lt;h1 id="references">References
&lt;/h1>&lt;ul>
&lt;li>&lt;a class="link" href="https://reorx.github.io/hugo-PaperModX/docs/math-typesetting/" target="_blank" rel="noopener"
>Math Typesetting | PaperModX&lt;/a>&lt;/li>
&lt;li>&lt;a class="link" href="https://katex.org/docs/autorender.html" target="_blank" rel="noopener"
>KaTex Auto-render Extension&lt;/a>&lt;/li>
&lt;li>&lt;a class="link" href="https://www.storange.jp/2017/02/katex.html" target="_blank" rel="noopener"
>Introduction to KaTeX | The Strange Storage&lt;/a>&lt;/li>
&lt;/ul></description></item><item><title>Favorite Mathematical Formulas</title><link>http://kenji.blog/en/p/%E5%A5%BD%E3%81%8D%E3%81%AA%E6%95%B0%E5%BC%8F/</link><pubDate>Wed, 05 Oct 2022 13:24:50 +0900</pubDate><guid>http://kenji.blog/en/p/%E5%A5%BD%E3%81%8D%E3%81%AA%E6%95%B0%E5%BC%8F/</guid><description>&lt;img src="http://kenji.blog/p/%E5%A5%BD%E3%81%8D%E3%81%AA%E6%95%B0%E5%BC%8F/img.png" alt="Featured image of post Favorite Mathematical Formulas" />&lt;h2 id="wilsons-theorem">Wilson&amp;rsquo;s Theorem
&lt;/h2>&lt;p>When $p$ is a prime number, $(p−1)!≡−1 \pmod p$ holds.&lt;/p>
&lt;h2 id="eulers-formula">Euler&amp;rsquo;s Formula
&lt;/h2>&lt;p>$e^{iπ}+1=0$&lt;/p>
&lt;h2 id="fermats-last-theorem">Fermat&amp;rsquo;s Last Theorem
&lt;/h2>&lt;p>For any integer $n≥3$, there are no positive integer solutions $x, y, z$ to the equation $x^n+y^n=z^n$.&lt;/p>
&lt;h2 id="basel-problem">Basel Problem
&lt;/h2>&lt;p>$1/1^2+1/2^2+1/3^2+1/4^2+...=π^2/6$&lt;/p>
&lt;h2 id="eulers-prime-generating-polynomial">Euler&amp;rsquo;s Prime-Generating Polynomial
&lt;/h2>&lt;p>$n^2+n+41$ is a prime number for all integers $n$ from $0$ to $39$.&lt;/p></description></item><item><title>Why do I like math and computers?</title><link>http://kenji.blog/en/p/%E3%81%AA%E3%81%9C%E6%95%B0%E5%AD%A6%E3%82%84%E8%A8%88%E7%AE%97%E6%A9%9F%E3%81%8C%E5%A5%BD%E3%81%8D%E3%81%AA%E3%82%93%E3%81%A0%E3%82%8D%E3%81%86/</link><pubDate>Fri, 23 Sep 2022 01:56:52 +0900</pubDate><guid>http://kenji.blog/en/p/%E3%81%AA%E3%81%9C%E6%95%B0%E5%AD%A6%E3%82%84%E8%A8%88%E7%AE%97%E6%A9%9F%E3%81%8C%E5%A5%BD%E3%81%8D%E3%81%AA%E3%82%93%E3%81%A0%E3%82%8D%E3%81%86/</guid><description>&lt;img src="http://kenji.blog/p/%E3%81%AA%E3%81%9C%E6%95%B0%E5%AD%A6%E3%82%84%E8%A8%88%E7%AE%97%E6%A9%9F%E3%81%8C%E5%A5%BD%E3%81%8D%E3%81%AA%E3%82%93%E3%81%A0%E3%82%8D%E3%81%86/img.png" alt="Featured image of post Why do I like math and computers?" />&lt;h2 id="i-thought-about-why-i-like-mathematics-and-computers">I thought about why I like mathematics and computers
&lt;/h2>&lt;h3 id="equal-to-everyone">Equal to everyone
&lt;/h3>&lt;p>Regardless of the person, position, or location, it always returns the same output for the same input.&lt;/p>
&lt;h3 id="clear-rules">Clear rules
&lt;/h3>&lt;p>The rules are clearly defined, and there is no absurdity or injustice.&lt;/p>
&lt;h3 id="the-answers-and-theories-derived-are-forever-correct">The answers and theories derived are forever correct
&lt;/h3>&lt;p>There is no worry that an answer once derived will be rewritten later.&lt;/p>
&lt;h3 id="appropriate-level-of-difficulty">Appropriate level of difficulty
&lt;/h3>&lt;p>There are always unsolved problems, and you can challenge yourself to solve them at any time.&lt;/p></description></item><item><title>Great Figures in Mathematics</title><link>http://kenji.blog/en/p/%E6%95%B0%E5%AD%A6%E3%81%AE%E5%81%89%E4%BA%BA%E3%81%9F%E3%81%A1/</link><pubDate>Thu, 22 Sep 2022 23:06:37 +0900</pubDate><guid>http://kenji.blog/en/p/%E6%95%B0%E5%AD%A6%E3%81%AE%E5%81%89%E4%BA%BA%E3%81%9F%E3%81%A1/</guid><description>&lt;img src="http://kenji.blog/p/%E6%95%B0%E5%AD%A6%E3%81%AE%E5%81%89%E4%BA%BA%E3%81%9F%E3%81%A1/img.png" alt="Featured image of post Great Figures in Mathematics" />&lt;h3 id="fermat-p-de-fermat-1601-1665">Fermat (P. de Fermat, 1601-1665)
&lt;/h3>&lt;p>A representative French mathematician of the 17th century. He laid the foundation for analytic geometry, probability theory, and differential calculus. He is also the founder of number theory.&lt;/p>
&lt;h3 id="diophantus-diophantus-c-207-c-291">Diophantus (Diophantus, c. 207-c. 291)
&lt;/h3>&lt;p>A Greek mathematician. Famous for the introduction of symbolic notation and the study of rational solutions. His representative work is &amp;ldquo;Arithmetica&amp;rdquo;. The field of finding rational solutions to equations is called Diophantine analysis.&lt;/p>
&lt;h3 id="euler-l-euler-1707-1783">Euler (L. Euler, 1707-1783)
&lt;/h3>&lt;p>The king of mathematics born in Switzerland. He made achievements in every conceivable area of mathematics. He left behind over 700 papers and 45 books.&lt;/p>
&lt;h3 id="legendre-a-m-legendre-1752-1833">Legendre (A. M. Legendre, 1752-1833)
&lt;/h3>&lt;p>A French mathematician. He left numerous achievements in number theory, elliptic integrals, and the problem of gravitational attraction. The term &amp;ldquo;number theory&amp;rdquo; originates from his main work, &amp;ldquo;Essai sur la théorie des nombres&amp;rdquo;.&lt;/p>
&lt;h3 id="kummer-e-e-kummer-1810-1893">Kummer (E. E. Kummer, 1810-1893)
&lt;/h3>&lt;p>A German mathematician. He achieved great success by applying the number theory of cyclotomic fields to Fermat&amp;rsquo;s Last Theorem.&lt;/p>
&lt;h3 id="descartes-r-descartes-1596-1650">Descartes (R. Descartes, 1596-1650)
&lt;/h3>&lt;p>A highly original French philosopher. His representative works include &amp;ldquo;Discourse on the Method&amp;rdquo;, &amp;ldquo;Geometry&amp;rdquo;, and &amp;ldquo;The World&amp;rdquo;.&lt;/p>
&lt;h3 id="pascal-b-pascal-1623-1662">Pascal (B. Pascal, 1623-1662)
&lt;/h3>&lt;p>A French philosopher known for his research in probability theory and fluids. Later, he joined the Jansenists and engaged in religious activities. &amp;ldquo;Pensées&amp;rdquo; is his work from that time.&lt;/p>
&lt;h3 id="bachet-c-g-bachet-1581-1638">Bachet (C. G. Bachet, 1581-1638)
&lt;/h3>&lt;p>A French nobleman who studied number puzzles as a hobby. He published a Latin translation of Diophantus&amp;rsquo;s &amp;ldquo;Arithmetica&amp;rdquo; and included his own research as annotations.&lt;/p>
&lt;h3 id="wallis-j-wallis-1616-1703">Wallis (J. Wallis, 1616-1703)
&lt;/h3>&lt;p>An English mathematician. In his main work &amp;ldquo;Arithmetica Infinitorum&amp;rdquo;, he gave a mathematical form to the concept of limits, contributing to the foundation of calculus.&lt;/p>
&lt;h3 id="brouncker-w-brouncker-1620-1684">Brouncker (W. Brouncker, 1620-1684)
&lt;/h3>&lt;p>An Irish nobleman. The first President of the Royal Society (British Academy). A mathematics enthusiast who interacted with Wallis and others.&lt;/p>
&lt;h3 id="lagrange-j-l-lagrange-1736-1813">Lagrange (J. L. Lagrange, 1736-1813)
&lt;/h3>&lt;p>An Italian-born French mathematician. He served as the Director of Mathematics at the Berlin Academy as Euler&amp;rsquo;s successor. He made major achievements in number theory, analytical mechanics, and more.&lt;/p>
&lt;h3 id="siegel-c-l-siegel-1896-1981">Siegel (C. L. Siegel, 1896-1981)
&lt;/h3>&lt;p>A German number theorist. He made numerous contributions to the analytic theory of numbers.&lt;/p>
&lt;h3 id="fibonacci-l-fibonacci-c-1175-c-1250">Fibonacci (L. Fibonacci, c. 1175-c. 1250)
&lt;/h3>&lt;p>An Italian mathematician. In his main work &amp;ldquo;Liber Abaci&amp;rdquo;, he used Hindu-Arabic numerals and worked to popularize them. He also discussed congruent numbers in &amp;ldquo;Liber Quadratorum&amp;rdquo;.&lt;/p>
&lt;h3 id="baker-a-baker-1939-">Baker (A. Baker, 1939-)
&lt;/h3>&lt;p>An English number theorist. For his contributions to transcendental number theory, he was awarded the Fields Medal along with Heisuke Hironaka.&lt;/p>
&lt;h3 id="poincaré-j-poincaré-1854-1912">Poincaré (J. Poincaré, 1854-1912)
&lt;/h3>&lt;p>A French mathematician known as the last universal mathematician. He left behind outstanding works in automorphic functions, non-Euclidean geometry, differential equations, celestial mechanics, electrodynamics, and scientific essays.&lt;/p>
&lt;h3 id="mordell-l-j-mordell-1888-1972">Mordell (L. J. Mordell, 1888-1972)
&lt;/h3>&lt;p>An American-born mathematician. His parents were immigrants from Lithuania. He published numerous papers on Diophantine equations, but Mordell&amp;rsquo;s theorem in the theory of elliptic curves is especially famous. Weil extended this to the case of general algebraic curves, leading to an explosive development in arithmetic algebraic geometry.&lt;/p>
&lt;h3 id="weil-a-weil-1906-">Weil (A. Weil, 1906-)
&lt;/h3>&lt;p>A French mathematician of Jewish descent. In his youth, he took an interest in Fermat&amp;rsquo;s problem and fundamentally revised algebraic geometry with the aim of applying it to number theory, providing a rigorous foundation. He is also known for his writings on the history of mathematics.&lt;/p>
&lt;h3 id="mersenne-m-mersenne-1588-1648">Mersenne (M. Mersenne, 1588-1648)
&lt;/h3>&lt;p>A French Minim friar. He facilitated correspondence among mathematicians in various places. The numbers known as Mersenne numbers were actually conceived by Fermat.&lt;/p>
&lt;h3 id="roberval-g-p-de-roberval-1602-1675">Roberval (G. P. de Roberval, 1602-1675)
&lt;/h3>&lt;p>A French mathematician. He was almost the only person at the time who held a professorship as a mathematician, and is known for his research on the cycloid.&lt;/p>
&lt;h3 id="abel-n-h-abel-1802-1829">Abel (N. H. Abel, 1802-1829)
&lt;/h3>&lt;p>A Norwegian mathematician. He made outstanding achievements such as proving the insolvability of the general quintic equation, the theory of elliptic functions, and the theory of Abelian integrals, but died at a young age.&lt;/p>
&lt;h3 id="jacobi-k-g-jacob-1804-1851">Jacobi (K. G. Jacob, 1804-1851)
&lt;/h3>&lt;p>A German mathematician of Jewish descent. He left major achievements in the theory of elliptic functions, theta functions, differential equations, and the calculus of variations. He introduced Abel&amp;rsquo;s work to the world. He is also known for stating that the purpose of science is for &amp;ldquo;the honor of the human spirit,&amp;rdquo; rejecting utilitarianism.&lt;/p>
&lt;h3 id="gauss-c-f-gauss-1777-1855">Gauss (C. F. Gauss, 1777-1855)
&lt;/h3>&lt;p>The king of mathematics born in Germany. Known for his research in number theory, non-Euclidean geometry, geodesy, hypergeometric series, the theory of surfaces, and geomagnetism. He was a perfectionist who is said to have not published his results unless they were perfected to the point where the scaffolding was invisible. His main work is &amp;ldquo;Disquisitiones Arithmeticae&amp;rdquo;.&lt;/p>
&lt;h3 id="lamé-g-lamé-1795-1870">Lamé (G. Lamé, 1795-1870)
&lt;/h3>&lt;p>A French mathematician. Contributed to the theory of elasticity, heat conduction, etc.&lt;/p>
&lt;h3 id="liouville-j-liouville-1809-1882">Liouville (J. Liouville, 1809-1882)
&lt;/h3>&lt;p>A French mathematician. Contributed to differential equations, transcendental number theory, and complex analysis.&lt;/p>
&lt;h3 id="cauchy-a-l-cauchy-1789-1857">Cauchy (A. L. Cauchy, 1789-1857)
&lt;/h3>&lt;p>A French mathematician. Highly prolific, with many achievements in theoretical physics and mathematics. In France, he is said to be respected as much as Gauss.&lt;/p>
&lt;h3 id="galois-e-galois-1811-1832">Galois (E. Galois, 1811-1832)
&lt;/h3>&lt;p>A French mathematician. He elucidated Abel&amp;rsquo;s theorem that equations of degree 5 or higher generally cannot be solved algebraically by introducing the concept of a group. He died young in a duel, which is now known to have been triggered by a trivial issue involving a woman.&lt;/p>
&lt;h3 id="hensel-k-hensel-1861-1941">Hensel (K. Hensel, 1861-1941)
&lt;/h3>&lt;p>A German mathematician. A student of Kronecker. He introduced the theory of p-adic numbers (p-adic analysis) into number theory by applying function-theoretic methods.&lt;/p>
&lt;h3 id="hasse-h-hasse-1898-1979">Hasse (H. Hasse, 1898-1979)
&lt;/h3>&lt;p>A German mathematician. A student of Hensel, he contributed to the foundation of p-adic analysis and its applications. His work includes the development of class field theory and research on the L-functions of elliptic curves.&lt;/p>
&lt;h3 id="kronecker-l-kronecker-1823-1891">Kronecker (L. Kronecker, 1823-1891)
&lt;/h3>&lt;p>A German mathematician of Jewish descent. Contributed to the theory of elliptic functions, number theory, etc. Known for advocating the arithmetization of mathematics, but his highly subjective personality led him to unfairly criticize his colleague Weierstrass at the University of Berlin and hinder Cantor&amp;rsquo;s employment, which has given his life a negative image.&lt;/p>
&lt;h3 id="hilbert-d-hilbert-1862-1943">Hilbert (D. Hilbert, 1862-1943)
&lt;/h3>&lt;p>A German mathematician. Left a massive footprint in every field of mathematics, including invariant theory, algebraic number theory, and the foundations of mathematics. The 23 problems he proposed at the International Congress of Mathematicians in Paris (1900) had a major impact on the development of mathematics.&lt;/p>
&lt;h3 id="riemann-b-riemann-1826-1866">Riemann (B. Riemann, 1826-1866)
&lt;/h3>&lt;p>A German mathematician. Made profound contributions to the very foundations of mathematics, such as the concept of Riemann surfaces in complex analysis and Riemannian geometry.&lt;/p>
&lt;h3 id="faltings-g-faltings-1954-">Faltings (G. Faltings, 1954-)
&lt;/h3>&lt;p>A German mathematician. Resolved the Mordell conjecture in 1983.&lt;/p>
&lt;h3 id="wiles-a-wiles-1953-">Wiles (A. Wiles, 1953-)
&lt;/h3>&lt;p>An English-born mathematician. A leading figure in this field who made major contributions through his research on Iwasawa&amp;rsquo;s main conjecture, the Birch and Swinnerton-Dyer conjecture, and famously proving Fermat&amp;rsquo;s Last Theorem.&lt;/p>
&lt;h3 id="references">References
&lt;/h3>&lt;p>Fermat&amp;rsquo;s Last Theorem Solved! From Euler to Wiles&amp;rsquo; Proof, Kodansha&lt;/p></description></item></channel></rss>