Three ansatz-search tasks, each run under several information conditions. Every condition changes only what the model was told. Twice, a result that looked like discovery turned out to belong to a single sentence.
Evolutionary search driven by a large language model is often reported to discover the structure of a problem. Two very different things produce that claim. A system that rediscovers structure it was shown is a search procedure with a good prior. A system that finds structure nobody supplied is something else entirely.
Telling them apart requires knowing exactly what the model was shown, and that accounting is usually missing. So we built each task in several variants that are identical in data, reward and budget, and differ only in what the instructions and the starter file say. Then we removed information and reran.
We had a result of the first kind and mistook it for the second. Twice.
Classify a board position. The structure that matters is the eight winning lines, out of 84 possible qubit triples.
3 variants · never discovered Task 2 · 8 qubitsClassify networks on eight nodes. The structure that matters is permutation symmetry: renaming nodes cannot change the label.
2 variants · found only when told Task 3 · 8 qubitsClassify quantum states of a spin ring. The structure that matters is the rotationally invariant coupling.
2 variants · task measures nothingEach task has a ladder. At the top rung the model is handed the answer or the premise it follows from. At the bottom rung it is told essentially nothing: the qubit count, the legal gates, and a number after every attempt. Rungs in between remove one thing at a time.
The point of the ladder is that a successful run is uninterpretable on its own. A derivation from a leaked premise and a genuine discovery look identical in the trace, because in both cases the model writes down a correct piece of structure and the score rewards it. The only way to separate them is to delete something and see whether the result survives.
One detail governs everything. ShinkaEvolve puts the entire starter file into the prompt at every generation, so sanitising the instructions is not enough. Both of our leaks came through the starter file, and the second one got past us because it read like a routine encoding note rather than like an answer.
The motif was never discovered. Given the winning lines, the search used them in every circuit. With the lines hidden behind a secret relabelling, usage collapsed, and running four times longer with no context at all made it worse rather than better. No variant ever found the two lines that can only be reached from the score.
The symmetry was discovered only when the premise was stated. Told that the 28 features are the pairs of eight qubits, GPT-5.6-sol deduced permutation invariance at generation 33 and gained six points of test accuracy. Delete that one sentence, change nothing else, and no model builds an equivariant circuit in 80 generations.
The spin task measures nothing. The fixed encoder already solves it, so the circuit is irrelevant, and an attempt to fix that by rewarding parameter economy made the empty circuit optimal.
What survives is narrower than discovery: these systems carry a stated premise one deductive step into a design, and measurement corrects them when the step is wrong. That is useful. It is not a scientific instrument.
ShinkaEvolve proposes an edit to a circuit specification; the fixed
pipeline trains and scores it; higher-scoring circuits are more likely to be
chosen as parents. One generation is one proposed circuit, evaluated. Only the
ANSATZ_SPEC block is searched: the data, encoding, training loop
and readout are frozen, so every candidate is compared on the same task.
Each arm uses a single proposer model, so the arms within a variant are matched to each other. Runs are on the Yale Bouchet cluster, one SLURM job per evaluation. The relabelling that hides the winning lines uses a fixed secret permutation, seed 777.
Nine qubits, 84 possible triples, eight of which decide the answer. Three variants, each removing more of what the model was told.
Classify a board position into one of three outcomes. The nine cells become nine qubits, and the search rewrites a circuit that reads them. It may join any three qubits with a three-qubit gate. The three rows, three columns and two diagonals are the winning lines, and they alone determine the answer. A search that puts its gates there has found the real structure.
Each rung removes one channel through which the answer could reach the model. The data and the reward are the same throughout; the winning lines stay exactly as predictive.
WIN_LINES, CORNERS, CENTERWIN_LINES, no geometric constants, no diagramThe 67% looks like a discovery and is not one. Seven of that arm's twelve on-line gates are a single triple inherited down a lineage, and that triple is the one coincidence between the true relabelled lines and the lines of an ordinary board. Counted once per distinct triple it is 3 of 7, which is not significant.
Under a secret permutation the winning lines stay exactly as predictive, but they are no longer rows or columns of anything the model can see. A model recalling the game will place gates on the lines it remembers, which are now wrong. Prior knowledge fails visibly rather than being merely absent.
Random placement hits a winning line 8/84 = 9.5% of the time. That baseline is wrong. Because the wiring is grid adjacency, six of the eight winning lines are exactly the triples carrying two hardware links, so a model that merely prefers well-connected qubits hits a line 27.3% of the time with no insight at all.
| Answer given | Haiku 4.5 | Sonnet 5 | GPT-5.6-sol | |
|---|---|---|---|---|
| Generations | 100 | 30 | 30 | 30 |
| Gates on winning lines | 916/916 | 35/89 | 0/46 | 7/95 |
| as a fraction | 100% | 39% | 0% | 7.4% |
| p vs uniform (9.5%) | ~10-935 | 6.7e-14 | 1.00 | 0.81 |
| p vs connectivity (27.3%) | ~10-517 | 9.1e-3 | 1.00 | 1.00 |
| Distinct lines found | 8/8 | 3/8 | 0/8 | 0/8 |
| Hidden lines found | 2/2 | 0/2 | 0/2 | 0/2 |
| Proposals naming the game | 92% | 10% | 27% | 30% |
| Best test accuracy | 78.2% | 65.5% | 65.7% | 77.8% |
With every remaining channel closed and nearly three times the horizon of rung 2, motif usage fell rather than rose, and no best circuit used a winning line at all.
| Haiku 4.5 | Sonnet 5 | GPT-5.6-sol | |
|---|---|---|---|
| Generations | 80 | 80 | 80 |
| Gates on winning lines | 1/180 | 3/52 | 12/18 |
| of which the coincidence triple | 1 | 1 | 7 |
| Distinct triples on lines | 1/13 | 2/24 | 3/7 |
| p vs connectivity, distinct | 0.98 | 1.00 | 0.29 |
| Distinct lines found | 1/8 | 2/8 | 3/8 |
| Hidden lines found | 0/2 | 0/2 | 0/2 |
| Lines in the best circuit | 0/3 | no triples | no triples |
| Best test accuracy | 64.2% | 65.0% | 62.3% |
Panel (a) is the mechanism. Haiku's most-used triple, 56 of its 180 placements, is the main diagonal of an ordinary board, which the relabelling made wrong. Across all three arms the gates concentrate on the two remembered diagonals: one happens to be right, one is wrong, and neither was found by searching.
The three numbers 0.6%, 5.8% and 67% look like a capability ranking, with the strongest model recovering most of the motif. They are not, and the ways they mislead are worth setting out, because they are the same ways any enrichment statistic over an evolutionary run can mislead.
It is not a score and not a fraction of the eight lines. For every program in a run that compiled and trained, we parse its circuit specification, take every three-qubit gate, and read off the triple of qubits it acts on. Pool those across the whole run, then ask what share of them are one of the eight true relabelled lines:
| Programs using three-qubit gates |
Gates placed denominator |
On a true line numerator |
Share | |
|---|---|---|---|---|
| Haiku 4.5 | 56 of 59 | 180 | 1 | 0.6% |
| Sonnet 5 | 21 of 76 | 52 | 3 | 5.8% |
| GPT-5.6-sol | 14 of 73 | 18 | 12 | 67% |
This is a precision, not a coverage. Haiku reached for three-qubit gates in almost every program it wrote and placed 180 of them. GPT-5.6-sol used them in 14 programs out of 73 and placed 18. A model that places one gate, on a line, scores 100%.
So the headline mostly says GPT barely used the three-qubit vocabulary at all. Whatever the 67% measures, it is measured over eighteen draws.
A child program inherits its parent's gates. If a parent carries a three-qubit gate on some triple and the child edits something else, that gate is counted again, and again, for as long as the lineage survives. The binomial test behind every p-value assumes independent placements; evolution guarantees the opposite by construction.
GPT's twelve on-line placements are three decisions:
(2,4,6) seven times, (0,7,8) three times,
(5,6,7) twice. Counting each distinct triple once gives 3 of 7,
which against the connectivity-matched baseline is p = 0.29.
Haiku and Sonnet deflate to 1 of 13 and 2 of 24, at p = 0.98 and p = 1.00.
Nothing is significant.
The triple (2,4,6) is the single overlap between the eight true
relabelled lines and the eight winning lines of an ordinary row-major board. A
model that recalls tic-tac-toe and reaches for the anti-diagonal is credited
with a true-line hit it did not earn.
The arm collecting that hit is also the arm that talks about the game most:
16% of GPT's proposals use game vocabulary, against 5% and 5% for the other
two. The same fingerprint shows up where it cannot be mistaken for success, in
Haiku's 56 placements on (0,4,8), the other remembered diagonal,
which the relabelling made wrong.
If the motif were being found, and if finding it were doing any work, motif usage and accuracy would move together. Usage spans a hundredfold across the three arms. Best test accuracy is 64.2%, 65.0% and 62.3%: flat within three points, and ordered the wrong way, with the highest-usage arm last. Best fitness tells the same story at 0.615, 0.628 and 0.625, a spread of 0.013.
The single most damaging fact is downstream of that. None of the three best circuits uses a winning line. GPT's best program, at generation 49, contains no three-qubit gates at all. Its eighteen placements were tried and discarded by the score, which is what should happen to a hypothesis that is not paying for itself.
Every step from the loosest measure to the strictest costs the claim something, monotonically, and the strictest measure is the one that cannot be reached by recall or by a preference for well-connected qubits.
There is a weak, consistent ordering in coverage: Haiku touched 1 of the 8 lines, Sonnet 2, GPT 3. That ordering is real but small, is not significant against the connectivity-matched baseline, is not accompanied by any accuracy gain, and stops dead at the hidden lines, where all three arms score zero. It is compatible with a mild capability effect and equally compatible with GPT simply being the arm that recalls the game hardest.
A percentage whose denominator the agent chooses is not comparable
across agents. Report the counts. 12/18 and
1/180 are honest in a way that 67% and 0.6% are not.
An evolutionary population is not a sample. Inheritance makes gates pseudo-replicate, so the unit of analysis has to be the distinct decision, not the gate. Switching the unit alone moves p from 6×10-9 to 0.02; switching the baseline alone moves it to 5.6×10-4; doing both gives 0.29. The two corrections are independent, and each is needed.
Recall can score hits on the true target whenever the remembered set and the true set overlap at all. Designing the target so the two are disjoint is what makes the test sharp, and it is exactly what the hidden lines do.
Check the structure against the metric it is supposed to improve. A claim that the search found useful structure, unaccompanied by any movement in the quantity that structure should improve, is not a finding about the search. It is a finding about the statistic.
Every proposal carries a written rationale. Game vocabulary appears in 92% of the run that was handed the answer, and still in 10–30% once the game is never named, so concealment worked only partly.
GPT-5.6-sol reconstructed the task from the data alone and said so:
an IQP-style feature extractor aligned to the eight winning lines of a 3x3 board … parameters shared across rows, columns, and diagonals GPT-5.6-sol, generation 9
That gives a clean test. A model that recalled the game knows the lines in the standard layout, which the permutation moved. A model that discovered them would hit the true ones.
The search never discovered the motif. Usage tracks how much was supplied, the three models disagree, most of the surviving signal is a connectivity preference unrelated to the task, and no variant at any horizon found either line that can only be reached from the score. The model that did reconstruct the domain proposed the lines it remembered, measured them, and abandoned them.
The motif itself is good structure: independent work on this exact task finds motif-aligned gates worth about +0.11 test accuracy. What this removes is the inference from this circuit uses the motif to this search found the motif.
This sits above the editable region, so it entered the model's context in full every generation.
# Paper indexing:
# 0 -- 1 -- 2
# | | |
# 7 -- 8 -- 3
# | | |
# 6 -- 5 -- 4
PAPER_GRID = ((0, 1, 2), (7, 8, 3), (6, 5, 4))
CORNERS = (0, 2, 4, 6)
EDGES = (1, 3, 5, 7)
CENTER = 8
GRID_EDGES = (
(0, 1), (1, 2), (2, 3), (3, 4),
(4, 5), (5, 6), (6, 7), (7, 0),
(1, 8), (3, 8), (5, 8), (7, 8),
)
GRID_EDGE_SET = {tuple(sorted(edge)) for edge in GRID_EDGES}
WIN_LINES = (
(0, 1, 2), (7, 8, 3), (6, 5, 4),
(0, 7, 6), (1, 8, 5), (2, 3, 4),
(0, 8, 4), (2, 8, 6),
)
Search it for "tic-tac-toe", "board", "row", "column", "diagonal", "corner" or "winning". None appear. It does give the wiring, because that limits which circuits are legal.
You are an expert in quantum machine learning and variational quantum circuits.
Goal:
Evolve the ANSATZ_SPEC for a 9-qubit, 3-class classifier. The fixed code will
train each candidate with Adam in a simulated PennyLane circuit and report
accuracy, loss, and generalization metrics.
Fixed architecture:
- 9 qubits, indexed 0..8.
- Feature map: RX(2*pi/3 * x_i) on qubit i, for an input vector x in {-1,0,+1}^9.
- Data re-uploading l=3.
- The candidate ansatz block is applied p=2 times after each re-uploading.
- The block receives independent parameter copies for each upload/repetition.
- The three class scores are fixed linear readouts of the final per-qubit
Pauli-Z expectations.
Only edit the EVOLVE-BLOCK, especially ANSATZ_SPEC. Do not change the fixed
training loop, data, readout, l, p, or feature map.
Formal ANSATZ_SPEC schema:
- Single-qubit parametrized gates:
{"gate": "RX"|"RY"|"RZ", "wire": int 0..8, "param": "name"}
- Fixed two-qubit gates:
{"gate": "CNOT"|"CZ", "wires": [first, second]}
- Parametrized controlled rotations:
{"gate": "CRX"|"CRY"|"CRZ", "wires": [control, target], "param": "name"}
- Parametrized three-qubit interactions (any three distinct qubits 0..8):
{"gate": "ZZZ", "wires": [a, b, c], "param": "name"} # collective exp(-i*theta/2 * Z@Z@Z)
{"gate": "CCRZ", "wires": [control_1, control_2, target], "param": "name"} # doubly-controlled RZ
Connectivity constraint:
Two-qubit gates are allowed only on these hardware-native qubit pairs:
(0,2), (0,3), (0,7), (0,8), (1,3), (1,8),
(2,4), (2,6), (3,5), (4,8), (5,7), (6,7).
Three-qubit gates have no connectivity restriction: any 3 distinct qubits.
Parameter sharing:
Reusing the same param string shares that parameter within one ansatz block.
Use sharing deliberately for parameter efficiency.
Starting point:
The seed is an EfficientSU2-style block: independent RY rotations on every
qubit, independent pre-entanglement RZ rotations, CZ gates on each
hardware-native pair, and independent post-entanglement RZ rotations.
Candidate quality:
Improve validation/test accuracy, reduce the train-test gap, reduce L2 loss,
use parameters efficiently, and reach high accuracy in fewer Adam steps.
Invalid candidates will be rejected if they use unsupported gates, bad wires,
non-native two-qubit operations, non-finite metrics, or too many parameters.
Two variants that differ by one sentence. The sentence turns out to be the entire result.
Each record says which of the 28 possible connections among eight nodes are present, and the label depends only on the shape of the network, not on which node is called which. Renaming the nodes is therefore an exact symmetry. A circuit that respects it treats all eight wires alike.
This is the fair test the tic-tac-toe task cannot be. Winning lines are a convention: you either know the game or you do not. A symmetry can in principle be read off the shape of the data. Neither variant's instructions or starter file mentions symmetry, invariance, permutation or any group; we grepped for all of them. Both allow gates on any pair, so the connectivity confound does not arise.
FEATURE_PAIRS[k]The two variants differ in the starter file's docstring, which ShinkaEvolve shows the model in full at every generation.
"""Seed program for ShinkaEvolve ansatz search: 8-qubit binary classifier. Records are 28-dimensional binary feature vectors from an external dataset. Each feature k is encoded by the fixed feature map as a two-qubit phase coupling on the qubit pair FEATURE_PAIRS[k]. Labels are +1/-1 and encode a property of the records determined by the dataset. """
"""Seed program. Only ANSATZ_SPEC inside the EVOLVE-BLOCK is evolved. Everything else about the task, that is how inputs are encoded, how the circuit is measured, how training works and how metrics are computed, is fixed and lives in a module that is not reproduced here. No information about the data is available in this file. """
From features are qubit pairs and there are 28 of them, the rest is arithmetic: 28 is the number of pairs of 8 things, so the records are graphs; a graph's label cannot depend on names; therefore treat all eight wires identically. That is one deductive step, and it is the step the model took.
At generation 33, GPT-5.6-sol proposed a circuit it named
permutation_equivariant_ansatz:
Exploit the likely graph structure of the 28 binary features, which correspond exactly to all unordered pairs of eight qubits … rotation parameters are shared across all qubits, and CZ gates cover the complete graph. This aligns the circuit with relabeling-invariant graph classification. GPT-5.6-sol, generation 33, premise stated
The score jumped from 0.869 to 0.937 in that generation and the arm never went back. Note where the derivation starts: with the premise the starter file supplied.
| Premise stated | Premise removed | |||||
|---|---|---|---|---|---|---|
| GPT-5.6 | Haiku | Sonnet | GPT-5.6 | Haiku | Sonnet | |
| Generations | 64 | 78 | 51 | 80 | 80 | 80 |
| Exactly equivariant circuits | 5 | 0 | 0 | 0 | 0 | 0 |
| First at generation | 33 | never | never | never | never | never |
| Symmetry of best circuit | 0.96 | 0.66 | 0.18 | 0.46 | 0.38 | 0.09 |
| Mean symmetry | 0.53 | 0.53 | 0.15 | 0.32 | 0.36 | 0.14 |
| Test accuracy | 96.0% | 92.0% | 92.0% | 90.0% | 89.3% | 89.0% |
| Parameters | 26 | 38 | 98 | 62 | 50 | 122 |
The starting circuit scores 86.7% with 146 parameters at symmetry 0.15. Exactness, not the average, is what separates the conditions: the Haiku arm with the premise averaged the same symmetry as the GPT arm and still never reached 1.0, so a high average measures parameter sharing rather than the symmetry.
Ten or eleven proposals per arm use symmetry vocabulary without the premise, so the idea was not absent. What they mean by it is local: sharing angles between even and odd wires, mirroring a layer, tying a chain back on itself. The best zero-context proposal explains that it will "share the initial RY angles by wire parity, replacing eight independent parameters with two".
Parity sharing is a subgroup of order two. The task's symmetry has order 40,320. One proposal in 232 uses the word "relabel" at all. The search was doing parameter economy, which the score also rewards, and never arrived at the hypothesis the score would have paid much more for.
The symmetry was derivable in both variants: the data never changed and the score paid for it either way. What changed was one sentence of description. This is the result that most sharpened the conclusion, because it rules out the comfortable reading of the tic-tac-toe failure. It is not that the search finds derivable structure and fails on conventions. It is that the search carries a stated premise one step, and does not recover the premise itself.
This variant also caught us. We built rung 1, read the derivation as discovery, and wrote it up that way. The leak was in the same channel as the tic-tac-toe leak, and got past us because a sentence about the encoding does not look like an answer.
Never mentions symmetry, permutation, invariance or graphs. The fourth architecture line states that each feature is a coupling on a qubit pair.
You are an expert in variational quantum circuit design.
Goal:
Evolve the ANSATZ_SPEC for an 8-qubit classifier of binary-feature records.
The fixed code will train each candidate with Adam in a simulated PennyLane
circuit.
Fixed architecture:
- 8 qubits.
- Each record has 28 binary features; the fixed feature map encodes feature k
as a two-qubit phase coupling (IsingZZ) on a fixed qubit pair given by the
dataset's pair table.
- Data re-uploading l=3; the candidate ansatz block is applied p=2 times after
each upload, with independent parameter copies per block.
- Readout: the mean of all single-qubit Z expectations, passed through a
trainable gain and bias, regressed to the +1/-1 label.
Only edit the EVOLVE-BLOCK, especially ANSATZ_SPEC. Do not change the fixed
training loop, dataset handling, measurements, l, p, or feature map.
Formal ANSATZ_SPEC schema:
- Single-qubit parametrized gates:
{"gate": "RX"|"RY"|"RZ", "wire": int 0..7, "param": "name"}
- Fixed two-qubit gates:
{"gate": "CNOT"|"CZ", "wires": [first, second]}
- Parametrized controlled rotations:
{"gate": "CRX"|"CRY"|"CRZ", "wires": [control, target], "param": "name"}
Connectivity: two-qubit gates may act on ANY pair of distinct qubits.
Parameter sharing:
Reusing the same param string shares that parameter within one ansatz block.
Starting point:
The seed block applies independent RY and RZ rotations on every qubit, a line
of CZ gates, and a final RZ layer.
Candidate quality:
Improve validation/test accuracy, reduce the train-test gap, reduce L2 loss,
use parameters efficiently, and reach high accuracy in fewer Adam steps.
Invalid candidates are rejected for unsupported gates, bad wires, non-finite
metrics, or too many parameters.
The number 28 does not appear, and nothing describes the data.
You are optimizing a parametrized quantum circuit.
Goal:
Evolve the ANSATZ_SPEC below. Fixed code trains each candidate and returns
numeric feedback. You are NOT told what the data is, what the inputs represent,
what the labels mean, or how the inputs are encoded into the circuit, and you do
not need to know any of it. Your only guide is the feedback you receive.
Fixed architecture:
- 8 qubits, indexed 0..7.
- The input encoding, the readout, the training loop and the metrics are fixed
and are implemented outside this file.
- The candidate ansatz block is applied a fixed number of times, with
independent parameter copies per repetition.
Only edit the EVOLVE-BLOCK, that is ANSATZ_SPEC. Nothing else is editable.
Formal ANSATZ_SPEC schema:
- Single-qubit parametrized gates:
{"gate": "RX"|"RY"|"RZ", "wire": int 0..7, "param": "name"}
- Fixed two-qubit gates:
{"gate": "CNOT"|"CZ", "wires": [first, second]}
- Parametrized controlled rotations:
{"gate": "CRX"|"CRY"|"CRZ", "wires": [control, target], "param": "name"}
Two-qubit gates may act on ANY pair of distinct qubits.
Parameter sharing:
Reusing the same param string shares that parameter within one ansatz block.
Use sharing deliberately: it is the only way to reduce the parameter count
without removing gates.
Candidate quality:
Improve validation accuracy, reduce the train-test gap, reduce
L2 loss, use parameters efficiently, and converge in fewer steps.
Invalid candidates are rejected for unsupported gates, bad wires, non-finite
metrics, or too many parameters.
A task that measures nothing, in two different ways. Reported because the failure is instructive.
Inputs are quantum states of an eight-site spin ring, all rotationally balanced, and the label is which phase the ring is in. The structure that matters is the rotationally invariant coupling: tying the XX, YY and ZZ interactions on a pair to a single shared parameter. The gate vocabulary offers the three separately, so tying them is a deliberate, score-driven choice, and it makes a clean binary threshold in the same way exact equivariance does for the graph task.
Every arm reaches 100% validation and test accuracy within nine generations, from a first-proposal score of 0.811. The task saturates before circuit design can matter, so nothing distinguishes a good ansatz from a bad one.
We tried to fix the saturation by making parameter economy the dominant term and cutting the training set to 24 records. The search correctly concluded that the best circuit is no circuit. The best-scoring program in the Sonnet arm has zero gates, scores 0.803, and still reaches 100% test accuracy.
That last fact is the real diagnosis. The fixed feature map and readout already solve the task, so the searched object is irrelevant, and no reward shaping over an irrelevant object can create pressure toward the right answer. Strengthening the economy term did not create design pressure, it created an incentive to delete the design.
| Original | Redesigned reward | |||||
|---|---|---|---|---|---|---|
| GPT-5.6 | Haiku | Sonnet | GPT-5.6 | Haiku | Sonnet | |
| Generations | 50 | 17 | 35 | 80 | 80 | 80 |
| Best score | 0.998 | 0.998 | 0.998 | 0.803 | 0.716 | 0.803 |
| Test accuracy | 100% | 100% | 100% | 100% | 100% | 100% |
| Gates in best circuit | 23 | 31 | 26 | 24 | 93 | 0 |
| Proposals with no gates | 0 | 0 | 0 | 0 | 0 | 49 |
| Circuits tying XX=YY=ZZ | 0 | 0 | 0 | 0 | 0 | 0 |
This task tests nothing about discovery and should not be read as evidence either way. It is reported because the failure mode generalises: a structure-discovery benchmark needs the structure to be load-bearing for the metric being optimised. If the pipeline around the searched object already solves the task, the run measures nothing, and reward shaping cannot rescue it.
To make this task usable, the encoder has to stop solving the problem on its own before anything else is tried.
Search it for "spin", "SU(2)", "rotation", "Heisenberg" or "singlet". None appear. The inputs are described only as a precomputed 8-qubit state vector.
You are an expert in variational quantum circuit design.
Goal:
Evolve the ANSATZ_SPEC for an 8-qubit classifier of quantum states.
The fixed code will train each candidate with Adam in a simulated PennyLane
circuit.
Fixed architecture:
- 8 qubits.
- Each input is a precomputed 8-qubit state vector from the dataset, prepared
with StatePrep.
- The candidate ansatz block is applied 6 times in sequence, with independent
parameter copies per repetition.
- Readout: the mean of a fixed set of two-qubit Z-Z correlators given by the
dataset, passed through a trainable gain and bias, regressed to the +1/-1
label.
Only edit the EVOLVE-BLOCK, especially ANSATZ_SPEC. Do not change the fixed
training loop, dataset handling, measurements, or block count.
Formal ANSATZ_SPEC schema:
- Single-qubit parametrized gates:
{"gate": "RX"|"RY"|"RZ", "wire": int 0..7, "param": "name"}
- Fixed two-qubit gates:
{"gate": "CNOT"|"CZ", "wires": [first, second]}
- Parametrized two-qubit gates:
{"gate": "CRX"|"CRY"|"CRZ", "wires": [control, target], "param": "name"}
{"gate": "XX"|"YY"|"ZZ", "wires": [a, b], "param": "name"} # Ising-type rotations
Connectivity: two-qubit gates may act on ANY pair of distinct qubits.
Parameter sharing:
Reusing the same param string shares that parameter within one ansatz block.
Starting point:
The seed block applies independent RY and RZ rotations on every qubit, a line
of CZ gates, and a final RZ layer.
Candidate quality:
The scoring on this task strongly rewards PARAMETER ECONOMY and fast
convergence: match or beat the baseline accuracy with as few trainable
parameters as possible. Also improve validation/test accuracy, reduce the
train-test gap, and reduce L2 loss.
Invalid candidates are rejected for unsupported gates, bad wires, non-finite
metrics, or too many parameters.
The first three tests vary what the model is told. This fourth one holds the information condition at zero and varies the reward instead: the spin task is rebuilt, and a fitness function is engineered so that the intended answer is the argmax, verified before launch on a ladder of known circuits. If the earlier failures were failures of incentive rather than of search, this is where the structure appears.
This test ran after the three write-ups above were drafted, so it is reported in full here rather than as a third rung under T3. It shares T3's physical task — an eight-site spin ring, the isotropic exchange as the structure that matters — but the dataset, the parameter counting and every term of the score were rebuilt, and the question it asks is different: not whether the model can derive a structure from a stated premise, but whether a correctly-shaped incentive is enough to select one.