The tunable gate toward practical Quantum Machine Learning
Parameterized quantum circuits let us embed classical data into quantum states, tune them with adjustable gates, and read out predictions through measurement. The real question is whether these simple building blocks can be scaled into architectures that deliver genuine quantum advantage.
by Frank ZickertSeptember 10, 2025
A parameterized quantum circuit is a A quantum circuit is a sequence of quantum gates applied to qubits, representing the operations in a quantum computation. Each gate changes the qubits’ state using quantum mechanics principles like superposition and entanglement. The final qubit states, when measured, yield the circuit’s computational result probabilistically. Learn more about Quantum Circuit with A quantum gate is a basic operation that changes the state of one or more qubits, similar to how a logic gate operates on bits in classical computing. It uses unitary transformations, meaning it preserves the total probability (the state’s length in complex space). Quantum gates enable superposition and entanglement, allowing quantum computers to perform computations that classical ones cannot efficiently replicate. Learn more about Quantum Gate that depend on adjustable A **real number** is any number that can represent a distance along a continuous line, including all rational numbers (like fractions and integers) and irrational numbers (like √2 or π). In other words, it’s any number that can appear on the number line. Real numbers exclude imaginary numbers, which involve √(–1). Learn more about Real Number parameters. The values of these parameters are controlled externally and enable the parameterized quantum circuit to generate a Cerezo, M., 2021, Nature Reviews Physics, Vol. 3, pp. 625-644.
Importantly, a parameterized quantum circuit only makes sense as a computational A **model** in machine learning is a mathematical representation of patterns learned from data. It takes **inputs** (features) and produces **outputs** (predictions or classifications) based on relationships it has identified during training. Essentially, it’s a function that generalizes from examples to make decisions or predictions on new data. Learn more about Model if the states it generates cannot be efficiently captured by classical means. Otherwise, its role is Schuld, M., 2020, Physical Review A, Vol. 101, pp. 032308.
Just as antennas range from a simple car whip to large parabolic arrays, parameterized quantum circuits span from underparameterized to overparameterized designs. A minimal A quantum circuit is a sequence of quantum gates applied to qubits, representing the operations in a quantum computation. Each gate changes the qubits’ state using quantum mechanics principles like superposition and entanglement. The final qubit states, when measured, yield the circuit’s computational result probabilistically. Learn more about Quantum Circuit resembles the car antenna. This is easy to operate but too limited to capture genuinely quantum signals. At the other extreme, a highly complex A quantum circuit is a sequence of quantum gates applied to qubits, representing the operations in a quantum computation. Each gate changes the qubits’ state using quantum mechanics principles like superposition and entanglement. The final qubit states, when measured, yield the circuit’s computational result probabilistically. Learn more about Quantum Circuit mirrors the massive array. That is capable in principle but difficult to calibrate, highly sensitive to noise, and expensive to operate. The central challenge is to find An Ansatz is a chosen form or structure of a quantum state (often parameterized) used as a starting point for algorithms like the Variational Quantum Eigensolver. It defines how qubits are entangled and rotated, and its parameters are optimized to approximate the solution to a problem. The quality of the Ansatz directly affects the accuracy and efficiency of the computation. Learn more about Ansatz that, like a well-engineered antenna, balance simplicity with precision. By using only a few parameters we aim to reliably tune into regions of nonclassical behavior. Only then can parameterized quantum circuits provide a practical route to Quantum advantage is the point where a quantum computer performs a specific task faster or more efficiently than the best possible classical computer. It doesn’t mean quantum computers are universally better—just that they outperform classical ones for that task. The first demonstrations (e.g., Google’s 2019 Sycamore experiment) showed speedups for highly specialized problems, not yet for practical applications. Learn more about Quantum Advantage on Noisy Intermediate-Scale Quantum refers to the current generation of quantum devices that have enough qubits to run non-trivial algorithms but are still small and error-prone, limiting their reliability and scalability. Learn more about Noisy Intermediate-Scale Quantum
A parameterized quantum circuit consists of two main parts:
Encoding is the process of converting information from one form into another, usually so it can be stored, transmitted, or processed more efficiently. For example, text can be encoded into binary for computers to handle, or sounds into digital signals for transmission. The key idea is that encoding changes the representation, not the meaning, of the data. Learn more about Encoding
In quantum computing, measurement is the process of extracting classical information from a quantum state. It collapses a qubit’s superposition into one of its basis states (usually or ), with probabilities determined by the amplitudes of those states. After measurement, the qubit’s state becomes definite, destroying the original superposition. Learn more about Measurement
The encoding maps the A **real number** is any number that can represent a distance along a continuous line, including all rational numbers (like fractions and integers) and irrational numbers (like √2 or π). In other words, it’s any number that can appear on the number line. Real numbers exclude imaginary numbers, which involve √(–1). Learn more about Real Number input to a A quantum state is the complete mathematical description of a quantum system, containing all the information needed to predict measurement outcomes. It’s usually represented by a wavefunction or a state vector in a Hilbert space. The state defines probabilities, not certainties, for observable quantities like position, momentum, or spin. Learn more about Quantum State via the A **unitary operator** is a linear operator ( U ) on a complex vector space that satisfies ( U^\dagger U = UU^\dagger = I ), meaning it preserves inner products. In simpler terms, it preserves the **length** and **angle** between vectors—so it represents a **reversible, norm-preserving transformation**. In quantum mechanics, unitary operators describe the evolution of isolated systems because they conserve probability. Learn more about Unitary Operator is a A **unitary operator** is a linear operator ( U ) on a complex vector space that satisfies ( U^\dagger U = UU^\dagger = I ), meaning it preserves inner products. In simpler terms, it preserves the **length** and **angle** between vectors—so it represents a **reversible, norm-preserving transformation**. In quantum mechanics, unitary operators describe the evolution of isolated systems because they conserve probability. Learn more about Unitary Operator (therefore ) that Encoding is the process of converting information from one form into another, usually so it can be stored, transmitted, or processed more efficiently. For example, text can be encoded into binary for computers to handle, or sounds into digital signals for transmission. The key idea is that encoding changes the representation, not the meaning, of the data. Learn more about Encoding the data value according to a A **Quantum Feature Map** is a process that converts classical input data into a **quantum state** using a parameterized quantum circuit. This transformation encodes data into the **high-dimensional Hilbert space** of a quantum system, allowing quantum algorithms to exploit complex correlations not easily captured classically. Essentially, it’s the quantum analogue of feature mapping in machine learning, used to make data more separable for classification or regression tasks. Learn more about Quantum Feature Map ("phi"). Different choices of correspond to different ways of embedding data into a A quantum state is the complete mathematical description of a quantum system, containing all the information needed to predict measurement outcomes. It’s usually represented by a wavefunction or a state vector in a Hilbert space. The state defines probabilities, not certainties, for observable quantities like position, momentum, or spin. Learn more about Quantum State, such as Angle encoding is a method of loading classical data into a quantum state by mapping data values to rotation angles of qubits (e.g., using quantum gates like Rx Gate, Ry Gate, or Rz Gate) Each feature of the data is represented as the angle of the quantum state vector’s rotation, which changes its probability amplitudes. This allows continuous classical values to be embedded in qQuantum states for use in quantum algorithms or quantum circuits. Learn more about Angle Encoding, Amplitude encoding represents classical data as the amplitudes of a quantum state's basis vectors. If you have a normalized data vector , it’s encoded into an -qubit state . This allows data values to be stored in only qubits, but preparing the quantum state can be computationally expensive. Learn more about Amplitude Encoding, or more elaborate A **Quantum Feature Map** is a process that converts classical input data into a **quantum state** using a parameterized quantum circuit. This transformation encodes data into the **high-dimensional Hilbert space** of a quantum system, allowing quantum algorithms to exploit complex correlations not easily captured classically. Essentially, it’s the quantum analogue of feature mapping in machine learning, used to make data more separable for classification or regression tasks. Learn more about Quantum Feature Map). So means apply the unitary defined by encoding rule to input . The is not a variable like , but a tag to remind you how the data is being encoded. Learn more about .
Suppose your parameterized quantum circuit uses a single parameter . In the problem domain, could be something meaningful, such as the intensity of a signal, the value of a feature in a dataset, or a physical measurement. However, for the parameterized quantum circuit itself, is just an external A **real number** is any number that can represent a distance along a continuous line, including all rational numbers (like fractions and integers) and irrational numbers (like √2 or π). In other words, it’s any number that can appear on the number line. Real numbers exclude imaginary numbers, which involve √(–1). Learn more about Real Number. To integrate it into the A quantum circuit is a sequence of quantum gates applied to qubits, representing the operations in a quantum computation. Each gate changes the qubits’ state using quantum mechanics principles like superposition and entanglement. The final qubit states, when measured, yield the circuit’s computational result probabilistically. Learn more about Quantum Circuit, must be translated into the language of A quantum state is the complete mathematical description of a quantum system, containing all the information needed to predict measurement outcomes. It’s usually represented by a wavefunction or a state vector in a Hilbert space. The state defines probabilities, not certainties, for observable quantities like position, momentum, or spin. Learn more about Quantum State. Schuld, M., 2019, Physical Review Letters, Vol. 122, pp. 040504.
is a Unitary OperatorA **unitary operator** is a linear operator ( U ) on a complex vector space that satisfies ( U^\dagger U = UU^\dagger = I ), meaning it preserves inner products. In simpler terms, it preserves the **length** and **angle** between vectors—so it represents a **reversible, norm-preserving transformation**. In quantum mechanics, unitary operators describe the evolution of isolated systems because they conserve probability. Learn more about Unitary Operator (therefore ) that encodesEncoding is the process of converting information from one form into another, usually so it can be stored, transmitted, or processed more efficiently. For example, text can be encoded into binary for computers to handle, or sounds into digital signals for transmission. The key idea is that encoding changes the representation, not the meaning, of the data. Learn more about Encoding the data value according to a encoding scheme or feature mapA **Quantum Feature Map** is a process that converts classical input data into a **quantum state** using a parameterized quantum circuit. This transformation encodes data into the **high-dimensional Hilbert space** of a quantum system, allowing quantum algorithms to exploit complex correlations not easily captured classically. Essentially, it’s the quantum analogue of feature mapping in machine learning, used to make data more separable for classification or regression tasks. Learn more about Quantum Feature Map ("phi"). Different choices of correspond to different ways of embedding data into a Quantum StateA quantum state is the complete mathematical description of a quantum system, containing all the information needed to predict measurement outcomes. It’s usually represented by a wavefunction or a state vector in a Hilbert space. The state defines probabilities, not certainties, for observable quantities like position, momentum, or spin. Learn more about Quantum State, such as Angle EncodingAngle encoding is a method of loading classical data into a quantum state by mapping data values to rotation angles of qubits (e.g., using quantum gates like Rx Gate, Ry Gate, or Rz Gate) Each feature of the data is represented as the angle of the quantum state vector’s rotation, which changes its probability amplitudes. This allows continuous classical values to be embedded in qQuantum states for use in quantum algorithms or quantum circuits. Learn more about Angle Encoding, Amplitude EncodingAmplitude encoding represents classical data as the amplitudes of a quantum state's basis vectors. If you have a normalized data vector , it’s encoded into an -qubit state . This allows data values to be stored in only qubits, but preparing the quantum state can be computationally expensive. Learn more about Amplitude Encoding, or more elaborate Quantum Feature MapsA **Quantum Feature Map** is a process that converts classical input data into a **quantum state** using a parameterized quantum circuit. This transformation encodes data into the **high-dimensional Hilbert space** of a quantum system, allowing quantum algorithms to exploit complex correlations not easily captured classically. Essentially, it’s the quantum analogue of feature mapping in machine learning, used to make data more separable for classification or regression tasks. Learn more about Quantum Feature Map). So means apply the unitary defined by encoding rule to input . The is not a variable like , but a tag to remind you how the data is being encoded. Learn more about is simply a collection of quantum gates that rotate and/or entangle qubits so that information about becomes embedded in the quantum state. Once this encoding is done, the circuit can act on the state with its trainable parameters.
Let's look at a concrete code example that shows how this encoding and subsequent processing are implemented in practice.
? depicts the encoding of a parameter in a Quantum CircuitA quantum circuit is a sequence of quantum gates applied to qubits, representing the operations in a quantum computation. Each gate changes the qubits’ state using quantum mechanics principles like superposition and entanglement. The final qubit states, when measured, yield the circuit’s computational result probabilistically. Learn more about Quantum Circuit in QiskitQiskit is an open-source Python framework for programming and simulating quantum computers. It lets users create quantum circuits, run them on real quantum hardware or simulators, and analyze the results. Essentially, it bridges high-level quantum algorithms with low-level hardware execution. Learn more about Qiskit.
pqc.py
1
2
3
4
5
6
from qiskit import QuantumCircuit
from qiskit.circuit import Parameter
qc = QuantumCircuit(1)
x = Parameter("x")
qc.ry(x, 0)
Listing 1 The simplest case of a parameterized quantum circuitIn this code listing, we
the required functions from Qiskit,
a Quantum CircuitA quantum circuit is a sequence of quantum gates applied to qubits, representing the operations in a quantum computation. Each gate changes the qubits’ state using quantum mechanics principles like superposition and entanglement. The final qubit states, when measured, yield the circuit’s computational result probabilistically. Learn more about Quantum Circuit with a single QubitA qubit is the basic unit of quantum information, representing a superposition of 0 and 1 states. Learn more about Quantum Bit,
, and
the value of x into a quantum state by using x as the rotation angle of the ryQuantum GateA quantum gate is a basic operation that changes the state of one or more qubits, similar to how a logic gate operates on bits in classical computing. It uses unitary transformations, meaning it preserves the total probability (the state’s length in complex space). Quantum gates enable superposition and entanglement, allowing quantum computers to perform computations that classical ones cannot efficiently replicate. Learn more about Quantum Gate (The Y-Rotation Operator () turns the quantum state vector of a single qubit around the -axis. Learn more about Y-Rotation Operator ).
As you can see, no specific value has been assigned to the parameter x. Instead, this can be done dynamically before we execute the Quantum CircuitA quantum circuit is a sequence of quantum gates applied to qubits, representing the operations in a quantum computation. Each gate changes the qubits’ state using quantum mechanics principles like superposition and entanglement. The final qubit states, when measured, yield the circuit’s computational result probabilistically. Learn more about Quantum Circuit.
The measurement is the next essential part of a parameterized quantum circuit.
We extract information about the parameter by measuring an ObservableIn quantum computing, an **observable** is a physical quantity (like energy, spin, or position) that can be **measured** from a quantum state. Mathematically, it’s represented by a **Hermitian operator**, whose eigenvalues correspond to the possible measurement outcomes. When you measure an observable, the quantum state **collapses** into one of its eigenstates, yielding one of those eigenvalues as the result. Learn more about Observable, such as a Pauli OperatorA Pauli operator is one of three 2×2 complex matrices — **σₓ, σᵧ, σ_z** — that represent the basic quantum spin operations on a single qubit. They correspond to rotations or measurements along the x, y, and z axes of the Bloch sphere. Together with the identity matrix, they form a basis for all single-qubit operations in quantum mechanics. Learn more about Pauli Operator (, , or ). The Quantum Circuit'sA quantum circuit is a sequence of quantum gates applied to qubits, representing the operations in a quantum computation. Each gate changes the qubits’ state using quantum mechanics principles like superposition and entanglement. The final qubit states, when measured, yield the circuit’s computational result probabilistically. Learn more about Quantum Circuit output is then the Expectation ValueThe expectation value is the average result you'd get if you repeated a measurement of a quantity many times under identical conditions. Mathematically, it’s the weighted average of all possible outcomes, where each outcome is weighted by its probability. In quantum mechanics, it represents the average value of an observable calculated from the wavefunction. Learn more about Expectation Value of with respect to the encoded Quantum StateA quantum state is the complete mathematical description of a quantum system, containing all the information needed to predict measurement outcomes. It’s usually represented by a wavefunction or a state vector in a Hilbert space. The state defines probabilities, not certainties, for observable quantities like position, momentum, or spin. Learn more about Quantum State:
If this equation doesn't scare you off, then I don't know what will. But actually, this is just the mathematical definition of a simple concept (read from the right to the left).
First, we apply the encoding is a Unitary OperatorA **unitary operator** is a linear operator ( U ) on a complex vector space that satisfies ( U^\dagger U = UU^\dagger = I ), meaning it preserves inner products. In simpler terms, it preserves the **length** and **angle** between vectors—so it represents a **reversible, norm-preserving transformation**. In quantum mechanics, unitary operators describe the evolution of isolated systems because they conserve probability. Learn more about Unitary Operator (therefore ) that encodesEncoding is the process of converting information from one form into another, usually so it can be stored, transmitted, or processed more efficiently. For example, text can be encoded into binary for computers to handle, or sounds into digital signals for transmission. The key idea is that encoding changes the representation, not the meaning, of the data. Learn more about Encoding the data value according to a encoding scheme or feature mapA **Quantum Feature Map** is a process that converts classical input data into a **quantum state** using a parameterized quantum circuit. This transformation encodes data into the **high-dimensional Hilbert space** of a quantum system, allowing quantum algorithms to exploit complex correlations not easily captured classically. Essentially, it’s the quantum analogue of feature mapping in machine learning, used to make data more separable for classification or regression tasks. Learn more about Quantum Feature Map ("phi"). Different choices of correspond to different ways of embedding data into a Quantum StateA quantum state is the complete mathematical description of a quantum system, containing all the information needed to predict measurement outcomes. It’s usually represented by a wavefunction or a state vector in a Hilbert space. The state defines probabilities, not certainties, for observable quantities like position, momentum, or spin. Learn more about Quantum State, such as Angle EncodingAngle encoding is a method of loading classical data into a quantum state by mapping data values to rotation angles of qubits (e.g., using quantum gates like Rx Gate, Ry Gate, or Rz Gate) Each feature of the data is represented as the angle of the quantum state vector’s rotation, which changes its probability amplitudes. This allows continuous classical values to be embedded in qQuantum states for use in quantum algorithms or quantum circuits. Learn more about Angle Encoding, Amplitude EncodingAmplitude encoding represents classical data as the amplitudes of a quantum state's basis vectors. If you have a normalized data vector , it’s encoded into an -qubit state . This allows data values to be stored in only qubits, but preparing the quantum state can be computationally expensive. Learn more about Amplitude Encoding, or more elaborate Quantum Feature MapsA **Quantum Feature Map** is a process that converts classical input data into a **quantum state** using a parameterized quantum circuit. This transformation encodes data into the **high-dimensional Hilbert space** of a quantum system, allowing quantum algorithms to exploit complex correlations not easily captured classically. Essentially, it’s the quantum analogue of feature mapping in machine learning, used to make data more separable for classification or regression tasks. Learn more about Quantum Feature Map). So means apply the unitary defined by encoding rule to input . The is not a variable like , but a tag to remind you how the data is being encoded. Learn more about onto the computational basis start state is a basis state. Learn more about .
Then measure the resulting quantum state (using the ObservableIn quantum computing, an **observable** is a physical quantity (like energy, spin, or position) that can be **measured** from a quantum state. Mathematically, it’s represented by a **Hermitian operator**, whose eigenvalues correspond to the possible measurement outcomes. When you measure an observable, the quantum state **collapses** into one of its eigenstates, yielding one of those eigenvalues as the result. Learn more about Observable).
is the AdjointIn mathematics, the adjoint of a matrix (or operator) is its conjugate transpose: take the transpose and then replace each entry with its conjugate. For a matrix , the adjoint is written ). It generalizes the transpose to complex spaces and is central in defining Hermitian and unitary operators. Learn more about Adjoint (Complex ConjugateThe complex conjugate of a Complex NumberA complex number is a number that has two parts: a real part and an imaginary part, written as ( a + bi ), where ( i = \sqrt ). The real part ( a ) behaves like ordinary numbers, while the imaginary part ( bi ) represents a direction perpendicular to the real axis on the complex plane. Complex numbers let us represent and calculate quantities involving square roots of negative numbers. Learn more about Complex Number, where and , is defined as . So you flip the sign of the imaginary part and leave the real part unchanged. Learn more about Complex ConjugateTransposeA **transpose** of a matrix is formed by flipping it over its diagonal — rows become columns and columns become rows. Mathematically, the element at position ( (i, j) ) in the original matrix moves to ( (j, i) ) in the transposed matrix. It’s often denoted as ( A^T ) or ( A' ). Learn more about Transpose) of the EncodingEncoding is the process of converting information from one form into another, usually so it can be stored, transmitted, or processed more efficiently. For example, text can be encoded into binary for computers to handle, or sounds into digital signals for transmission. The key idea is that encoding changes the representation, not the meaning, of the data. Learn more about Encoding. It is not an instruction you actually run after MeasurementIn quantum computing, measurement is the process of extracting classical information from a quantum state. It collapses a qubit’s superposition into one of its basis states (usually or ), with probabilities determined by the amplitudes of those states. After measurement, the qubit’s state becomes definite, destroying the original superposition. Learn more about Measurement. Instead, it appears as part of the Expectation ValueThe expectation value is the average result you'd get if you repeated a measurement of a quantity many times under identical conditions. Mathematically, it’s the weighted average of all possible outcomes, where each outcome is weighted by its probability. In quantum mechanics, it represents the average value of an observable calculated from the wavefunction. Learn more about Expectation ValuesandwichNielsen, M.A., 2010, Cambridge university press, . So, it is an artifact of Linear AlgebraLinear algebra is the branch of mathematics that studies vectors, vector spaces, and linear transformations between them. It provides tools for solving systems of linear equations and understanding geometric operations like rotations, projections, and scaling. Its core objects—matrices and vectors—form the basis for much of modern computation, physics, and machine learning. Learn more about Linear Algebra that essentially tells us to compute the Expectation ValueThe expectation value is the average result you'd get if you repeated a measurement of a quantity many times under identical conditions. Mathematically, it’s the weighted average of all possible outcomes, where each outcome is weighted by its probability. In quantum mechanics, it represents the average value of an observable calculated from the wavefunction. Learn more about Expectation Value.
In Qiskit,Qiskit is an open-source Python framework for programming and simulating quantum computers. It lets users create quantum circuits, run them on real quantum hardware or simulators, and analyze the results. Essentially, it bridges high-level quantum algorithms with low-level hardware execution. Learn more about Qiskit the MeasurementIn quantum computing, measurement is the process of extracting classical information from a quantum state. It collapses a qubit’s superposition into one of its basis states (usually or ), with probabilities determined by the amplitudes of those states. After measurement, the qubit’s state becomes definite, destroying the original superposition. Learn more about Measurement procedure simplifies considerably. QubitsA qubit is the basic unit of quantum information, representing a superposition of 0 and 1 states. Learn more about Quantum Bit are always measured in the Computational BasisThe **computational basis** is the standard set of basis states used to describe qubits in quantum computing—typically (|0⟩) and (|1⟩) for a single qubit, or all possible combinations like (|00⟩, |01⟩, |10⟩, |11⟩) for multiple qubits. These states correspond to classical bit strings and form an orthonormal basis for the system’s Hilbert space. Any quantum state can be expressed as a superposition of these computational basis states. Learn more about Computational Basis, so you don't have to specify a measurement operatorIn quantum computing, measurement is the process of extracting classical information from a quantum state. It collapses a qubit’s superposition into one of its basis states (usually or ), with probabilities determined by the amplitudes of those states. After measurement, the qubit’s state becomes definite, destroying the original superposition. Learn more about Measurement yourself. You only need to interpret the results accordingly. A single execution of the circuit yields one outcome, sampled according to the Quantum State'sA quantum state is the complete mathematical description of a quantum system, containing all the information needed to predict measurement outcomes. It’s usually represented by a wavefunction or a state vector in a Hilbert space. The state defines probabilities, not certainties, for observable quantities like position, momentum, or spin. Learn more about Quantum State probability distribution. To estimate theExpectation ValueThe expectation value is the average result you'd get if you repeated a measurement of a quantity many times under identical conditions. Mathematically, it’s the weighted average of all possible outcomes, where each outcome is weighted by its probability. In quantum mechanics, it represents the average value of an observable calculated from the wavefunction. Learn more about Expectation Value, the Quantum CircuitA quantum circuit is a sequence of quantum gates applied to qubits, representing the operations in a quantum computation. Each gate changes the qubits’ state using quantum mechanics principles like superposition and entanglement. The final qubit states, when measured, yield the circuit’s computational result probabilistically. Learn more about Quantum Circuit is executed many times, and the measurement outcomes are averaged.
Listing 2 A complete parameterized quantum circuitIn this code listing, we extend the parameterized quantum circuit with a measurement and check whether the observed results match the desired probability.
We from Qiskit and Python's math library.
Similar to the previous example, the , by an angle determined by the .
After this rotation, we call measure_all(), which in the computational () basis.
Next, we , here , for observing the outcome is a basis state. Learn more about . To , we use the relation . Solving for gives , which we assign to the circuit parameter .
The circuit is on Qiskit'sQiskit is an open-source Python framework for programming and simulating quantum computers. It lets users create quantum circuits, run them on real quantum hardware or simulators, and analyze the results. Essentially, it bridges high-level quantum algorithms with low-level hardware execution. Learn more about Qiskit for shots. Each run produces a measurement of either or , and the .
yields the empirical probability. This value is printed alongside the theoretical probability, demonstrating how the encoding and measurement steps reproduce the intended statistics.
Listing 3 Output of running the full parameterized quantum circuit
As you can see in ?, the mathematical and the circuit representation correspond to each other. They are two descriptions of the same concept.
Uφ(x)Measurement|0Ry(x)Zf(x)=0|U†φ(x)MUφ(x)|0startingbasisstateinputencodingmeasurementoperatorpartofexpectationvalueFigure 1 The equation and the circuit are two representations of the same concept
Parameterized quantum circuits offer a minimal but powerful template: classical data is encodedEncoding is the process of converting information from one form into another, usually so it can be stored, transmitted, or processed more efficiently. For example, text can be encoded into binary for computers to handle, or sounds into digital signals for transmission. The key idea is that encoding changes the representation, not the meaning, of the data. Learn more about Encoding into Quantum States,A quantum state is the complete mathematical description of a quantum system, containing all the information needed to predict measurement outcomes. It’s usually represented by a wavefunction or a state vector in a Hilbert space. The state defines probabilities, not certainties, for observable quantities like position, momentum, or spin. Learn more about Quantum State further developed using tunable Quantum GatesA quantum gate is a basic operation that changes the state of one or more qubits, similar to how a logic gate operates on bits in classical computing. It uses unitary transformations, meaning it preserves the total probability (the state’s length in complex space). Quantum gates enable superposition and entanglement, allowing quantum computers to perform computations that classical ones cannot efficiently replicate. Learn more about Quantum Gate, and extracted through Measurements.In quantum computing, measurement is the process of extracting classical information from a quantum state. It collapses a qubit’s superposition into one of its basis states (usually or ), with probabilities determined by the amplitudes of those states. After measurement, the qubit’s state becomes definite, destroying the original superposition. Learn more about Measurement The code listings show how this abstract recipe can be reduced to a few lines inQiskit,Qiskit is an open-source Python framework for programming and simulating quantum computers. It lets users create quantum circuits, run them on real quantum hardware or simulators, and analyze the results. Essentially, it bridges high-level quantum algorithms with low-level hardware execution. Learn more about Qiskit with probabilities directly linked to Quantum GateA quantum gate is a basic operation that changes the state of one or more qubits, similar to how a logic gate operates on bits in classical computing. It uses unitary transformations, meaning it preserves the total probability (the state’s length in complex space). Quantum gates enable superposition and entanglement, allowing quantum computers to perform computations that classical ones cannot efficiently replicate. Learn more about Quantum Gate parameters and verified through repeated Measurements.In quantum computing, measurement is the process of extracting classical information from a quantum state. It collapses a qubit’s superposition into one of its basis states (usually or ), with probabilities determined by the amplitudes of those states. After measurement, the qubit’s state becomes definite, destroying the original superposition. Learn more about Measurement
The real challenge, however, is not to build such Quantum Circuits,A quantum circuit is a sequence of quantum gates applied to qubits, representing the operations in a quantum computation. Each gate changes the qubits’ state using quantum mechanics principles like superposition and entanglement. The final qubit states, when measured, yield the circuit’s computational result probabilistically. Learn more about Quantum Circuit but to design them in such a way that they exploit the quantum structure instead of laboriously imitating classical models. Whether parameterized quantum circuits with a manageable number of parameters can consistently deliver non-classical behavior remains the central open research question.
For now, small examples like these make the mechanics transparent: data becomes a rotation, a QubitA qubit is the basic unit of quantum information, representing a superposition of 0 and 1 states. Learn more about Quantum Bit becomes a probabilistic ModelA **model** in machine learning is a mathematical representation of patterns learned from data. It takes **inputs** (features) and produces **outputs** (predictions or classifications) based on relationships it has identified during training. Essentially, it’s a function that generalizes from examples to make decisions or predictions on new data. Learn more about Model, andMeasurementsIn quantum computing, measurement is the process of extracting classical information from a quantum state. It collapses a qubit’s superposition into one of its basis states (usually or ), with probabilities determined by the amplitudes of those states. After measurement, the qubit’s state becomes definite, destroying the original superposition. Learn more about Measurement convert AmplitudesIn quantum computing an amplitude is a complex number that describes the weight of a basis state in a quantum superposition. The squared magnitude of an amplitude gives the probability of measuring that basis state. Amplitudes can interfere, this means adding or canceling, allowing quantum algorithms to bias outcomes toward correct solutions. Learn more about Amplitude into statistics. From here, the task is to scale this simple picture to architectures that could one day demonstrate a true Quantum Advantage.Quantum advantage is the point where a quantum computer performs a specific task faster or more efficiently than the best possible classical computer. It doesn’t mean quantum computers are universally better—just that they outperform classical ones for that task. The first demonstrations (e.g., Google’s 2019 Sycamore experiment) showed speedups for highly specialized problems, not yet for practical applications. Learn more about Quantum Advantage