Skip to content

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 report

The objects in that workflow answer different questions:

LayerRequired declaration
sourcealphabet, distribution, correlations, and block model
encoderwhat input is mapped to which codeword, and with what preprocessing
channelconditional law, number of uses, memory assumptions, and constraints
decoderobservation-to-output map, including ties, erasures, or aborts
criterionloss, average or maximal error, secrecy, precision, and confidence
accountingrate 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.

Let a discrete source produce a random variable XX taking values in a finite alphabet X\mathcal X with probability mass function

pX(x)≥0,∑x∈XpX(x)=1.p_X(x)\ge 0, \qquad \sum_{x\in\mathcal X}p_X(x)=1.

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 Xn=(X1,…,Xn)X^n=(X_1,\ldots,X_n),

pXn(xn)=∏i=1npX(xi).p_{X^n}(x^n) = \prod_{i=1}^{n}p_X(x_i).

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 pXp_X 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 xnx^n is not the distribution pXnp_{X^n}. Entropy is an ensemble average, while the information content −log⁡2pXn(xn)-\log_2p_{X^n}(x^n) 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-22 logarithms, so entropies and divergences are reported in bits, with 0log⁡20=00\log_2 0=0 by continuity. For X∼pXX\sim p_X, the Shannon entropy is

H(X)=−∑x∈XpX(x)log⁡2pX(x).H(X) = -\sum_{x\in\mathcal X}p_X(x)\log_2p_X(x).

For a pair (X,Y)(X,Y), the compact dictionary is

H(X,Y)=−∑x,ypXY(x,y)log⁡2pXY(x,y),H(X,Y) = -\sum_{x,y}p_{XY}(x,y)\log_2p_{XY}(x,y), H(Y∣X)=∑xpX(x)H(Y∣X=x),H(Y\mid X) = \sum_xp_X(x)H(Y\mid X=x),

and

I(X:Y)=H(X)+H(Y)−H(X,Y)=H(Y)−H(Y∣X).\begin{aligned} I(X{:}Y) &=H(X)+H(Y)-H(X,Y)\\ &=H(Y)-H(Y\mid X). \end{aligned}

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 PXY=PXPYP_{XY}=P_XP_Y for finite alphabets. It does not by itself establish causation, usefulness, secrecy, or an achievable communication rate.

For distributions P=(px)P=(p_x) and Q=(qx)Q=(q_x) on the same alphabet,

D(P∥Q)=∑x:px>0pxlog⁡2pxqx.D(P\|Q) = \sum_{x:p_x>0}p_x\log_2\frac{p_x}{q_x}.

If px>0p_x>0 for some xx with qx=0q_x=0, then D(P∥Q)=+∞D(P\|Q)=+\infty. The divergence is directed and is not a metric. The identity

I(X:Y)=D ⁣(PXY∥PXPY)I(X{:}Y) = D\!\left(P_{XY}\middle\|P_XP_Y\right)

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.

A finite classical channel is a conditional distribution W(y∣x)W(y\mid x) from an input alphabet X\mathcal X to an output alphabet Y\mathcal Y. This page writes inputs as columns and outputs as rows, so every input column is normalized:

∑y∈YW(y∣x)=1.\sum_{y\in\mathcal Y}W(y\mid x)=1.

For an input law pXp_X, the channel induces

pXY(x,y)=pX(x)W(y∣x),p_{XY}(x,y)=p_X(x)W(y\mid x),

and

pY(y)=∑xW(y∣x)pX(x).p_Y(y)=\sum_xW(y\mid x)p_X(x).

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 X→Y→ZX\to Y\to Z is a Markov chain, so that ZZ is produced from YY without additional access to XX, then the data-processing inequality gives

I(X:Z)≤I(X:Y).I(X{:}Z)\le I(X{:}Y).

Postprocessing can preserve or discard information about XX, but it cannot create dependence on XX that was absent from YY. This statement assumes the declared Markov structure; hidden side information can invalidate an informal application of the inequality.

Take a uniform binary input and a binary symmetric channel with crossover probability ϵ=0.11\epsilon=0.11. With rows indexed by output yy and columns by input xx,

W=(0.890.110.110.89).W = \begin{pmatrix} 0.89&0.11\\ 0.11&0.89 \end{pmatrix}.

Each column sums to one. Symmetry and the uniform input make YY uniform, so H(Y)=1H(Y)=1 bit. Given either input, the output flips with probability 0.110.11, hence

H(Y∣X)=h2(0.11)=0.499915958bits,H(Y\mid X) = h_2(0.11) = 0.499915958 \quad\text{bits},

where

h2(p)=−plog⁡2p−(1−p)log⁡2(1−p).h_2(p) = -p\log_2p-(1-p)\log_2(1-p).

Therefore

I(X:Y)=H(Y)−H(Y∣X)=1−h2(0.11)=0.500084042bits per channel use.\begin{aligned} I(X{:}Y) &=H(Y)-H(Y\mid X)\\ &=1-h_2(0.11)\\ &=0.500084042 \quad\text{bits per channel use}. \end{aligned}

For a BSC, symmetry makes the uniform input capacity achieving, so this value also equals

C=max⁡pXI(X:Y).C=\max_{p_X}I(X{:}Y).

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.

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 ℓ(x)\ell(x), the Kraft inequality requires

∑x2−ℓ(x)≤1,\sum_x2^{-\ell(x)}\le 1,

and the mean length is

L=∑xpX(x)ℓ(x).L=\sum_xp_X(x)\ell(x).

For any binary prefix code, L≥H(X)L\ge H(X). 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 H(X)H(X), 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.

Let pX(1)=0.1p_X(1)=0.1 and pX(0)=0.9p_X(0)=0.9. Then

H(X)=h2(0.1)=0.468995594bits per source symbol.\begin{aligned} H(X) &=h_2(0.1)\\ &=0.468995594 \quad\text{bits per source symbol}. \end{aligned}

For 10,00010{,}000 iid symbols, the first-order entropy benchmark is

10,000H(X)=4,689.955936≈4,690bits.10{,}000H(X) = 4{,}689.955936 \approx 4{,}690 \quad\text{bits}.

This can be compared with the 10,00010{,}000 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.

A channel code uses redundancy to convey one of MM messages through nn channel uses. For a discrete memoryless channel,

Wn(yn∣xn)=∏i=1nW(yi∣xi).W^n(y^n\mid x^n) = \prod_{i=1}^{n}W(y_i\mid x_i).

An encoder maps each message m∈{1,…,M}m\in\{1,\ldots,M\} to a codeword xn(m)x^n(m). A decoder maps the received word yny^n to an estimate m^\widehat m or, when allowed, an erasure or abort. If M=2kM=2^k, the code rate is

R=kn=log⁡2Mnmessage bits per channel use.R = \frac{k}{n} = \frac{\log_2M}{n} \quad\text{message bits per channel use}.

For a discrete memoryless channel, the Shannon capacity is

C=max⁡pXI(X:Y)bits per channel use.C = \max_{p_X}I(X{:}Y) \quad\text{bits per channel use}.

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.”

For MM equiprobable messages, the average decoding error is

Peavg:=1M∑m=1MPr⁡ ⁣[M^≠m∣M=m],P_{\mathrm e}^{\mathrm{avg}} := \frac1M \sum_{m=1}^{M} \Pr\!\left[\widehat M\ne m\mid M=m\right],

whereas the maximal error is

Pemax⁡:=max⁡mPr⁡ ⁣[M^≠m∣M=m].P_{\mathrm e}^{\max} := \max_m \Pr\!\left[\widehat M\ne m\mid M=m\right].

Always Peavg≤Pemax⁡P_{\mathrm e}^{\mathrm{avg}}\le P_{\mathrm e}^{\max} 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:

QuantityMeaning
nnnumber of channel uses
MMmessage-set size
R=log⁡2M/nR=\log_2M/nnominal code rate
ε\varepsilondeclared average, maximal, or other error target
constraintsenergy, bandwidth, memory, latency, or assistance
implementationencoder and decoder cost, repetitions, and elapsed time

For many memoryless channels under regularity conditions, a normal approximation has the form

R∗(n,ε)=C−Vn Q−1(ε)+O ⁣(log⁡nn),R^*(n,\varepsilon) = C - \sqrt{\frac{V}{n}}\, Q^{-1}(\varepsilon) + O\!\left(\frac{\log n}{n}\right),

where VV is the channel dispersion and Q−1Q^{-1} 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 RR 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.

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 KK.

For a classical key KK and adversarial record EE, marginal uniformity is represented by PK=UKP_K=U_K. Independence would additionally require PKE=PKPEP_{KE}=P_KP_E. A useful classical distance from an ideal uniform independent key is

dTV ⁣(PKE,UKPE):=12∑k,e∣PKE(k,e)−UK(k)PE(e)∣.d_{\mathrm{TV}}\!\left(P_{KE},U_KP_E\right) := \frac12 \sum_{k,e} \left| P_{KE}(k,e)-U_K(k)P_E(e) \right|.

If this distance is large, an adversary can distinguish the real joint distribution from the ideal resource even when H(K)H(K) 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.

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 itemRequired question
representationIs the input explicit, sampled, streamed, state encoded, or oracle encoded?
accessWhat does one query return, and can it be made coherently?
constructionWho builds the data structure, state, oracle, or block encoding?
outputIs the answer a full vector, scalar estimate, decision, or sample?
accuracyWhich norm, loss, precision, failure probability, and confidence apply?
resourcesWhich 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?

To audit a proposed quantum advantage, fill in the classical ledger before comparing headline operation counts:

Ledger fieldWhat must be fixed
taskdecision, search, sampling, estimation, communication, or reconstruction
sourcealphabet, instance distribution, correlations, and side information
input contractrepresentation, encoding, and access operations
processstochastic channel, classical algorithm, code, and decoder
block structuresource length, channel uses, batches, and repetitions
acceptanceoutput form, loss, precision, error, security, success or failure probability, and confidence
resourcesqueries, samples, gates, memory, communication, and assistance
hidden workloading, preprocessing, compilation, decoding, verification, and readout
normalizationper symbol, use, sample, accepted output, or elapsed second
evidence scopetheorem, simulation, benchmark, experiment, or projection

Then apply four checks.

  1. Match information access. Neither side receives a stronger oracle, a precomputed data structure, or unpriced advice.
  2. Match the output. A quantum sample or scalar estimate is not compared with a classical requirement to print an entire vector.
  3. Match accuracy and success. Precision, approximation metric, error target, confidence, postselection, and retry policy are the same.
  4. 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.

This review composes a baseline from standard tools. It does not become a second home for their derivations or for downstream quantum results.

QuestionCanonical 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.

Treating entropy as a property of one realized string. H(X)H(X) averages over a declared ensemble. The self-information of a realization is −log⁡2pX(x)-\log_2p_X(x), and no lossless compressor can shorten every possible input string.

Leaving the logarithm base implicit. Base 22 gives bits and base ee gives nats. Changing the base rescales the number; it does not change the underlying distribution.

Ignoring support in KL divergence. A term with positive pxp_x and zero qxq_x makes D(P∥Q)D(P\|Q) infinite. Reversing the arguments can therefore change a finite divergence into an infinite one.

Calling mutual information causal. I(X:Y)>0I(X{:}Y)>0 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.

1. Binary-erasure source/channel/decoder ledger

Section titled “1. Binary-erasure source/channel/decoder ledger”

Let PX(1)=0.3P_X(1)=0.3. Use a binary erasure channel with erasure probability δ=0.2\delta=0.2, the identity encoder, blocklength one, output alphabet {0,1,?}\{0,1,?\}, and a decoder that maps an erasure to 00. Write the complete one-use ledger and compute the average and maximal decoding errors.

Solution

The source alphabet is X={0,1}\mathcal X=\{0,1\} with

PX(0)=0.7,PX(1)=0.3.P_X(0)=0.7, \qquad P_X(1)=0.3.

With outputs ordered as 0,1,?0,1,? and inputs ordered as 0,10,1, the nonzero channel probabilities are

W(0∣0)=W(1∣1)=0.8,W(?∣0)=W(?∣1)=0.2,W(0\mid0)=W(1\mid1)=0.8, \qquad W(?\mid0)=W(?\mid1)=0.2,

with W(1∣0)=W(0∣1)=0W(1\mid0)=W(0\mid1)=0. For each fixed input xx, summing over the three outputs gives one, consistent with the page’s output-row/input-column orientation. The identity encoder sends xx itself in one channel use. The decoder is

g(0)=0,g(1)=1,g(?)=0.g(0)=0, \qquad g(1)=1, \qquad g(?)=0.

If X=0X=0, both a received 00 and an erasure decode to 00, so the conditional error is zero. If X=1X=1, an erasure is decoded incorrectly, so the conditional error is 0.20.2. Therefore

Peavg=0.7(0)+0.3(0.2)=0.06,P_{\mathrm e}^{\mathrm{avg}} = 0.7(0)+0.3(0.2) = 0.06,

and

Pemax⁡=max⁡{0,0.2}=0.2.P_{\mathrm e}^{\max} = \max\{0,0.2\} = 0.2.

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.

For P=(1,0)P=(1,0) and Q=(1/2,1/2)Q=(1/2,1/2), compute H(P)H(P), H(Q)H(Q), D(P∥Q)D(P\|Q), and D(Q∥P)D(Q\|P) using base-22 logarithms.

Solution

Using 0log⁡20=00\log_2 0=0,

H(P)=−1log⁡21−0log⁡20=0,H(P) = -1\log_2 1-0\log_2 0 = 0,

whereas

H(Q)=−2(12log⁡212)=1bit.H(Q) = -2\left(\frac12\log_2\frac12\right) = 1 \quad\text{bit}.

Only the first component contributes to D(P∥Q)D(P\|Q):

D(P∥Q)=1log⁡211/2=1bit.D(P\|Q) = 1\log_2\frac{1}{1/2} = 1 \quad\text{bit}.

For the reverse divergence, QQ assigns positive probability 1/21/2 to the second symbol while PP assigns it probability zero. The support condition therefore gives

D(Q∥P)=+∞.D(Q\|P)=+\infty.

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.

For symbol probabilities

p=(12,14,18,18),p=\left(\frac12,\frac14,\frac18,\frac18\right),

consider the codewords 00, 1010, 110110, and 111111. Verify prefix-freeness through the Kraft sum and compare the mean length with the entropy.

Solution

The codeword lengths are (1,2,3,3)(1,2,3,3). The Kraft sum is

2−1+2−2+2−3+2−3=12+14+18+18=1.2^{-1}+2^{-2}+2^{-3}+2^{-3} = \frac12+\frac14+\frac18+\frac18 = 1.

The displayed code is prefix free: no listed codeword is the beginning of another. Its mean length is

L=12(1)+14(2)+18(3)+18(3)=74=1.75bits per symbol.\begin{aligned} L &=\frac12(1)+\frac14(2)+\frac18(3)+\frac18(3)\\ &=\frac74\\ &=1.75 \quad\text{bits per symbol}. \end{aligned}

Because each probability is dyadic and ℓi=−log⁡2pi\ell_i=-\log_2p_i, the entropy is

H(X)=∑ipiℓi=1.75bits per symbol.H(X) = \sum_i p_i\ell_i = 1.75 \quad\text{bits per symbol}.

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 L=H(X)L=H(X).

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 0.10.1, 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

Pe=(32)(0.1)2(0.9)+(0.1)3=3(0.01)(0.9)+0.001=0.028.\begin{aligned} P_{\mathrm e} &=\binom32(0.1)^2(0.9)+(0.1)^3\\ &=3(0.01)(0.9)+0.001\\ &=0.028. \end{aligned}

One message bit uses three channel uses, so

R=13message bit per channel use.R=\frac13 \quad\text{message bit per channel use}.

Uncoded transmission has error 0.10.1 at rate one message bit per channel use. Repetition lowers the error to 0.0280.028 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.

Cascade BSCs with crossover probabilities 0.10.1 and 0.20.2. 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

ϵeff=0.1(1−0.2)+(1−0.1)0.2=0.26.\epsilon_{\mathrm{eff}} = 0.1(1-0.2)+(1-0.1)0.2 = 0.26.

For a uniform input to a BSC,

I=1−h2(ϵ).I=1-h_2(\epsilon).

After the first channel,

I(X:Y)=1−h2(0.1)=0.531004406bits.I(X{:}Y) = 1-h_2(0.1) = 0.531004406 \quad\text{bits}.

After the second channel,

I(X:Z)=1−h2(0.26)=0.173253628bits.I(X{:}Z) = 1-h_2(0.26) = 0.173253628 \quad\text{bits}.

The variables form the Markov chain X→Y→ZX\to Y\to Z, and the numerical result explicitly satisfies

I(X:Z)≤I(X:Y).I(X{:}Z)\le I(X{:}Y).

The second channel has discarded information about XX; it has not created a new observation of XX.

Three equiprobable messages have conditional decoding-error probabilities (0,0,0.3)(0,0,0.3). Compute the average and maximal errors. What is missing from a report that quotes only a “10%10\% error rate”?

Solution

Equiprobable messages give

Peavg=0+0+0.33=0.1.P_{\mathrm e}^{\mathrm{avg}} = \frac{0+0+0.3}{3} = 0.1.

The worst conditional error is

Pemax⁡=max⁡{0,0,0.3}=0.3.P_{\mathrm e}^{\max} = \max\{0,0,0.3\} = 0.3.

Thus “10%10\% error” is accurate only if it is labeled as the average under the uniform message distribution. It hides a message whose failure probability is 30%30\%. A requirement framed in maximal error would reject this code at a 10%10\% threshold.

Let KK be a uniform bit and let an adversary hold E=KE=K. Compute H(K)H(K) and the total-variation distance from the ideal independent distribution UKPEU_KP_E.

Solution

The marginal key distribution is uniform, so

H(K)=1bit.H(K)=1 \quad\text{bit}.

The real joint distribution has

PKE(0,0)=PKE(1,1)=12,P_{KE}(0,0)=P_{KE}(1,1)=\frac12,

and zero probability on (0,1)(0,1) and (1,0)(1,0). Because EE is also marginally uniform, the ideal product distribution UKPEU_KP_E assigns probability 1/41/4 to each of the four pairs. Therefore

dTV(PKE,UKPE)=12∑k,e∣PKE(k,e)−14∣=12(4⋅14)=12.\begin{aligned} d_{\mathrm{TV}}(P_{KE},U_KP_E) &=\frac12\sum_{k,e} \left|P_{KE}(k,e)-\frac14\right|\\ &=\frac12\left(4\cdot\frac14\right)\\ &=\frac12. \end{aligned}

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 NN-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 NN-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 cost

A 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.

  • 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.