Quantum Artificial Intelligence

Chapter 3
Quantum Computing Models, Circuits and Architectures

Post Graduate Program in AI and ML
Quantum Artificial Intelligence   •   Post Graduate

3. Quantum Computing Models, Circuits and Architectures

Introduction and Context

Quantum artificial intelligence depends not only on quantum algorithms but also on the computational model and physical architecture used to execute them. A quantum circuit written at an abstract level must eventually be compiled into operations supported by a real device, exposed to noise, timing constraints, connectivity restrictions, and measurement limitations. Understanding this relationship is essential for evaluating claims about quantum advantage and for designing useful hybrid quantum–classical systems.

This chapter develops the main computational models of quantum computing and relates them to circuit construction and hardware implementation. The circuit model is treated in greatest detail because it provides the common language for most quantum algorithms. Annealing, adiabatic, and measurement-based models are then compared with it. The chapter concludes by examining superconducting, trapped-ion, photonic, and neutral-atom architectures, including their principal engineering trade-offs.

Learning Objectives

After completing this chapter, a learner should be able to:

1. Explain the state-vector and unitary descriptions of single- and multi-qubit computation.

2. Construct and interpret circuits using common one- and two-qubit gates.

3. Distinguish circuit, quantum annealing, adiabatic, and measurement-based models.

4. Explain compilation, connectivity, fidelity, coherence, and error-correction issues.

5. Compare superconducting, trapped-ion, photonic, and neutral-atom architectures.

6. Select an appropriate model or architecture for a stated application and justify the choice.

From Quantum States to Executable Circuits

A qubit is represented by a normalized vector

|ψ⟩ = α|0⟩ + β|1⟩, |α|² + |β|² = 1,

where α and β are complex amplitudes. Measurement in the computational basis produces 0 with probability |α|² and 1 with probability |β|². The relative phase between amplitudes is not directly observed in a single measurement, but it influences later interference.

For n qubits, the state belongs to a 2ⁿ-dimensional Hilbert space. The tensor product describes joint states. For example, two qubits may be written as |ψ⟩ = α00|00⟩ + α01|01⟩ + α10|10⟩ + α11|11⟩. A state is entangled when it cannot be expressed as a tensor product of individual qubit states. Entanglement and interference are resources used by many quantum algorithms, but neither alone guarantees computational advantage.

An ideal quantum circuit alternates quantum gates, which are unitary transformations, with measurements. A unitary U satisfies U†U = I and therefore preserves total probability. Measurement is non-unitary: it maps a quantum state to a classical outcome and generally destroys the measured information. A practical program also contains initialization, classical control, measurement, and often repeated execution, or sampling, because one circuit run produces only one outcome.

Essential Gates

The Pauli gates are

X = [[0,1],[1,0]], Y = [[0,-i],[i,0]], Z = [[1,0],[0,-1]].

X exchanges |0⟩ and |1⟩; Z changes the phase of |1⟩; and Y combines a bit flip and a phase operation. The Hadamard gate,

H = 1/√2 [[1,1],[1,-1]],

creates and recombines superpositions. H|0⟩ = (|0⟩ + |1⟩)/√2, while H|1⟩ = (|0⟩ − |1⟩)/√2. Phase gates, including S and T, apply relative phases, and rotation gates Rx(θ), Ry(θ), and Rz(θ) provide continuously parameterized transformations.

A controlled-NOT, or CNOT, applies X to a target qubit only when the control qubit is |1⟩. Starting with |00⟩, the sequence H on the first qubit followed by CNOT produces the Bell state

(|00⟩ + |11⟩)/√2.

This is a standard entanglement circuit. Measuring both qubits in the computational basis gives 00 or 11, each with probability one-half. The outcomes are correlated, although neither individual result is predetermined in the usual probabilistic description.

Other controlled operations include controlled-Z and controlled phase rotations. SWAP exchanges two qubits and can be decomposed into three CNOT gates. Toffoli, or controlled-controlled-NOT, is important in reversible computation and can be decomposed into one- and two-qubit gates. Although a gate may be mathematically elementary, hardware often implements it through a longer pulse sequence.

Constructing a Circuit: A Worked Example

Consider a two-qubit parity-check circuit. Initialize q₀ and q₁ in |0⟩ and apply X to q₁, producing |01⟩. Apply CNOT with q₀ as control and q₁ as target. Since q₀ is zero, the state remains |01⟩. If instead X is applied to q₀ as well, the input is |11⟩; CNOT changes the target and produces |10⟩. Thus the target records the XOR, or parity, of the input bits. Measuring the target yields 0 for equal inputs and 1 for unequal inputs.

A more informative circuit prepares arbitrary input amplitudes, entangles an ancilla with the input, and measures the ancilla. Such constructions occur in quantum machine-learning routines, but their usefulness depends on state preparation, the number of samples, and the cost of classical post-processing. A circuit should therefore be specified not only by its gate list but also by its initial state, qubit ordering, measurement basis, number of shots, and classical interpretation.

Models of Quantum Computation

The Gate or Circuit Model

In the universal circuit model, computation is expressed as a sequence of gates drawn from a universal set, such as arbitrary one-qubit rotations together with an entangling two-qubit gate. The circuit is usually divided into layers or depth. Width denotes the number of qubits, while depth measures sequential dependence. Gate count and two-qubit-gate count are useful resource measures, but depth is often more important when decoherence acts during execution.

A high-level circuit is transformed by a compiler into the native gate set and connectivity graph of a device. This process may decompose gates, map logical qubits to physical qubits, insert SWAP operations, schedule pulses, and optimize cancellations. Consequently, an algorithm with a small abstract circuit can acquire substantial overhead on hardware with limited connectivity.

The circuit model supports both conventional algorithms, such as factoring and amplitude amplification, and variational algorithms. In a variational quantum algorithm, a parameterized circuit prepares a state |ψ(θ)⟩, a quantum processor estimates an objective such as ⟨H⟩, and a classical optimizer updates θ. The variational quantum eigensolver and quantum approximate optimization algorithm are important examples. They are hybrid rather than purely quantum: data management, optimization, parameter selection, and much of the workflow remain classical.

Quantum Annealing

Quantum annealing encodes a problem, commonly an optimization problem, in an energy function. A system is initialized in the ground state of an easily prepared Hamiltonian and gradually changes toward a problem Hamiltonian whose low-energy states represent good solutions. The device attempts to remain near a low-energy configuration, but finite temperature, control error, and non-adiabatic transitions can affect the result.

Annealers are not automatically equivalent to universal gate-based quantum computers. Their native operation is usually specialized for certain optimization formulations, such as Ising or quadratic unconstrained binary optimization models. Embedding a logical problem into hardware connectivity can require chains of physical variables, adding overhead and possible chain-breaking errors.

Adiabatic Quantum Computing

Adiabatic computation is based on the adiabatic theorem. If a system begins in the ground state of H(0) and the Hamiltonian changes sufficiently slowly to H(T), the final state remains close to the instantaneous ground state. The required runtime depends strongly on the minimum spectral gap between relevant energy levels. If the gap becomes very small, a practically feasible evolution may be impossible.

In theory, appropriately designed adiabatic computation can be computationally equivalent to the circuit model. In practice, annealing systems and adiabatic universal computers differ in controllability, Hamiltonian design, error management, and available operations. The terms should therefore not be treated as interchangeable labels for every optimization device.

Measurement-Based Quantum Computing

Measurement-based, or one-way, quantum computing begins with a highly entangled resource state, often a cluster state. Computation proceeds through adaptive single-qubit measurements. Measurement outcomes are random, so later measurement bases and classical corrections depend on earlier outcomes. The entanglement is consumed as computation advances.

This model is theoretically equivalent to the circuit model, but it changes where complexity is placed: resource-state generation and adaptive measurement replace much of the gate sequence. It is especially relevant to photonic implementations, where measurement can be comparatively natural. Loss, detector inefficiency, feed-forward latency, and resource-state preparation remain major engineering concerns.

Architectures: From Abstract Qubits to Hardware

Superconducting Qubits

Superconducting platforms use lithographically fabricated circuits containing nonlinear elements, commonly Josephson junctions, operated at cryogenic temperatures. Microwave pulses implement single-qubit rotations and entangling interactions. Their strengths include fast gates, mature fabrication methods, and compatibility with electronic control systems. Challenges include cryogenic infrastructure, frequency collisions, crosstalk, calibration drift, limited coherence relative to some alternatives, and connectivity constraints.

Superconducting processors are often described by a coupling graph. If two logical qubits requiring a CNOT are not adjacent, the compiler may use SWAP gates or exploit temporary interactions. The resulting extra gates increase exposure to error. Architecture-aware algorithm design is therefore important.

Trapped-Ion Systems

Trapped-ion processors confine atomic ions in electromagnetic fields and use laser or microwave interactions to manipulate internal states. Ions can have long coherence times and high-fidelity operations. In many designs, collective motional modes permit interactions between distant ions, reducing the need for frequent SWAP operations.

The trade-offs include slower gates, sensitivity to motional heating, laser-control complexity, and scaling challenges associated with maintaining and addressing larger ion chains. Segmented traps and modular networking are active approaches to scaling.

Photonic Architectures

Photonic quantum computing encodes information in properties such as polarization, path, time-bin, or optical modes. Photons are naturally suited to communication, can travel at room temperature, and interact weakly with the environment. These characteristics make photonics attractive for networking and measurement-based schemes.

The central difficulties are deterministic two-photon interactions, photon loss, source quality, detector efficiency, and the generation of large entangled resource states. Linear-optical approaches use interferometers, sources, detectors, and measurement-induced operations rather than relying on strong direct interactions between photons.

Neutral-Atom Systems

Neutral atoms are held in optical tweezers or optical lattices and controlled using laser fields. Rydberg excitation provides strong, tunable interactions that can implement entangling gates. Arrays can be rearranged, offering flexible geometries and potentially high qubit counts.

Important challenges include atom loss, laser stability, state-preparation fidelity, addressing errors, and the engineering of large-scale control systems. Neutral atoms are particularly promising for simulation and programmable arrays because geometry and interaction patterns can be changed comparatively flexibly.

Comparing Architectures

No architecture is best on every dimension. A useful comparison considers gate speed, coherence time, two-qubit fidelity, measurement fidelity, connectivity, reset time, scalability, control complexity, temperature requirements, and error-correction prospects. One should also distinguish laboratory demonstrations from application-level performance. A processor with many physical qubits may be less useful than a smaller processor with better connectivity and effective logical fidelity for a particular circuit.

Noise, Compilation, and Error Management

Real devices experience relaxation, usually denoted T₁, and dephasing, often associated with T₂. Readout errors cause the reported classical result to differ from the actual measured state. Gate errors, leakage outside the computational subspace, crosstalk, calibration drift, and correlated noise further complicate execution.

Error mitigation attempts to reduce the effect of errors without fully encoding a logical qubit. Examples include measurement-error calibration, zero-noise extrapolation, probabilistic error cancellation, symmetry verification, and carefully designed circuit recompilation. These techniques generally add sampling or computational overhead and do not replace fault-tolerant error correction.

Quantum error correction encodes one logical qubit into many physical qubits. A code detects error syndromes without directly measuring the logical information. Fault-tolerant computation requires operations and error rates that permit reliable logical processing below suitable thresholds. The overhead can be substantial, making architectural choices and algorithmic efficiency inseparable from practical scalability.

Applied Case: Choosing an Architecture for a Hybrid Optimization Prototype

Background

A logistics firm wishes to investigate whether quantum methods can improve a small vehicle-routing problem with time-window constraints. The project is an illustrative case, not a claim that a production advantage has already been established.

Situation and Analysis

The research team converts the problem into a binary objective with penalty terms and considers both a QAOA circuit and an annealing formulation. The instance is small enough for experimentation but has dense logical interactions. A superconducting device offers rapid gate execution and a mature software ecosystem, yet its sparse coupling graph would require many routing operations. A trapped-ion device offers more flexible interactions and long coherence, but its slower operations may increase wall-clock execution time. An annealer can represent the quadratic objective naturally, but embedding and penalty-weight selection may distort the comparison.

Approach

The team first constructs a classical baseline and verifies the encoding on simulated noiseless circuits. It then measures circuit depth, two-qubit count, compilation overhead, objective sampling error, and solution quality rather than reporting only the best observed sample. On hardware, it uses several penalty weights, calibration-aware compilation, measurement-error mitigation, and repeated trials. Results are compared with classical heuristics under equal time and computational budgets.

Outcome

The experiment identifies encoding errors and shows that hardware noise changes the relative quality of candidate solutions. The quantum prototype is useful as a systems-learning exercise, but the evidence is insufficient to claim operational advantage. The most valuable outcome is a disciplined benchmark framework linking formulation, compilation, hardware behavior, and classical comparison.

Learning Points

The case demonstrates that model selection is problem-dependent; an abstractly elegant circuit may be unsuitable for a given connectivity graph. It also shows why claims must distinguish solution quality, runtime, energy use, sample complexity, and scalability. Quantum hardware should be evaluated as part of a hybrid workflow rather than in isolation.

Professional and Governance Considerations

Quantum software engineers must document qubit order, gate conventions, calibration assumptions, random seeds, shot counts, compiler versions, and error-mitigation procedures. Reproducibility is difficult when devices drift, so experimental metadata is part of the technical result. Benchmarking should include meaningful classical baselines and disclose whether post-selection or hand-picked runs were used.

Organizations should avoid treating a quantum label as evidence of business value. Sensitive optimization data may require conventional security controls during cloud execution. Quantum computing also has long-term implications for cryptography: organizations should inventory cryptographic assets and plan migration toward quantum-resistant methods, while avoiding unsupported claims about immediate decryption capabilities. Professional decisions should consider cost, energy, vendor dependence, export controls where applicable, and the difference between research access and dependable production service.

Current Directions and Best Practices

Important developments include logical-qubit demonstrations, improved error-correction decoders, modular and networked architectures, neutral-atom rearrangement, photonic fault-tolerance schemes, cryogenic control electronics, and co-design between algorithms, compilers, and hardware. Hybrid quantum–classical workflows remain central because data preparation, optimization, verification, and interpretation are usually classical.

Sound practice begins with a classical formulation and a resource estimate. Researchers should choose a representation that minimizes unnecessary entangling operations, exploit hardware connectivity, use symmetry and conservation laws when available, test circuits with simulators and small instances, and report distributions rather than isolated results. Architecture selection should be based on the workload's interaction pattern and error sensitivity, not on qubit count alone.

Chapter Summary

Quantum computation represents information in qubits and transforms it with unitary gates before measurement. One- and two-qubit gates such as H, Pauli operations, rotations, CNOT, and SWAP form the vocabulary of circuit construction. Circuit depth, connectivity, compilation overhead, and measurement statistics determine how an abstract algorithm behaves on hardware.

The circuit model is universal and supports variational hybrid algorithms. Quantum annealing and adiabatic computation use Hamiltonian evolution and ground-state search, while measurement-based computation consumes entangled resource states through adaptive measurements. Superconducting, trapped-ion, photonic, and neutral-atom architectures differ in speed, coherence, connectivity, control requirements, and scalability. Practical quantum AI therefore requires co-design across mathematical formulation, circuit compilation, hardware characteristics, noise management, benchmarking, and governance.

Key Terms

Qubit: The basic unit of quantum information, represented by a two-dimensional quantum state.

Superposition: A coherent linear combination of basis states.

Amplitude: A complex coefficient whose squared magnitude determines measurement probability.

Entanglement: A joint quantum state that cannot be factored into individual subsystem states.

Unitary: A reversible linear transformation preserving normalization.

Quantum circuit: An ordered arrangement of quantum gates, measurements, and classical operations.

CNOT: A controlled gate that flips a target when its control is one.

Circuit depth: The number of sequential gate layers on a critical execution path.

Connectivity graph: A representation of which physical qubits can directly interact.

Compilation: Translation and optimization of an abstract circuit for a target device.

Quantum annealing: Low-energy optimization based on evolving a problem Hamiltonian.

Adiabatic computation: Computation that follows an evolving ground state under sufficiently slow Hamiltonian change.

Measurement-based computation: A model using adaptive measurements on an entangled resource state.

Coherence time: The timescale over which quantum phase information remains usable.

Fidelity: A measure of agreement between an intended and an actual quantum state or operation.

QAOA: A parameterized circuit algorithm for approximate combinatorial optimization.

VQE: A variational method for estimating the ground-state energy of a Hamiltonian.

Error mitigation: Techniques that reduce observed noise effects without full error correction.

Fault tolerance: Reliable computation using error-correcting encodings and protected operations.

Logical qubit: An encoded qubit represented by multiple physical qubits.

Review Questions

Short Answer Questions

1. Why does measurement differ fundamentally from a unitary gate?

2. What operation does a CNOT perform?

3. Define circuit depth and explain why it matters on noisy hardware.

4. What is the purpose of a connectivity graph?

5. State one strength and one challenge of photonic quantum computing.

Long Answer Questions

1. Explain how H followed by CNOT produces an entangled Bell state, including its measurement outcomes.

2. Compare the circuit, annealing, adiabatic, and measurement-based models.

3. Discuss how compilation can change the practical cost of an abstract quantum algorithm.

4. Compare superconducting and trapped-ion architectures in terms of control, speed, coherence, and connectivity.

5. Explain the roles of error mitigation and quantum error correction and why they should not be conflated.

Analytical / Application Questions

1. A circuit requires frequent interactions between non-adjacent qubits on a sparse hardware graph. Analyze the likely overhead and propose two responses.

2. Select an architecture for a problem requiring long coherence and flexible interactions. Justify the choice while identifying relevant trade-offs.

3. Design an evaluation plan for a QAOA prototype that prevents a misleading claim of quantum advantage.

22. Multiple Choice Questions with Answers

Question 1

What is the result of applying a Hadamard gate to |0⟩?

A. |1⟩

B. (|0⟩ + |1⟩)/√2

C. (|0⟩ − |1⟩)/√2

D. A classical mixture of |0⟩ and |1⟩

Correct Answer: B. (|0⟩ + |1⟩)/√2

Question 2

Which circuit prepares a Bell state from |00⟩?

A. X on both qubits

B. Z on the first qubit followed by X on the second

C. H on the first qubit followed by CNOT with the first as control

D. CNOT followed by measurement of the first qubit

Correct Answer: C. H on the first qubit followed by CNOT with the first as control

Question 3

Why might compilation insert SWAP gates?

A. To increase measurement probability

B. To connect logical qubits that are not physically adjacent

C. To convert a unitary into a non-unitary operation

D. To eliminate the need for initialization

Correct Answer: B. To connect logical qubits that are not physically adjacent

Question 4

Which statement best describes quantum annealing?

A. It uses only single-qubit measurements

B. It encodes an optimization problem in an energy landscape and seeks low-energy states

C. It is identical in implementation to every universal gate circuit

D. It avoids all effects of temperature and noise

Correct Answer: B. It encodes an optimization problem in an energy landscape and seeks low-energy states

Question 5

In measurement-based quantum computing, computation primarily proceeds through:

A. Adaptive measurements on an entangled resource state

B. Classical Boolean gates only

C. Repeated cooling without measurement

D. Random replacement of qubits

Correct Answer: A. Adaptive measurements on an entangled resource state

Question 6

Which architecture commonly uses Josephson junction-based circuits at cryogenic temperatures?

A. Photonic

B. Neutral-atom

C. Trapped-ion

D. Superconducting

Correct Answer: D. Superconducting

Question 7

A major advantage of trapped-ion systems is often:

A. Operation without electromagnetic control

B. Long coherence and flexible interactions

C. No need for vacuum equipment

D. Perfectly instantaneous gates

Correct Answer: B. Long coherence and flexible interactions

Question 8

Which factor most directly increases the practical error exposure of a circuit?

A. Reducing its depth

B. Adding unnecessary two-qubit gates

C. Using a normalized state

D. Recording the measurement results

Correct Answer: B. Adding unnecessary two-qubit gates

Question 9

What distinguishes error mitigation from full quantum error correction?

A. Mitigation reduces observed effects without necessarily encoding logical qubits

B. Mitigation guarantees fault-tolerant computation

C. Correction requires no additional physical qubits

D. Correction is performed only after classical optimization

Correct Answer: A. Mitigation reduces observed effects without necessarily encoding logical qubits

Question 10

For a dense optimization problem with limited hardware connectivity, which evaluation is most appropriate?

A. Report only the best single sample

B. Ignore embedding and compiler overhead

C. Compare solution distributions, overhead, noise, and classical baselines

D. Judge performance solely by physical-qubit count

Correct Answer: C. Compare solution distributions, overhead, noise, and classical baselines

Quantum Artificial Intelligence
Chapter 3 of 15