Classical Information Review
Classical information theory supplies the control model against which many quantum-information claims are stated. Given a protocol, benchmark, or proposed advantage, the task is to identify the alphabet and source distribution, stochastic channel, code and decoder, blocklength, rate, error or security criterion, access model, and total cost before comparing it with a quantum alternative. This page develops that source-to-decoder ledger for finite discrete alphabets, iid sources, and discrete memoryless channels. It uses standard information measures without replacing their canonical mathematical derivations, and it stops before quantum-channel capacities, security proofs, or complexity-class theory.
Required background. Probability Spaces, Light Version supplies finite sample spaces, random variables, and distributions. Conditional Probability supplies the joint, conditional, and marginal probability manipulations used to define channels and decoding errors.
Helpful background. Entropy repairs Shannon, joint, conditional, and binary-entropy conventions; Relative Entropy repairs KL support conditions and statistical interpretation; and Classical Probability versus Quantum Probability marks the boundary between a single classical sample-space model and probabilities generated by quantum states and measurements.
Classical Information as an Operational Baseline
Section titled “Classical Information as an Operational Baseline”A classical information problem is not specified by an entropy value alone. It is an end-to-end task with a source, a permitted representation, a transformation or communication medium, a decision rule, and a criterion for success. A compact workflow is
source and alphabet -> encoder and code -> stochastic channel -> decoder or decision rule -> error, security, rate, and cost reportThe objects in that workflow answer different questions:
| Layer | Required declaration |
|---|---|
| source | alphabet, distribution, correlations, and block model |
| encoder | what input is mapped to which codeword, and with what preprocessing |
| channel | conditional law, number of uses, memory assumptions, and constraints |
| decoder | observation-to-output map, including ties, erasures, or aborts |
| criterion | loss, average or maximal error, secrecy, precision, and confidence |
| accounting | rate units, access model, memory, repetitions, and total cost |
The same physical link can support several tasks, and the same probability distribution can appear in several operational models. A source-coding problem asks how economically a source can be represented. A channel-coding problem asks how reliably messages can be conveyed through noise. A hypothesis test asks which model generated an observation. These tasks may use the same entropy or divergence, but they do not share one interchangeable rate or error criterion.
The baseline is therefore a contract, not merely a formula. Only after the contract is fixed does a classical-to-quantum comparison have a stable denominator.
Sources, Alphabets, and Distributions
Section titled “Sources, Alphabets, and Distributions”Let a discrete source produce a random variable taking values in a finite alphabet with probability mass function
The alphabet lists possible symbols; the distribution gives their ensemble frequencies. Neither specifies what the symbols mean. A binary alphabet could encode logical values, detector clicks, source labels, error flags, or decisions. Semantic importance must enter through the task or loss function rather than being inferred from probability alone.
For an iid source block ,
This factorization is an assumption. A stationary source need not be independent, a device can drift, and a channel can have memory. When correlations matter, reporting only the one-symbol marginal discards operationally relevant structure.
A source model should state at least:
- the symbol alphabet and blocklength;
- the probability law or family of laws;
- whether samples are iid, Markovian, adversarial, or otherwise correlated;
- what side information is available to the encoder and decoder;
- whether exact reconstruction, bounded distortion, classification, or another output is required.
The realized sequence is not the distribution . Entropy is an ensemble average, while the information content varies from one realization to another. Likewise, an empirical frequency observed in one finite block is an estimator of a source parameter, not automatically the parameter itself.
Entropy, Divergence, and Mutual Information
Section titled “Entropy, Divergence, and Mutual Information”This page uses base- logarithms, so entropies and divergences are reported in bits, with by continuity. For , the Shannon entropy is
For a pair , the compact dictionary is
and
Entropy measures average uncertainty under a declared ensemble. Conditional entropy measures the uncertainty remaining after the conditioning variable is known. Mutual information measures statistical dependence: it is zero exactly when for finite alphabets. It does not by itself establish causation, usefulness, secrecy, or an achievable communication rate.
For distributions and on the same alphabet,
If for some with , then . The divergence is directed and is not a metric. The identity
connects dependence to distinguishability from the product model. Its proof and the general properties of these quantities remain with the Mathematical Toolkit owners linked above; here the quantities are inputs to source, channel, and comparator audits.
Stochastic Channels and Data Processing
Section titled “Stochastic Channels and Data Processing”A finite classical channel is a conditional distribution from an input alphabet to an output alphabet . This page writes inputs as columns and outputs as rows, so every input column is normalized:
For an input law , the channel induces
and
The conditional law is not a complete communication system. It does not specify the input distribution, encoder, decoder, blocklength, assistance, cost, or criterion for success.
If is a Markov chain, so that is produced from without additional access to , then the data-processing inequality gives
Postprocessing can preserve or discard information about , but it cannot create dependence on that was absent from . This statement assumes the declared Markov structure; hidden side information can invalidate an informal application of the inequality.
Worked audit: a binary symmetric channel
Section titled “Worked audit: a binary symmetric channel”Take a uniform binary input and a binary symmetric channel with crossover probability . With rows indexed by output and columns by input ,
Each column sums to one. Symmetry and the uniform input make uniform, so bit. Given either input, the output flips with probability , hence
where
Therefore
For a BSC, symmetry makes the uniform input capacity achieving, so this value also equals
The capacity is an optimized asymptotic limit for this memoryless channel. It is not an achieved finite-block rate, a gate rate, or hardware throughput.
Source Coding and Compression
Section titled “Source Coding and Compression”A lossless source code represents a source block by a bit string from which the decoder can reconstruct that block. For a one-symbol binary prefix code with codeword lengths , the Kraft inequality requires
and the mean length is
For any binary prefix code, . Suitable codes for long iid blocks can approach the entropy rate, but this is an ensemble and asymptotic statement. It does not say that every individual string is compressible, that a one-symbol code achieves , or that model descriptions and implementation overhead are free.
Compression changes the representation of source data. It does not protect the resulting bits against a noisy channel. Conversely, adding redundancy for error correction generally increases the transmitted blocklength. Keeping these two operations separate prevents the common claim that “coding” must either always compress or always expand data.
Worked audit: a biased Bernoulli source
Section titled “Worked audit: a biased Bernoulli source”Let and . Then
For iid symbols, the first-order entropy benchmark is
This can be compared with the bits needed by the raw one-bit-per-symbol representation. It is not the encoded length of every realized block. A binary single-symbol prefix code still needs one bit for each of the two symbols and therefore has mean length one bit per symbol. Approaching the entropy requires block or arithmetic-style coding, together with finite-block, model, header, and implementation overhead.
Channel Coding and Reliable Decoding
Section titled “Channel Coding and Reliable Decoding”A channel code uses redundancy to convey one of messages through channel uses. For a discrete memoryless channel,
An encoder maps each message to a codeword . A decoder maps the received word to an estimate or, when allowed, an erasure or abort. If , the code rate is
For a discrete memoryless channel, the Shannon capacity is
In its asymptotic form, the noisy-channel coding theorem separates rates below capacity, for which sequences of codes can drive error toward zero, from rates above capacity, which are not reliably achievable under the theorem’s assumptions. The theorem does not select a practical code, fix a decoder’s computational cost, or give the latency and throughput of a finite device.
Source and channel rates use different denominators. A source code reports bits per source symbol; a channel code reports message bits per channel use. Connecting them requires an explicit interface. Under the assumptions of a source–channel separation theorem, one may compress and then protect the compressed bits, but those assumptions and both blocklengths must be declared rather than hidden in a single “compression rate.”
Finite Blocks, Error Criteria, and Rates
Section titled “Finite Blocks, Error Criteria, and Rates”For equiprobable messages, the average decoding error is
whereas the maximal error is
Always for equiprobable messages. A code can protect common or easy messages well while leaving one message much less reliable, so an unqualified “error rate” is insufficient. A one-shot or selected finite-block result must also remain distinct from an asymptotic sequence-of-codes claim.
A finite-block report should include at least:
| Quantity | Meaning |
|---|---|
| number of channel uses | |
| message-set size | |
| nominal code rate | |
| declared average, maximal, or other error target | |
| constraints | energy, bandwidth, memory, latency, or assistance |
| implementation | encoder and decoder cost, repetitions, and elapsed time |
For many memoryless channels under regularity conditions, a normal approximation has the form
where is the channel dispersion and is the inverse Gaussian tail function. This is an approximation with a stated regime, not an exact formula for every finite channel and code. Bounds, normal approximations, selected-code performance, and experimentally measured throughput are four different claims.
Even a fully specified is dimensionless per channel use. Converting it to bits per second requires a channel-use rate and must include synchronization, pilots, decoding, retries, discarded blocks, and other system costs inside the chosen boundary.
Keys, Randomness, and Security Boundaries
Section titled “Keys, Randomness, and Security Boundaries”A key can have high Shannon entropy and still be known to an adversary. Security requires a relation among the key, adversarial information, protocol transcript, and intended ideal resource—not merely a marginal distribution for .
For a classical key and adversarial record , marginal uniformity is represented by . Independence would additionally require . A useful classical distance from an ideal uniform independent key is
If this distance is large, an adversary can distinguish the real joint distribution from the ideal resource even when is maximal. A nominal key length also says nothing by itself about freshness, authentication, leakage during reconciliation, implementation compromise, or safe composition with another protocol.
The one-time pad illustrates the boundary sharply: information-theoretic secrecy needs a uniform secret key independent of the message and adversary, at least as long as the message, and never reused. This page owns that diagnostic distinction. Quantum Key Distribution owns protocol-specific and composable-security analysis, including finite-key accounting and authentication assumptions.
Complexity, Access, and Cost Models
Section titled “Complexity, Access, and Cost Models”An algorithmic comparison begins before the first counted operation. The same mathematical input can be supplied as an explicit list, a stream of samples, a prepared quantum state, a sparse-access oracle, a block encoding, or a QRAM query interface. These inputs expose different information at different construction costs.
Every baseline should declare:
| Contract item | Required question |
|---|---|
| representation | Is the input explicit, sampled, streamed, state encoded, or oracle encoded? |
| access | What does one query return, and can it be made coherently? |
| construction | Who builds the data structure, state, oracle, or block encoding? |
| output | Is the answer a full vector, scalar estimate, decision, or sample? |
| accuracy | Which norm, loss, precision, failure probability, and confidence apply? |
| resources | Which queries, gates, samples, memory, communication, energy, and time count? |
Quantum Oracles specializes this ledger for coherent quantum access, supplied inverse, controlled, powered, or family capabilities, and reductions between oracle forms. This page retains the general task, representation, output, accuracy, construction, and total-cost comparator used to decide whether classical and quantum procedures receive equivalent information and owe equivalently useful outputs.
A query-complexity separation compares algorithms inside a query model. It is not automatically a gate-count, memory, wall-clock, energy, or application-level advantage. Likewise, a circuit that processes an amplitude-encoded state in polylogarithmic depth does not imply that arbitrary classical data can be loaded in polylogarithmic total time.
Query Complexity owns matched fixed-cap deterministic, randomized, exact, zero-error, and bounded-error query measures and their lower-bound certificates inside an already fixed black-box model. This review retains the broader comparator across representation, construction, output utility, accuracy, and total cost beyond query count.
The Quantum Algorithms and Complexity chapter guide applies this matched representation, access, output, error, construction, and total-cost boundary to a complete algorithm claim. Quantum Complexity Classes owns formal class definitions, promises, reductions, and oracle qualifications. The classical baseline here asks the prior operational question: do the classical and quantum procedures receive equivalent access and have to produce equivalently useful outputs?
Build a Fair Classical Comparator
Section titled “Build a Fair Classical Comparator”To audit a proposed quantum advantage, fill in the classical ledger before comparing headline operation counts:
| Ledger field | What must be fixed |
|---|---|
| task | decision, search, sampling, estimation, communication, or reconstruction |
| source | alphabet, instance distribution, correlations, and side information |
| input contract | representation, encoding, and access operations |
| process | stochastic channel, classical algorithm, code, and decoder |
| block structure | source length, channel uses, batches, and repetitions |
| acceptance | output form, loss, precision, error, security, success or failure probability, and confidence |
| resources | queries, samples, gates, memory, communication, and assistance |
| hidden work | loading, preprocessing, compilation, decoding, verification, and readout |
| normalization | per symbol, use, sample, accepted output, or elapsed second |
| evidence scope | theorem, simulation, benchmark, experiment, or projection |
Then apply four checks.
- Match information access. Neither side receives a stronger oracle, a precomputed data structure, or unpriced advice.
- Match the output. A quantum sample or scalar estimate is not compared with a classical requirement to print an entire vector.
- Match accuracy and success. Precision, approximation metric, error target, confidence, postselection, and retry policy are the same.
- Compare total cost. Include input preparation, classical control, memory, communication, verification, and repetitions as well as the advertised inner loop.
A comparator can be theoretical or empirical, but its status must be explicit. A complexity-theoretic lower bound, the fastest published classical implementation, and a convenient baseline script are different comparators. Claims, Hype, and Evidence Standards classifies the resulting claim, Algorithmic Benchmarking owns the executable end-to-end benchmark, and Verification of Quantum Advantage owns the dated classical frontier and validation burden.
Choose the Canonical Owner
Section titled “Choose the Canonical Owner”This review composes a baseline from standard tools. It does not become a second home for their derivations or for downstream quantum results.
| Question | Canonical destination |
|---|---|
| How should I enter this chapter? | Information-Theoretic Foundations routes by carrier, state, process, measure, and task. |
| Which broader learning sequence should I follow? | The Quantum Information Roadmap supplies the staged route. |
| Which mathematical prerequisites need repair? | Math Needed for Quantum Information maps QI tasks to their mathematical owners. |
| Where are Shannon-entropy derivations and properties? | Mathematical Toolkit Entropy. |
| Where are KL support, positivity, and statistical meaning? | Mathematical Toolkit Relative Entropy. |
| Why does quantum probability require more than one classical sample space? | Classical Probability versus Quantum Probability. |
| What distinguishes a bit, qubit, mode, device, and logical encoding? | Bits, Qubits, Qudits, and Modes. |
| Where do von Neumann entropy, quantum relative entropy, and quantum data processing live? | Quantum Entropy. |
| Where are CPTP maps, Kraus, Choi, Stinespring, and quantum noise? | Quantum Channels and Noise. |
| Where are classical–quantum ensembles, Holevo and coherent information, quantum communication tasks, and capacity families? | Communication with Quantum Systems. |
| Where is composable key security? | Quantum Key Distribution. |
| Where are formal complexity classes and reductions? | Quantum Complexity Classes. |
| Where is a claim classified and calibrated? | Claims, Hype, and Evidence Standards. |
| Where is end-to-end performance benchmarked? | Algorithmic Benchmarking. |
| Where is an advantage claim validated against the classical frontier? | Verification of Quantum Advantage. |
Full coding-theorem proofs, lossy rate–distortion theory, continuous variables and differential entropy, error exponents, network information theory, cryptographic constructions, quantum capacities, and complexity-class theory belong with those specialist owners or future dedicated pages.
Common Baseline and Coding Mistakes
Section titled “Common Baseline and Coding Mistakes”Treating entropy as a property of one realized string. averages over a declared ensemble. The self-information of a realization is , and no lossless compressor can shorten every possible input string.
Leaving the logarithm base implicit. Base gives bits and base gives nats. Changing the base rescales the number; it does not change the underlying distribution.
Ignoring support in KL divergence. A term with positive and zero makes infinite. Reversing the arguments can therefore change a finite divergence into an infinite one.
Calling mutual information causal. detects dependence. It does not identify a causal direction or rule out a common cause.
Hiding the channel orientation. A matrix can be row stochastic or column stochastic by convention. State which index is the input, verify the corresponding normalization, and then compute the output law consistently.
Confusing source coding with channel coding. Compression removes predictable redundancy; error-correcting codes add structured redundancy. Their rates have different numerators and denominators.
Reporting capacity as finite throughput. Capacity is an optimized asymptotic boundary under declared channel assumptions and constraints. A finite implementation must report its selected code, decoder, target error, latency, retries, and channel-use rate.
Using “error rate” without a criterion. Average and maximal message error can differ substantially. A worst-case guarantee cannot be inferred from an average alone.
Equating key entropy with secrecy. A marginally uniform key may be perfectly correlated with an adversary. Security also requires independence, freshness, authentication assumptions, and a suitable composable criterion.
Pricing an oracle only for the quantum algorithm. A fair comparison states how both algorithms obtain the input, what construction and loading cost, and whether their outputs and success requirements match.
Forgetting the classical boundary of a quantum experiment. A quantum measurement produces a classical record, but different incompatible measurements are not thereby random variables on one measurement-independent classical sample space.
Exercises
Section titled “Exercises”1. Binary-erasure source/channel/decoder ledger
Section titled “1. Binary-erasure source/channel/decoder ledger”Let . Use a binary erasure channel with erasure probability , the identity encoder, blocklength one, output alphabet , and a decoder that maps an erasure to . Write the complete one-use ledger and compute the average and maximal decoding errors.
Solution
The source alphabet is with
With outputs ordered as and inputs ordered as , the nonzero channel probabilities are
with . For each fixed input , summing over the three outputs gives one, consistent with the page’s output-row/input-column orientation. The identity encoder sends itself in one channel use. The decoder is
If , both a received and an erasure decode to , so the conditional error is zero. If , an erasure is decoded incorrectly, so the conditional error is . Therefore
and
The nominal uncoded rate is one source symbol per channel use, but that statement is meaningful only with the declared blocklength, decoder, source distribution, and error criterion.
2. Logarithm and support audit
Section titled “2. Logarithm and support audit”For and , compute , , , and using base- logarithms.
Solution
Using ,
whereas
Only the first component contributes to :
For the reverse divergence, assigns positive probability to the second symbol while assigns it probability zero. The support condition therefore gives
The last result is not obtained by treating division by zero informally; it follows from the extended-value definition when the support of the first distribution is not contained in the support of the second.
3. Exact dyadic prefix code
Section titled “3. Exact dyadic prefix code”For symbol probabilities
consider the codewords , , , and . Verify prefix-freeness through the Kraft sum and compare the mean length with the entropy.
Solution
The codeword lengths are . The Kraft sum is
The displayed code is prefix free: no listed codeword is the beginning of another. Its mean length is
Because each probability is dyadic and , the entropy is
Exact equality is possible here because the ideal lengths are integers satisfying Kraft equality. A general one-symbol distribution has noninteger ideal lengths and need not admit .
4. Three-fold repetition at finite blocklength
Section titled “4. Three-fold repetition at finite blocklength”Send one message bit through three independent uses of a BSC with crossover probability , and decode by majority vote. Compute the block error and code rate, then compare the result with uncoded transmission.
Solution
Majority decoding fails when exactly two or all three channel outputs flip. Independence gives
One message bit uses three channel uses, so
Uncoded transmission has error at rate one message bit per channel use. Repetition lowers the error to but also lowers the rate by a factor of three and increases latency. This one finite code does not establish capacity or an asymptotic optimum.
5. Cascaded BSC and data processing
Section titled “5. Cascaded BSC and data processing”Cascade BSCs with crossover probabilities and . For a uniform input, compute the effective crossover and the mutual information before and after the second channel.
Solution
The final bit differs from the input exactly when one of the two channels flips and the other does not. Thus
For a uniform input to a BSC,
After the first channel,
After the second channel,
The variables form the Markov chain , and the numerical result explicitly satisfies
The second channel has discarded information about ; it has not created a new observation of .
6. Average versus maximal error
Section titled “6. Average versus maximal error”Three equiprobable messages have conditional decoding-error probabilities . Compute the average and maximal errors. What is missing from a report that quotes only a “ error rate”?
Solution
Equiprobable messages give
The worst conditional error is
Thus “ error” is accurate only if it is labeled as the average under the uniform message distribution. It hides a message whose failure probability is . A requirement framed in maximal error would reject this code at a threshold.
7. Uniform but completely leaked key
Section titled “7. Uniform but completely leaked key”Let be a uniform bit and let an adversary hold . Compute and the total-variation distance from the ideal independent distribution .
Solution
The marginal key distribution is uniform, so
The real joint distribution has
and zero probability on and . Because is also marginally uniform, the ideal product distribution assigns probability to each of the four pairs. Therefore
The key has maximal marginal entropy but is completely known to the adversary. Entropy and nominal length do not imply secrecy or independence; a protocol-level composable claim belongs with the QKD owner.
8. Repair an N-vector quantum-speedup claim
Section titled “8. Repair an N-vector quantum-speedup claim”A proposal states, “The quantum algorithm processes an -component vector exponentially faster.” Replace this with a matched classical-to-quantum comparator that could support or refute a precise advantage claim.
Solution
First specify the task and input. For example, decide whether both algorithms receive an explicit classical vector, sample access, an entry oracle, a prebuilt QRAM data structure, or an already prepared amplitude-encoded state. If a data structure or state must be constructed for this instance, include its loading, preprocessing, memory, and update cost on the side that uses it.
Next match the requested output. Producing the full -component vector is not the same task as estimating one scalar, deciding a predicate, or drawing a sample. State the precision or loss, failure probability, confidence, and any promise on the inputs. Include state preparations, oracle calls, quantum gates, measurements, classical postprocessing, verification, and repetitions needed to meet that output contract.
The resulting ledger is
instance distribution and promise -> classical and quantum input representations -> matched access or oracle contract -> construction, loading, and preprocessing -> algorithm and requested output -> precision, error, success, and repetitions -> memory and total end-to-end costA separation in oracle queries can then be reported as a query-complexity result under that oracle. It is not automatically a separation in gate count, wall-clock time, energy, or application value. Formal class claims route to Quantum Complexity Classes, evidence calibration to Claims, executable accounting to Algorithmic Benchmarking, and a dated advantage verdict to Verification of Quantum Advantage.
References
Section titled “References”- S. Arora and B. Barak, Computational Complexity: A Modern Approach, Cambridge University Press (2009).
- T. M. Cover and J. A. Thomas, Elements of Information Theory, 2nd ed., Wiley (2006).
- I. Csiszár and J. Körner, Information Theory: Coding Theorems for Discrete Memoryless Systems, 2nd ed., Cambridge University Press (2011).
- O. Goldreich, Foundations of Cryptography, Volume 1: Basic Tools, Cambridge University Press (2001).
- D. J. C. MacKay, Information Theory, Inference, and Learning Algorithms, Cambridge University Press (2003).
- Y. Polyanskiy, H. V. Poor, and S. Verdú, “Channel Coding Rate in the Finite Blocklength Regime,” IEEE Transactions on Information Theory 56, 2307–2359 (2010), doi:10.1109/TIT.2010.2043769.
- C. E. Shannon, “A Mathematical Theory of Communication,” Bell System Technical Journal 27, 379–423 and 623–656 (1948), doi:10.1002/j.1538-7305.1948.tb01338.x.
- C. E. Shannon, “Communication Theory of Secrecy Systems,” Bell System Technical Journal 28, 656–715 (1949), doi:10.1002/j.1538-7305.1949.tb00928.x.
- M. M. Wilde, Quantum Information Theory, 2nd ed., Cambridge University Press (2017), doi:10.1017/9781316809976.