smartyfy.mrindigi.com

Quantum Computing Master Course — 040. Entanglement Checkpoint

Lesson 040: Entanglement Checkpoint

Smartyfy Quantum Computing Master Course

Purpose and objectives

This checkpoint connects pure-state separability, local measurements, phase, and joint decoding. You will analyze one complete two-qubit experiment, reproduce its model locally, and explain which conclusions require amplitudes rather than a single histogram. The aim is a defensible interpretation of the entire procedure.

Use the basis 00, 01, 10, 11 in |q₁q₀⟩ order. Start with known zeros, prepare a Bell pair using H on q₁ and CNOT from q₁ to q₀, apply a known phase to q₁, and decode with the inverse Bell circuit. All statements concern ideal preparations and gates.

Write an experiment specification

A useful specification includes the initial state, ordered gate list, measurement settings, recorded classical labels, and whether outcomes are discarded or selected. Without those details, a phrase such as “measure the entanglement” leaves too much unspecified to calculate.

Our phase-modified state before decoding is ψθ = (|00⟩ + e^(iθ)|11⟩)/√2. A measurement there would give matching Z labels, each one half. Its coefficient determinant is e^(iθ)/2, so its magnitude is one half for every θ. The specified pure state is entangled throughout the family.

This classification uses a pure-state model and complex amplitudes. A classical equal mixture of 00 and 11 would share the same Z histogram but would be separable. The general joint-state framework keeps those two preparations distinct.

Predict the decoder output

CNOT maps the 11 component to 10, leaving q₀ in zero. H on q₁ then combines the two surviving amplitudes. The final vector is [(1 + e^(iθ))/2, 0, (1 − e^(iθ))/2, 0]. The nonzero probabilities are (1 + cos θ)/2 and (1 − cos θ)/2.

At θ = π/3, this gives [3/4, 0, 1/4, 0]. The final state is a product because it equals a single-qubit vector on q₁ tensored with |0⟩ on q₀. A joint gate has removed the entanglement while retaining phase information in local amplitudes.

At θ = π/2, the final Z distribution is half-half on 00 and 10. That does not mean the phase-bearing input was a mixture. Its coherent output still has specific complex amplitudes that can be tested in another basis. One selected distribution cannot establish the full state description.

Compare a deliberately altered experiment

Insert a Z measurement of q₀ before decoding and ignore its record. The decoder now receives either 00 or 11 with equal classical probability. Decoding 00 gives |+⟩⊗|0⟩; decoding 11 gives |−⟩⊗|0⟩. Each branch produces [1/2, 0, 1/2, 0] in final Z probabilities.

Average probabilities across those exclusive branches. Do not average their state vectors: doing so would invent coherence between separately recorded alternatives. The final unconditioned distribution is independent of θ. This is a calculation of a changed process, not a noisy approximation to the uninterrupted circuit.

The comparison also illustrates a limitation of testing only one phase value. At θ = π/2, the coherent and measured experiments happen to have the same final Z distribution. Testing θ = 0 or π reveals a difference. Choose test cases that distinguish the competing explanations.

Two circuits start from |00⟩, then apply Bell encoder E, phase P(θ) on q₁ and decoder E†. The second inserts a labelled Z measurement on q₀ and sends its ignored classical record down a dashed line. At θ = 0 and π/3, coherent results are [1, 0, 0, 0] and [3/4, 0, 1/4, 0]; the measured versions both give [1/2, 0, 1/2, 0]. All charts use the same probability scale and outcome order.
Intermediate measurement with an ignored result replaces coherent alternatives by a mixture. Phase-sensitive and phase-insensitive outputs belong to different experiments. Open full-size diagram

Local model and assertions

The standard-library program below calculates the exact-model distributions in floating-point arithmetic. It constructs the known predecoder state directly, then applies the decoder’s two transformations. This assignment is a simulator convenience, not a claim that arbitrary state preparation has no cost.

The decoder first permutes the CNOT target amplitudes and then applies H to the left factor. Assertions test probability normalization, expected outputs, and determinant magnitude before and after decoding. The separate branch calculation models the inserted measurement without requiring a full density-matrix library.

from cmath import exp
from math import pi, sqrt

def probabilities(state):
    p = [abs(a)**2 for a in state]
    assert abs(sum(p)-1) < 1e-12
    return p

def decode(state):
    # CNOT q1 -> q0, then H on q1; order is 00,01,10,11.
    a, b, d, c = state
    return [(a+c)/sqrt(2), (b+d)/sqrt(2),
            (a-c)/sqrt(2), (b-d)/sqrt(2)]

def determinant(state):
    a, b, c, d = state
    return a*d-b*c

for theta, expected in [(0, [1,0,0,0]),
                        (pi/3, [0.75,0,0.25,0]),
                        (pi, [0,0,1,0])]:
    state = [1/sqrt(2), 0, 0, exp(1j*theta)/sqrt(2)]
    final = decode(state)
    p = probabilities(final)
    assert all(abs(x-y) < 1e-12 for x,y in zip(p, expected))
    assert abs(abs(determinant(state))-0.5) < 1e-12
    assert abs(determinant(final)) < 1e-12
    print(round(theta, 6), [round(x, 6) for x in p])

branch_probs = [probabilities(decode(s))
                for s in ([1,0,0,0], [0,0,0,1])]
mixture = [sum(0.5*p[k] for p in branch_probs) for k in range(4)]
assert all(abs(x-y)<1e-12 for x,y in zip(mixture,[0.5,0,0.5,0]))
print("intermediate measurement:", [round(x,6) for x in mixture])

The coherent outputs are [1,0,0,0], [0.75,0,0.25,0], and [0,0,1,0]. The inserted-measurement result is [0.5,0,0.5,0]. These are calculated probabilities, not observed device counts. The model contains no hardware connection, API key, or paid operation.

What counts as evidence

The determinant test verifies the supplied pure vectors. The decoder statistics distinguish some coherent preparations from the matching classical mixture. Neither fact alone establishes what a real uncharacterized source produced. An experimental claim needs justified preparation assumptions, measurement calibration, uncertainty, and settings that rule out relevant alternatives.

For example, a predicted probability of 3/4 implies an expected 300 matching final zeros in 400 independent sampled runs, but not exactly 300. The count’s standard deviation is √(400 × 3/4 × 1/4) = √75. A small deviation is compatible with sampling; systematic discrepancies need separate investigation.

Also distinguish a local test from the joint decoder. The decoder uses CNOT and therefore access to both qubits through an interaction. A remote observer cannot reproduce its information by examining only one maximally mixed marginal. Resource accounting and no-signaling remain consistent with the phase-sensitive result.

Four integrated exercises with solutions

  1. For θ = π/6, give all four final probabilities and the expected 10-count in 800 independent runs.

    Solution. cos(π/6) = √3/2. The probabilities are [(2 + √3)/4, 0, (2 − √3)/4, 0]. The expected 10-count is 200(2 − √3), approximately 53.59. An expected count need not be an integer.

  2. Find each qubit’s Z marginal before and after coherent decoding at θ = π/3.

    Solution. Before decoding, each marginal is [1/2,1/2]. After decoding, q₁ has [3/4,1/4] and q₀ has [1,0]. The joint decoder changes the local states while removing entanglement.

  3. What goes wrong if the two measured branches 00 and 11 are added coherently before decoding?

    Solution. The sum, after normalization, creates Φ+ instead of the intended classical mixture. Its decoder output is certainly 00. The actual mixture yields equal 00 and 10 probabilities. Coherently adding branch vectors changes the preparation being modeled.

  4. Is ψθ separable when θ = π/2, even though its decoded Z distribution matches the measured experiment?

    Solution. No. Its coefficient determinant is i/2, which is nonzero. The pure input is entangled. Agreement of one later measurement distribution does not establish equality of the original states or processes.

Five explained multiple-choice questions

  1. Which datum is insufficient on its own to establish the Bell input’s coherence? A. A correctly modeled phase-sensitive decoder. B. An appropriate set of calibrated measurements. C. Its complete pure-state amplitudes under a trusted model. D. Only its 00/11 Z histogram.

    Answer: D. A separable classical mixture has the same two-outcome histogram.

  2. Exclusive measurement branches are combined by: A. Averaging their probabilities with branch weights. B. Multiplying all probabilities. C. Adding their kets and normalizing. D. Keeping only positive amplitudes.

    Answer: A. Ignoring a classical record produces an unconditioned mixture, not a coherent sum.

  3. The joint decoder can remove entanglement because: A. Every gate is local. B. Measurements are always reversible. C. It includes an interacting two-qubit gate. D. Entanglement was absent initially.

    Answer: C. Local unitaries alone preserve product versus entangled structure; this decoder is not restricted to them.

  4. At θ = 0, the coherent final outcome is: A. 00 certainly. B. Four uniform labels. C. Only 01 and 11. D. 10 certainly.

    Answer: A. The phase is identity and the encoder and decoder cancel.

  5. A simulation’s probability vector is: A. A practical quantum speedup. B. A prediction within its specified model. C. A hardware measurement record. D. A proof of device calibration.

    Answer: B. Physical claims require evidence beyond classical execution of the model.

Review decisions and summary

Review separability if determinant arguments were unclear, conditional measurement if branches were mishandled, and circuit order if the decoder produced the wrong label. A strong explanation identifies the state, operation, measurement, and evidence separately. The next module studies the limits and communication protocols built on these foundations.

Primary sources and further study

These sources support the definitions and context. The numerical examples, exercises, and explanations here were prepared for this lesson. Research papers are optional advanced reading.