ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady
12 minute lessonReady to learn

Compare exact and heuristic search

Use an exhaustive reference to evaluate how often faster searches recover the chosen optimum.

Course lessons · 5 of 5
Your goal

Calculate recovery and regret while distinguishing search guarantees from observed performance.

Useful background: Read the normalized MIP objective

An exact reference answers a finite question

Complete enumeration evaluates every eligible candidate and selects a minimum using the stated tolerance. It becomes expensive as the node count grows exponentially, which is why the recovered experiment uses small systems to establish a reference answer.

A heuristic searches a subset or uses a different traversal. Its output can be compared with the reference through recovery and objective gap. A failed exact recovery can still have a small gap; these metrics answer different questions.

gap⁡=Jfound−J⋆\operatorname{gap}=J_{\rm found}-J^\star

A guarantee has assumptions

Queyranne’s exactness theorem requires the relevant symmetry and submodularity conditions. Dividing an objective by a partition-dependent normalizer can change those properties. A guarantee for an unnormalized function cannot simply be transferred to its normalized ratio.

The recovered comparison also distinguishes independent annealing searches from multiple readout batches of one trained simulated-QAOA circuit. Equal row counts do not make those repetitions statistically equivalent. The original protocol is part of interpreting a recovery rate.

Evaluate a hypothetical five-run search

1Record the reference

Suppose exhaustive search gives J* = 0.5 and three of five independent teaching runs recover it within tolerance.

2Calculate recovery

Divide exact recoveries by completed runs.

3/5=0.6=60%3/5=0.6=60\%
3Report a missed run’s gap

If another run returns 0.7, its gap is 0.2. Reporting this alongside recovery shows how far the miss lies from the reference.

0.7−0.5=0.20.7-0.5=0.2

Make the idea respond

The laboratory exhaustively enumerates NCut on a small weighted graph. It does not run Queyranne, annealing, or QAOA. Select 2, 3, and 4 nodes to inspect 1, 3, and 7 unique nontrivial splits. Choose a defined candidate row and compare its normalized score with the displayed minimum to calculate its gap manually. A zero-volume candidate remains undefined rather than becoming a successful minimum.

Change one input at a time. Predict what should happen, then compare the computed result with your prediction.

Teaching model · computed in your browser

Find every graph partition

Change a tiny graph and examine every possible split. The minimum is computed by complete enumeration.

NCut⁡(A,B)=cut⁡(A,B)vol⁡(A)+cut⁡(A,B)vol⁡(B)\operatorname{NCut}(A,B)=\frac{\operatorname{cut}(A,B)}{\operatorname{vol}(A)}+\frac{\operatorname{cut}(A,B)}{\operatorname{vol}(B)}

A and B are nonempty complementary node sets. cut(A, B) is the sum of edge weights crossing the split, counted once. vol(A) is the sum of weighted degrees of nodes in A, including both ends of internal edges; vol(B) is defined likewise. A zero volume makes this objective undefined. This is a normalized-cut teaching example, not the manuscript’s normalized minimum information partition (MIP). It does not calculate integrated information or benchmark Queyranne, annealing, or QAOA.

Try this: lower the bridge weight to zero. Inspect both the minimum and any undefined partitions. Then switch from two clusters to a cycle.

Experiment controls

The default worked example is shown below.

Distinct bipartitions312^(6 − 1) − 1
Smallest defined NCut0.0645
Selected NCut0.0645This split attains the minimum
Minimizing splits1
Selected graph partitionNumbers on edges are weights. Letters inside circles identify nodes; the group label beneath each node identifies its part. All exact data appears in the tables below.1110.2111AGroup ABGroup ACGroup ADGroup BEGroup BFGroup B
Group A: A, B, C. Group B: D, E, F. Dashed edges cross the split; solid edges stay within a part. Edge numbers are weights.

For this split: cut(A, B) = 0.2; vol(A) = 6.2; vol(B) = 6.2. NCut = 0.2 / 6.2 + 0.2 / 6.2 = 0.0645. Every unordered, nonempty bipartition appears once because node A is fixed in the first part.

Every distinct bipartition — complete enumeration
Group AGroup BCutvol(A)vol(B)NCut
AB, C, D, E, F2210.41.1923
A, BC, D, E, F248.40.7381
A, CB, D, E, F2.24.28.20.7921
A, B, CD, E, F0.26.26.20.0645 · minimum
A, DB, C, E, F4.24.28.21.5122
A, B, DC, E, F4.26.26.21.3548
A, C, DB, E, F46.461.2917
A, B, C, DE, F28.440.7381
A, EB, C, D, F448.41.4762
A, B, EC, D, F466.41.2917
A, C, EB, D, F4.26.26.21.3548
A, B, C, ED, F2.28.24.20.7921
A, D, EB, C, F4.26.26.21.3548
A, B, D, EC, F4.28.24.21.5122
A, C, D, EB, F48.441.4762
A, B, C, D, EF210.421.1923
A, FB, C, D, E448.41.4762
A, B, FC, D, E466.41.2917
A, C, FB, D, E4.26.26.21.3548
A, B, C, FD, E2.28.24.20.7921
A, D, FB, C, E4.26.26.21.3548
A, B, D, FC, E4.28.24.21.5122
A, C, D, FB, E48.441.4762
A, B, C, D, FE210.421.1923
A, E, FB, C, D466.41.2917
A, B, E, FC, D484.41.4091
A, C, E, FB, D4.28.24.21.5122
A, B, C, E, FD2.210.22.21.2157
A, D, E, FB, C2.28.24.20.7921
A, B, D, E, FC2.210.22.21.2157
A, C, D, E, FB210.421.1923
Inspect the exact adjacency matrix
Symmetric edge-weight matrix; diagonal entries are zero
NodeABCDEF
A011000
B101000
C1100.200
D000.2011
E000101
F000110
Open the full lab

Your turn.

Try an answer before opening a hint. Feedback will explain the result, and you can practice again.

Interactive practice is loading. The lesson, worked example, and printable questions remain available below.

View printable practice and solutions

Use these questions when studying without interactive controls. Opening a written solution does not earn progress.

  1. An optimizer recovers the reference optimum in 8 of 10 teaching runs. What is its recovery percentage?

    Read the solution

    8/10 × 100 = 80 percent.

  2. A reference score is 0.4 and a valid returned score is 0.55. What is the objective gap?

    Read the solution

    The gap is 0.15.

  3. A normalized objective has not been shown submodular. Which claim about Queyranne is justified?

    • It is automatically exact because the raw objective has the right name.
    • It cannot ever find a good answer.
    • Its output proves quantum advantage.
    • Its performance must be evaluated for that objective; the usual guarantee has not been established.
    Read the solution

    The algorithm can be tested, but its exactness guarantee cannot be assumed without the required conditions.

  4. In the recovered study, what are multiple QAOA readout batches from one trained circuit?

    • Independently trained circuits by definition.
    • Quantum-hardware experiments.
    • Proof that every network is solved exactly.
    • Repeated samples from that trained circuit.
    Read the solution

    Readout batches sample one trained simulated circuit; they are not independent training repetitions.

Follow the original record

Use the definitions you just practiced to read the project’s own notation, assumptions, and evidence.

The ideas to keep

  • Compare recovery and objective gap.
  • Verify a theorem’s conditions for the actual objective.
  • Describe what each repetition really repeats.

Reading completion is separate from your practice evidence.

Progress is kept in this browser. How learning works

Search equations, builds, manuscript text, and recovered sources.