Remove private evaluation details from task inputs
Browse files- tasks/business_finance/bpmn_category_governance_restructuring_l3/base/input/starter_project/disruption_scenario_L3.md +1 -1
- tasks/computing_math/ising_post_measurement_1/n10_critical_u01_correlators/input/task_specification.md +1 -1
- tasks/computing_math/ising_post_measurement_1/n10_paramagnetic_u01_correlators/input/task_specification.md +158 -0
- tasks/computing_math/ising_post_measurement_1/n12_critical_u01_correlators/input/task_specification.md +158 -0
- tasks/computing_math/ising_post_measurement_1/n12_critical_u02_no_correlators/input/task_specification.md +151 -0
- tasks/computing_math/ising_post_measurement_1/n12_paramagnetic_u01_correlators/input/task_specification.md +158 -0
- tasks/computing_math/ising_post_measurement_1/n14_critical_u01_no_correlators/input/task_specification.md +151 -0
- tasks/computing_math/ising_post_measurement_1/n16_critical_u01_no_correlators/input/task_specification.md +151 -0
- tasks/computing_math/mp_checkpoint_consolidation_v2/base/input/task_instructions.md +0 -1
- tasks/computing_math/mp_checkpoint_consolidation_v2/variant_2/input/task_instructions.md +29 -0
- tasks/education_info/marc_remediation_folio_overlay/base/input/TASK_PROMPT.md +1 -10
- tasks/education_info/marc_remediation_folio_overlay/base/input/starter_project/BUNDLE_MANIFEST.md +3 -3
- tasks/education_info/marc_remediation_folio_overlay/base/input/starter_project/README.md +1 -1
- tasks/education_info/marc_remediation_folio_overlay/base/input/starter_project/TASK_PROMPT.md +1 -10
- tasks/education_info/marc_remediation_folio_overlay/base/input/starter_project/input/public_case/cataloging_policy.md +1 -1
- tasks/education_info/marc_remediation_folio_overlay/base/input/starter_project/scripts/remediate_catalog.py +1 -1
- tasks/education_info/marc_remediation_folio_overlay/base/input/task_spec.md +1 -2
- tasks/education_info/moodle_gradebook_closeout_reconciliation/base/input/TASK_PROMPT.md +1 -2
- tasks/education_info/moodle_gradebook_closeout_reconciliation/base/input/bundle_lib.py +1 -1
- tasks/engineering/sumo_urban_am_peak_calibration/base/input/starter_project/README.md +1 -1
- tasks/engineering/sumo_urban_am_peak_calibration/base/input/task_prompt.md +1 -9
- tasks/health_medicine/causal_ihdp_ite_estimation_6a_v1/base/input/feature_schema.json +1 -1
- tasks/health_medicine/flusight_offline_hosp_forecast_2024_12_14/base/input/TASK_INSTRUCTIONS.md +0 -1
- tasks/health_medicine/simglucose_safe_basal_control_instance_1/base/input/public/submission_format.md +1 -1
- tasks/health_medicine/simglucose_safe_basal_control_instance_1/base/input/public/task.md +1 -1
- tasks/health_medicine/simglucose_safe_basal_control_instance_1/base/input/public/wrapper_spec.md +0 -4
- tasks/life_sciences/spatial_transcriptomics_spatial_domain_identification/base/input/README.md +1 -1
- tasks/physical_sciences/adapt_vqe_molecular_energy/base/input/problem_spec.md +1 -1
- tasks/physical_sciences/climate_prediction/base/input/task_prompt.md +1 -1
- tasks/transport_safety/abm_hangzhou_metro/base/input/task_prompt.md +1 -1
- tasks/visual_media/skeletal_animation_reproduction/skeletal_animation_reproduction_singing_anime_character/input/task_brief.md +2 -3
- tasks/visual_media/skeletal_animation_reproduction/skeletal_animation_reproduction_white_cyborg_idle/input/task_brief.md +7 -0
- tasks/visual_media/skeletal_animation_reproduction/skeletal_animation_reproduction_white_cyborg_run/input/task_brief.md +7 -0
- tasks/visual_media/skeletal_animation_reproduction/skeletal_animation_reproduction_white_cyborg_walk/input/task_brief.md +7 -0
- tasks/visual_media/uv_reproduction/uv_reproduction_samurai/input/task_brief.md +24 -0
tasks/business_finance/bpmn_category_governance_restructuring_l3/base/input/starter_project/disruption_scenario_L3.md
CHANGED
|
@@ -136,7 +136,7 @@ Each of these is a forbidden anti-gaming pattern for the final design.
|
|
| 136 |
|
| 137 |
## External Context — Required Reading
|
| 138 |
|
| 139 |
-
In addition to this scenario file, four stakeholder artifacts in `stakeholder_artifacts/` carry **binding, authoritative constraints** that feed business Rules 27-30 and
|
| 140 |
|
| 141 |
- `stakeholder_artifacts/regulator_email_thread.md` — SAMR letter imposing: brand-risk precedence on compliance-crisis branch (Rule 27); `complianceHandled` re-entry latch (Rule 30); terminal escalation end-event `escalation_final_end` (reinforces Rule 4).
|
| 142 |
- `stakeholder_artifacts/product_compliance_slack.md` — A/B guild ticket PLATFORM-AB-2211 mandating kill-switch variables `abTestEnabled` / `freeTrialEnabled` / `newMerchantAdmissionEnabled` as `in_*` formProperties on `team_drafts_initial_plan` (Rule 28).
|
|
|
|
| 136 |
|
| 137 |
## External Context — Required Reading
|
| 138 |
|
| 139 |
+
In addition to this scenario file, four stakeholder artifacts in `stakeholder_artifacts/` carry **binding, authoritative constraints** that feed business Rules 27-30 and the cross-rule constraints (cross_rule_27 / cross_rule_28 / cross_rule_29 / cross_rule_30, c12 role-authorization). You must read them before designing the BPMN:
|
| 140 |
|
| 141 |
- `stakeholder_artifacts/regulator_email_thread.md` — SAMR letter imposing: brand-risk precedence on compliance-crisis branch (Rule 27); `complianceHandled` re-entry latch (Rule 30); terminal escalation end-event `escalation_final_end` (reinforces Rule 4).
|
| 142 |
- `stakeholder_artifacts/product_compliance_slack.md` — A/B guild ticket PLATFORM-AB-2211 mandating kill-switch variables `abTestEnabled` / `freeTrialEnabled` / `newMerchantAdmissionEnabled` as `in_*` formProperties on `team_drafts_initial_plan` (Rule 28).
|
tasks/computing_math/ising_post_measurement_1/n10_critical_u01_correlators/input/task_specification.md
CHANGED
|
@@ -138,7 +138,7 @@ Since `ancilla_mode` is `"critical"`, no ancilla file is provided; the agent use
|
|
| 138 |
|
| 139 |
## 7. Evaluation Criteria
|
| 140 |
|
| 141 |
-
|
| 142 |
|
| 143 |
| Quantity | Metric | Tolerance |
|
| 144 |
|---|---|---|
|
|
|
|
| 138 |
|
| 139 |
## 7. Evaluation Criteria
|
| 140 |
|
| 141 |
+
Use imaginary time evolution with $\Delta t = 0.0002$ and $K = 50000$.
|
| 142 |
|
| 143 |
| Quantity | Metric | Tolerance |
|
| 144 |
|---|---|---|
|
tasks/computing_math/ising_post_measurement_1/n10_paramagnetic_u01_correlators/input/task_specification.md
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Post-Measurement State Preparation for a Critical 1D Quantum Ising Chain
|
| 2 |
+
|
| 3 |
+
## 1. Task Goal
|
| 4 |
+
|
| 5 |
+
Given a quantum system consisting of a critical 1D Ising chain and an ancilla chain (each with $N = 10$ qubits), execute the following protocol:
|
| 6 |
+
|
| 7 |
+
1. Compute the critical ground state $|\psi_c\rangle$ of the transverse-field Ising model at criticality.
|
| 8 |
+
2. Load the ancilla state $|\psi_a\rangle$ from the provided file `ancilla_state.npy` (paramagnetic ancilla).
|
| 9 |
+
3. Apply the combined inter-chain unitary and projective measurement operator to produce post-measurement states and their probabilities for all $2^N = 1024$ measurement outcomes.
|
| 10 |
+
4. Compute the one-site reduced density matrix (RDM) at site $j = 1$.
|
| 11 |
+
5. Compute one-body correlation functions $\langle Z_j \rangle$ and $\langle X_j \rangle$ across all sites.
|
| 12 |
+
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
## 2. Conventions
|
| 16 |
+
|
| 17 |
+
The following conventions are used throughout this specification and in all input/output files.
|
| 18 |
+
|
| 19 |
+
**Pauli matrices.**
|
| 20 |
+
|
| 21 |
+
$$Z = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, \quad X = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, \quad I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}$$
|
| 22 |
+
|
| 23 |
+
**Single-qubit states.**
|
| 24 |
+
|
| 25 |
+
$$|0\rangle = \begin{pmatrix} 1 \\ 0 \end{pmatrix}, \quad |1\rangle = \begin{pmatrix} 0 \\ 1 \end{pmatrix}, \quad |{+}\rangle = \frac{1}{\sqrt{2}}(|0\rangle + |1\rangle)$$
|
| 26 |
+
|
| 27 |
+
Note: $Z|0\rangle = +|0\rangle$ and $Z|1\rangle = -|1\rangle$.
|
| 28 |
+
|
| 29 |
+
**Computational basis ordering (big-endian).** An $N$-qubit computational basis state $|s_1 s_2 \ldots s_N\rangle$ (with $s_i \in \{0, 1\}$) is stored at array index
|
| 30 |
+
|
| 31 |
+
$$\text{index} = s_1 \cdot 2^{N-1} + s_2 \cdot 2^{N-2} + \cdots + s_N \cdot 2^0$$
|
| 32 |
+
|
| 33 |
+
Qubit 1 is the most significant bit. For example, with $N = 3$: $|000\rangle \to 0$, $|001\rangle \to 1$, $|010\rangle \to 2$, $|100\rangle \to 4$, $|111\rangle \to 7$.
|
| 34 |
+
|
| 35 |
+
**Site indexing.** Sites are labeled $1, 2, \ldots, N$ (1-indexed). In the tensor-product Hilbert space $(\mathbb{C}^2)^{\otimes N}$, site $i$ corresponds to the $i$-th tensor factor (from the left).
|
| 36 |
+
|
| 37 |
+
---
|
| 38 |
+
|
| 39 |
+
## 3. Physics Protocol
|
| 40 |
+
|
| 41 |
+
### 3.1 Hamiltonian
|
| 42 |
+
|
| 43 |
+
The critical 1D transverse-field Ising Hamiltonian with periodic boundary conditions is:
|
| 44 |
+
|
| 45 |
+
$$H = -\sum_{i=1}^{N} Z_i Z_{i+1} - \sum_{i=1}^{N} X_i, \qquad Z_{N+1} \equiv Z_1 \text{ (PBC)}$$
|
| 46 |
+
|
| 47 |
+
with $N = 10$.
|
| 48 |
+
|
| 49 |
+
### 3.2 Critical Ground State
|
| 50 |
+
|
| 51 |
+
$|\psi_c\rangle$ is the ground state (lowest-energy eigenstate) of $H$. The agent may obtain it by any correct method (e.g., exact diagonalisation, imaginary time evolution, DMRG). For ITE, the recommended Trotterised scheme is
|
| 52 |
+
|
| 53 |
+
$$|\psi_c\rangle \approx \prod_{k=1}^{K} \Bigl[e^{\Delta t \sum_i Z_i Z_{i+1}} \;\cdot\; \prod_i e^{\Delta t\, X_i}\Bigr]\;|{+}\rangle^{\otimes N}$$
|
| 54 |
+
|
| 55 |
+
with $\Delta t = 0.0002$, $K = 50000$ (total imaginary time $T = K\Delta t = 10$), maintaining unit norm throughout. The Trotter ordering (whether the $Z$-part or the $X$-part is applied first) does not affect the converged result at the recommended parameters.
|
| 56 |
+
|
| 57 |
+
### 3.3 Ancilla State
|
| 58 |
+
|
| 59 |
+
This variant uses the **paramagnetic ancilla**. The file `ancilla_state.npy` is provided as input. The ancilla state $|\psi_a\rangle$ was generated by 5 ITE steps from $|{+}\rangle^{\otimes 10}$ using the same Trotterised scheme as in section 3.2. The agent must load this file directly and use it as $|\psi_a\rangle$.
|
| 60 |
+
|
| 61 |
+
### 3.4 Inter-Chain Unitary and Measurement
|
| 62 |
+
|
| 63 |
+
The site-$j$ unitary coupling the critical chain to the ancilla chain is
|
| 64 |
+
|
| 65 |
+
$$U_j = \exp\!\bigl(i\,u\,(Z_j - \theta\,I)\otimes \tilde{X}_j\bigr)$$
|
| 66 |
+
|
| 67 |
+
with coupling strength $u = 0.1$ and constant $\theta = -1$. The tilde denotes operators on the ancilla chain. After applying $\prod_j U_j$ to the initial state $|\psi_c\rangle \otimes |\psi_a\rangle$ and projectively measuring the ancilla in the $Z$-basis, each measurement outcome $|\tilde{s}\rangle = |\tilde{s}_1 \tilde{s}_2 \ldots \tilde{s}_N\rangle$ (with $\tilde{s}_j \in \{|0\rangle, |1\rangle\}$) produces a post-measurement state of the critical chain:
|
| 68 |
+
|
| 69 |
+
$$|\psi_{\tilde{s}}\rangle = \frac{e^{iH'}\; e^{-H_m/2}\;|\psi_c\rangle}{\bigl\|e^{-H_m/2}\;|\psi_c\rangle\bigr\|}$$
|
| 70 |
+
|
| 71 |
+
The effective Hamiltonians $H'$ and $H_m$ are both diagonal in the computational basis and **depend on the measurement outcome** $|\tilde{s}\rangle$: each of the $2^N = 1024$ outcomes yields a different pair $(H', H_m)$.
|
| 72 |
+
|
| 73 |
+
**Ancilla coefficients.** For each outcome $|\tilde{s}\rangle$, define:
|
| 74 |
+
|
| 75 |
+
$$a(j) = \frac{\langle\tilde{s}|\tilde{X}_j|\psi_a\rangle}{\langle\tilde{s}|\psi_a\rangle}, \qquad a(j,k) = \frac{\langle\tilde{s}|\tilde{X}_j\tilde{X}_k|\psi_a\rangle}{\langle\tilde{s}|\psi_a\rangle}$$
|
| 76 |
+
|
| 77 |
+
Since $|\tilde{s}\rangle$ is a computational basis state, $\langle\tilde{s}|\psi_a\rangle = \psi_a[\text{index}(\tilde{s})]$, the amplitude of the ancilla state at array index $\text{index}(\tilde{s})$. Similarly, $\langle\tilde{s}|\tilde{X}_j|\psi_a\rangle = \psi_a[\text{index}(\tilde{s} \text{ with bit } j \text{ flipped})]$, since $\tilde{X}_j$ flips qubit $j$ in each computational basis component.
|
| 78 |
+
|
| 79 |
+
**Derived quantities:**
|
| 80 |
+
|
| 81 |
+
$$V_{jk} = a(j,k) - a(j)\,a(k), \qquad m_j = (-2\theta)\Bigl(1 - a(j)^2 + \sum_{k \neq j} V_{jk}\Bigr)$$
|
| 82 |
+
|
| 83 |
+
With $\theta = -1$, this simplifies to $m_j = 2\bigl(1 - a(j)^2 + \sum_{k \neq j} V_{jk}\bigr)$.
|
| 84 |
+
|
| 85 |
+
**Effective Hamiltonians** (diagonal in the computational basis):
|
| 86 |
+
|
| 87 |
+
$$H' = u\sum_j a(j)\,Z_j, \qquad H_m = u^2\sum_j m_j\,Z_j + u^2\sum_{j\neq k} V_{jk}\,Z_jZ_k$$
|
| 88 |
+
|
| 89 |
+
**Measurement probability:**
|
| 90 |
+
|
| 91 |
+
$$p(\tilde{s}) \propto \langle\psi_c|e^{-H_m}|\psi_c\rangle \cdot |\langle\tilde{s}|\psi_a\rangle|^2$$
|
| 92 |
+
|
| 93 |
+
normalised so that $\sum_{\tilde{s}} p(\tilde{s}) = 1$.
|
| 94 |
+
|
| 95 |
+
### 3.5 Reduced Density Matrix
|
| 96 |
+
|
| 97 |
+
The one-site RDM at site $j = 1$ is $\rho_1 = \text{Tr}_{\overline{1}}(|\psi_{\tilde{s}}\rangle\langle\psi_{\tilde{s}}|)$, a $2\times 2$ Hermitian matrix, computed for every measurement outcome.
|
| 98 |
+
|
| 99 |
+
### 3.6 One-Body Correlators
|
| 100 |
+
|
| 101 |
+
$\langle Z_j\rangle = \text{Tr}(\rho_j Z)$ and $\langle X_j\rangle = \text{Tr}(\rho_j X)$ for each site $j \in \{1, \ldots, 10\}$ and each outcome $|\tilde{s}\rangle$.
|
| 102 |
+
|
| 103 |
+
---
|
| 104 |
+
|
| 105 |
+
## 4. Input Files
|
| 106 |
+
|
| 107 |
+
All input files are in the `input/` subdirectory.
|
| 108 |
+
|
| 109 |
+
| File | Description |
|
| 110 |
+
|---|---|
|
| 111 |
+
| `input/config.json` | Parameters: `N=10`, `u=0.1`, `theta=-1`, `dt=0.0002`, `K=50000`, `ancilla_mode="paramagnetic"`, `ancilla_steps=5`, `site_j=1`. |
|
| 112 |
+
| `input/ancilla_state.npy` | Shape $(1024,)$, float64. Pre-computed paramagnetic ancilla state. |
|
| 113 |
+
|
| 114 |
+
---
|
| 115 |
+
|
| 116 |
+
## 5. Output Files (Agent Produces)
|
| 117 |
+
|
| 118 |
+
| File | Shape, dtype | Description |
|
| 119 |
+
|---|---|---|
|
| 120 |
+
| `critical_state.npy` | $(1024,)$, float64 | Ground state $\psi_c$. |
|
| 121 |
+
| `post_probs.npy` | $(1024,)$, float64 | Measurement-outcome probabilities. Entry $i$ is $p(\tilde{s})$ for the outcome with $\text{index}(\tilde{s}) = i$. |
|
| 122 |
+
| `rdm_site1.npy` | $(1024, 2, 2)$, complex128 | One-site RDM at site 1. Entry $[i, :, :]$ is $\rho_1$ for the outcome with $\text{index}(\tilde{s}) = i$. |
|
| 123 |
+
| `correlators.npz` | `Z_one_body` $(1024, 10)$ float64, `X_one_body` $(1024, 10)$ float64 | One-body correlators. Entry $[i, k]$ is $\langle Z_{k+1}\rangle$ (or $\langle X_{k+1}\rangle$) for outcome $i$; column $k$ corresponds to site $k+1$ (0-indexed columns, 1-indexed sites). |
|
| 124 |
+
|
| 125 |
+
---
|
| 126 |
+
|
| 127 |
+
## 6. Tools / Software
|
| 128 |
+
|
| 129 |
+
- **OS**: Ubuntu 22.04 LTS
|
| 130 |
+
- **Python**: 3.10.12
|
| 131 |
+
- **NumPy**: 2.2.6
|
| 132 |
+
- **SciPy**: 1.15.3
|
| 133 |
+
- **QuTiP**: 5.2.3 (optional; may use for exact diagonalisation)
|
| 134 |
+
- Single machine. Peak memory ≈ 40 MB. Hilbert-space dimension $2^{10} = 1024$.
|
| 135 |
+
|
| 136 |
+
---
|
| 137 |
+
|
| 138 |
+
## 7. Evaluation Criteria
|
| 139 |
+
|
| 140 |
+
Use imaginary time evolution with $\Delta t = 0.0002$ and $K = 50000$.
|
| 141 |
+
|
| 142 |
+
| Quantity | Metric | Tolerance |
|
| 143 |
+
|---|---|---|
|
| 144 |
+
| Critical state $\psi_c$ | State infidelity $1 - F$, where $F = \lvert\langle\psi_c^{\text{ref}} \mid \psi_c^{\text{agent}}\rangle\rvert^2$ | $10^{-4}$ |
|
| 145 |
+
| Probabilities $p(\tilde{s})$ | Max absolute error over all 1024 outcomes | $10^{-2}$ |
|
| 146 |
+
| RDM $\rho_1$ | Max element-wise absolute error over all 1024 outcomes | $10^{-2}$ |
|
| 147 |
+
| Correlators $\langle Z_j\rangle$, $\langle X_j\rangle$ | Max absolute error over all outcomes and sites | $10^{-2}$ |
|
| 148 |
+
|
| 149 |
+
**Pass condition:** all four criteria are satisfied simultaneously.
|
| 150 |
+
|
| 151 |
+
---
|
| 152 |
+
|
| 153 |
+
## 8. Notes on Reproducibility
|
| 154 |
+
|
| 155 |
+
- The computation is fully deterministic; no random seed is needed.
|
| 156 |
+
- All $2^{10} = 1024$ measurement outcomes are computed in parallel (no stochastic sampling).
|
| 157 |
+
- The golden reference uses imaginary time evolution with $\Delta t = 0.0002$, $K = 50000$. Agents using ITE with the recommended parameters or exact diagonalisation should meet the tolerances.
|
| 158 |
+
- For this paramagnetic-ancilla variant, the agent receives `ancilla_state.npy` as input, so the ancilla state is pinned exactly.
|
tasks/computing_math/ising_post_measurement_1/n12_critical_u01_correlators/input/task_specification.md
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Post-Measurement State Preparation for a Critical 1D Quantum Ising Chain
|
| 2 |
+
|
| 3 |
+
## 1. Task Goal
|
| 4 |
+
|
| 5 |
+
Given a quantum system consisting of a critical 1D Ising chain and an ancilla chain (each with $N = 12$ qubits), execute the following protocol:
|
| 6 |
+
|
| 7 |
+
1. Compute the critical ground state $|\psi_c\rangle$ of the transverse-field Ising model at criticality.
|
| 8 |
+
2. Set the ancilla state $|\psi_a\rangle = |\psi_c\rangle$ (critical ancilla).
|
| 9 |
+
3. Apply the combined inter-chain unitary and projective measurement operator to produce post-measurement states and their probabilities for all $2^N = 4096$ measurement outcomes.
|
| 10 |
+
4. Compute the one-site reduced density matrix (RDM) at site $j = 1$.
|
| 11 |
+
5. Compute one-body correlation functions $\langle Z_j \rangle$ and $\langle X_j \rangle$ across all sites.
|
| 12 |
+
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
## 2. Conventions
|
| 16 |
+
|
| 17 |
+
The following conventions are used throughout this specification and in all input/output files.
|
| 18 |
+
|
| 19 |
+
**Pauli matrices.**
|
| 20 |
+
|
| 21 |
+
$$Z = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, \quad X = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, \quad I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}$$
|
| 22 |
+
|
| 23 |
+
**Single-qubit states.**
|
| 24 |
+
|
| 25 |
+
$$|0\rangle = \begin{pmatrix} 1 \\ 0 \end{pmatrix}, \quad |1\rangle = \begin{pmatrix} 0 \\ 1 \end{pmatrix}, \quad |{+}\rangle = \frac{1}{\sqrt{2}}(|0\rangle + |1\rangle)$$
|
| 26 |
+
|
| 27 |
+
Note: $Z|0\rangle = +|0\rangle$ and $Z|1\rangle = -|1\rangle$.
|
| 28 |
+
|
| 29 |
+
**Computational basis ordering (big-endian).** An $N$-qubit computational basis state $|s_1 s_2 \ldots s_N\rangle$ (with $s_i \in \{0, 1\}$) is stored at array index
|
| 30 |
+
|
| 31 |
+
$$\text{index} = s_1 \cdot 2^{N-1} + s_2 \cdot 2^{N-2} + \cdots + s_N \cdot 2^0$$
|
| 32 |
+
|
| 33 |
+
Qubit 1 is the most significant bit. For example, with $N = 3$: $|000\rangle \to 0$, $|001\rangle \to 1$, $|010\rangle \to 2$, $|100\rangle \to 4$, $|111\rangle \to 7$.
|
| 34 |
+
|
| 35 |
+
**Site indexing.** Sites are labeled $1, 2, \ldots, N$ (1-indexed). In the tensor-product Hilbert space $(\mathbb{C}^2)^{\otimes N}$, site $i$ corresponds to the $i$-th tensor factor (from the left).
|
| 36 |
+
|
| 37 |
+
---
|
| 38 |
+
|
| 39 |
+
## 3. Physics Protocol
|
| 40 |
+
|
| 41 |
+
### 3.1 Hamiltonian
|
| 42 |
+
|
| 43 |
+
The critical 1D transverse-field Ising Hamiltonian with periodic boundary conditions is:
|
| 44 |
+
|
| 45 |
+
$$H = -\sum_{i=1}^{N} Z_i Z_{i+1} - \sum_{i=1}^{N} X_i, \qquad Z_{N+1} \equiv Z_1 \text{ (PBC)}$$
|
| 46 |
+
|
| 47 |
+
with $N = 12$.
|
| 48 |
+
|
| 49 |
+
### 3.2 Critical Ground State
|
| 50 |
+
|
| 51 |
+
$|\psi_c\rangle$ is the ground state (lowest-energy eigenstate) of $H$. The agent may obtain it by any correct method (e.g., exact diagonalisation, imaginary time evolution, DMRG). For ITE, the recommended Trotterised scheme is
|
| 52 |
+
|
| 53 |
+
$$|\psi_c\rangle \approx \prod_{k=1}^{K} \Bigl[e^{\Delta t \sum_i Z_i Z_{i+1}} \;\cdot\; \prod_i e^{\Delta t\, X_i}\Bigr]\;|{+}\rangle^{\otimes N}$$
|
| 54 |
+
|
| 55 |
+
with $\Delta t = 0.0002$, $K = 50000$ (total imaginary time $T = K\Delta t = 10$), maintaining unit norm throughout. The Trotter ordering (whether the $Z$-part or the $X$-part is applied first) does not affect the converged result at the recommended parameters.
|
| 56 |
+
|
| 57 |
+
### 3.3 Ancilla State
|
| 58 |
+
|
| 59 |
+
This variant uses the **critical ancilla**: $|\psi_a\rangle = |\psi_c\rangle$ (an identical copy of the ground state). No ancilla file is provided.
|
| 60 |
+
|
| 61 |
+
### 3.4 Inter-Chain Unitary and Measurement
|
| 62 |
+
|
| 63 |
+
The site-$j$ unitary coupling the critical chain to the ancilla chain is
|
| 64 |
+
|
| 65 |
+
$$U_j = \exp\!\bigl(i\,u\,(Z_j - \theta\,I)\otimes \tilde{X}_j\bigr)$$
|
| 66 |
+
|
| 67 |
+
with coupling strength $u = 0.1$ and constant $\theta = -1$. The tilde denotes operators on the ancilla chain. After applying $\prod_j U_j$ to the initial state $|\psi_c\rangle \otimes |\psi_a\rangle$ and projectively measuring the ancilla in the $Z$-basis, each measurement outcome $|\tilde{s}\rangle = |\tilde{s}_1 \tilde{s}_2 \ldots \tilde{s}_N\rangle$ (with $\tilde{s}_j \in \{|0\rangle, |1\rangle\}$) produces a post-measurement state of the critical chain:
|
| 68 |
+
|
| 69 |
+
$$|\psi_{\tilde{s}}\rangle = \frac{e^{iH'}\; e^{-H_m/2}\;|\psi_c\rangle}{\bigl\|e^{-H_m/2}\;|\psi_c\rangle\bigr\|}$$
|
| 70 |
+
|
| 71 |
+
The effective Hamiltonians $H'$ and $H_m$ are both diagonal in the computational basis and **depend on the measurement outcome** $|\tilde{s}\rangle$: each of the $2^N = 4096$ outcomes yields a different pair $(H', H_m)$.
|
| 72 |
+
|
| 73 |
+
**Ancilla coefficients.** For each outcome $|\tilde{s}\rangle$, define:
|
| 74 |
+
|
| 75 |
+
$$a(j) = \frac{\langle\tilde{s}|\tilde{X}_j|\psi_a\rangle}{\langle\tilde{s}|\psi_a\rangle}, \qquad a(j,k) = \frac{\langle\tilde{s}|\tilde{X}_j\tilde{X}_k|\psi_a\rangle}{\langle\tilde{s}|\psi_a\rangle}$$
|
| 76 |
+
|
| 77 |
+
Since $|\tilde{s}\rangle$ is a computational basis state, $\langle\tilde{s}|\psi_a\rangle = \psi_a[\text{index}(\tilde{s})]$, the amplitude of the ancilla state at array index $\text{index}(\tilde{s})$. Similarly, $\langle\tilde{s}|\tilde{X}_j|\psi_a\rangle = \psi_a[\text{index}(\tilde{s} \text{ with bit } j \text{ flipped})]$, since $\tilde{X}_j$ flips qubit $j$ in each computational basis component.
|
| 78 |
+
|
| 79 |
+
**Derived quantities:**
|
| 80 |
+
|
| 81 |
+
$$V_{jk} = a(j,k) - a(j)\,a(k), \qquad m_j = (-2\theta)\Bigl(1 - a(j)^2 + \sum_{k \neq j} V_{jk}\Bigr)$$
|
| 82 |
+
|
| 83 |
+
With $\theta = -1$, this simplifies to $m_j = 2\bigl(1 - a(j)^2 + \sum_{k \neq j} V_{jk}\bigr)$.
|
| 84 |
+
|
| 85 |
+
**Effective Hamiltonians** (diagonal in the computational basis):
|
| 86 |
+
|
| 87 |
+
$$H' = u\sum_j a(j)\,Z_j, \qquad H_m = u^2\sum_j m_j\,Z_j + u^2\sum_{j\neq k} V_{jk}\,Z_jZ_k$$
|
| 88 |
+
|
| 89 |
+
**Measurement probability:**
|
| 90 |
+
|
| 91 |
+
$$p(\tilde{s}) \propto \langle\psi_c|e^{-H_m}|\psi_c\rangle \cdot |\langle\tilde{s}|\psi_a\rangle|^2$$
|
| 92 |
+
|
| 93 |
+
normalised so that $\sum_{\tilde{s}} p(\tilde{s}) = 1$.
|
| 94 |
+
|
| 95 |
+
### 3.5 Reduced Density Matrix
|
| 96 |
+
|
| 97 |
+
The one-site RDM at site $j = 1$ is $\rho_1 = \text{Tr}_{\overline{1}}(|\psi_{\tilde{s}}\rangle\langle\psi_{\tilde{s}}|)$, a $2\times 2$ Hermitian matrix, computed for every measurement outcome.
|
| 98 |
+
|
| 99 |
+
### 3.6 One-Body Correlators
|
| 100 |
+
|
| 101 |
+
$\langle Z_j\rangle = \text{Tr}(\rho_j Z)$ and $\langle X_j\rangle = \text{Tr}(\rho_j X)$ for each site $j \in \{1, \ldots, 12\}$ and each outcome $|\tilde{s}\rangle$.
|
| 102 |
+
|
| 103 |
+
---
|
| 104 |
+
|
| 105 |
+
## 4. Input Files
|
| 106 |
+
|
| 107 |
+
All input files are in the `input/` subdirectory.
|
| 108 |
+
|
| 109 |
+
| File | Description |
|
| 110 |
+
|---|---|
|
| 111 |
+
| `input/config.json` | Parameters: `N=12`, `u=0.1`, `theta=-1`, `dt=0.0002`, `K=50000`, `ancilla_mode="critical"`, `site_j=1`. |
|
| 112 |
+
|
| 113 |
+
Since `ancilla_mode` is `"critical"`, no ancilla file is provided; the agent uses $|\psi_a\rangle = |\psi_c\rangle$.
|
| 114 |
+
|
| 115 |
+
---
|
| 116 |
+
|
| 117 |
+
## 5. Output Files (Agent Produces)
|
| 118 |
+
|
| 119 |
+
| File | Shape, dtype | Description |
|
| 120 |
+
|---|---|---|
|
| 121 |
+
| `critical_state.npy` | $(4096,)$, float64 | Ground state $\psi_c$. |
|
| 122 |
+
| `post_probs.npy` | $(4096,)$, float64 | Measurement-outcome probabilities. Entry $i$ is $p(\tilde{s})$ for the outcome with $\text{index}(\tilde{s}) = i$. |
|
| 123 |
+
| `rdm_site1.npy` | $(4096, 2, 2)$, complex128 | One-site RDM at site 1. Entry $[i, :, :]$ is $\rho_1$ for the outcome with $\text{index}(\tilde{s}) = i$. |
|
| 124 |
+
| `correlators.npz` | `Z_one_body` $(4096, 12)$ float64, `X_one_body` $(4096, 12)$ float64 | One-body correlators. Entry $[i, k]$ is $\langle Z_{k+1}\rangle$ (or $\langle X_{k+1}\rangle$) for outcome $i$; column $k$ corresponds to site $k+1$ (0-indexed columns, 1-indexed sites). |
|
| 125 |
+
|
| 126 |
+
---
|
| 127 |
+
|
| 128 |
+
## 6. Tools / Software
|
| 129 |
+
|
| 130 |
+
- **OS**: Ubuntu 22.04 LTS
|
| 131 |
+
- **Python**: 3.10.12
|
| 132 |
+
- **NumPy**: 2.2.6
|
| 133 |
+
- **SciPy**: 1.15.3
|
| 134 |
+
- **QuTiP**: 5.2.3 (optional; may use for exact diagonalisation)
|
| 135 |
+
- Single machine. Peak memory ≈ 600 MB. Hilbert-space dimension $2^{12} = 4096$.
|
| 136 |
+
|
| 137 |
+
---
|
| 138 |
+
|
| 139 |
+
## 7. Evaluation Criteria
|
| 140 |
+
|
| 141 |
+
Use imaginary time evolution with $\Delta t = 0.0002$ and $K = 50000$.
|
| 142 |
+
|
| 143 |
+
| Quantity | Metric | Tolerance |
|
| 144 |
+
|---|---|---|
|
| 145 |
+
| Critical state $\psi_c$ | State infidelity $1 - F$, where $F = \lvert\langle\psi_c^{\text{ref}} \mid \psi_c^{\text{agent}}\rangle\rvert^2$ | $10^{-4}$ |
|
| 146 |
+
| Probabilities $p(\tilde{s})$ | Max absolute error over all 4096 outcomes | $10^{-2}$ |
|
| 147 |
+
| RDM $\rho_1$ | Max element-wise absolute error over all 4096 outcomes | $10^{-2}$ |
|
| 148 |
+
| Correlators $\langle Z_j\rangle$, $\langle X_j\rangle$ | Max absolute error over all outcomes and sites | $10^{-2}$ |
|
| 149 |
+
|
| 150 |
+
**Pass condition:** all four criteria are satisfied simultaneously.
|
| 151 |
+
|
| 152 |
+
---
|
| 153 |
+
|
| 154 |
+
## 8. Notes on Reproducibility
|
| 155 |
+
|
| 156 |
+
- The computation is fully deterministic; no random seed is needed.
|
| 157 |
+
- All $2^{12} = 4096$ measurement outcomes are computed in parallel (no stochastic sampling).
|
| 158 |
+
- The golden reference uses imaginary time evolution with $\Delta t = 0.0002$, $K = 50000$. Agents using ITE with the recommended parameters or exact diagonalisation should meet the tolerances.
|
tasks/computing_math/ising_post_measurement_1/n12_critical_u02_no_correlators/input/task_specification.md
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Post-Measurement State Preparation for a Critical 1D Quantum Ising Chain
|
| 2 |
+
|
| 3 |
+
## 1. Task Goal
|
| 4 |
+
|
| 5 |
+
Given a quantum system consisting of a critical 1D Ising chain and an ancilla chain (each with $N = 12$ qubits), execute the following protocol:
|
| 6 |
+
|
| 7 |
+
1. Compute the critical ground state $|\psi_c\rangle$ of the transverse-field Ising model at criticality.
|
| 8 |
+
2. Set the ancilla state $|\psi_a\rangle = |\psi_c\rangle$ (critical ancilla).
|
| 9 |
+
3. Apply the combined inter-chain unitary and projective measurement operator to produce post-measurement states and their probabilities for all $2^N = 4096$ measurement outcomes.
|
| 10 |
+
4. Compute the one-site reduced density matrix (RDM) at site $j = 1$.
|
| 11 |
+
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
## 2. Conventions
|
| 15 |
+
|
| 16 |
+
The following conventions are used throughout this specification and in all input/output files.
|
| 17 |
+
|
| 18 |
+
**Pauli matrices.**
|
| 19 |
+
|
| 20 |
+
$$Z = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, \quad X = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, \quad I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}$$
|
| 21 |
+
|
| 22 |
+
**Single-qubit states.**
|
| 23 |
+
|
| 24 |
+
$$|0\rangle = \begin{pmatrix} 1 \\ 0 \end{pmatrix}, \quad |1\rangle = \begin{pmatrix} 0 \\ 1 \end{pmatrix}, \quad |{+}\rangle = \frac{1}{\sqrt{2}}(|0\rangle + |1\rangle)$$
|
| 25 |
+
|
| 26 |
+
Note: $Z|0\rangle = +|0\rangle$ and $Z|1\rangle = -|1\rangle$.
|
| 27 |
+
|
| 28 |
+
**Computational basis ordering (big-endian).** An $N$-qubit computational basis state $|s_1 s_2 \ldots s_N\rangle$ (with $s_i \in \{0, 1\}$) is stored at array index
|
| 29 |
+
|
| 30 |
+
$$\text{index} = s_1 \cdot 2^{N-1} + s_2 \cdot 2^{N-2} + \cdots + s_N \cdot 2^0$$
|
| 31 |
+
|
| 32 |
+
Qubit 1 is the most significant bit. For example, with $N = 3$: $|000\rangle \to 0$, $|001\rangle \to 1$, $|010\rangle \to 2$, $|100\rangle \to 4$, $|111\rangle \to 7$.
|
| 33 |
+
|
| 34 |
+
**Site indexing.** Sites are labeled $1, 2, \ldots, N$ (1-indexed). In the tensor-product Hilbert space $(\mathbb{C}^2)^{\otimes N}$, site $i$ corresponds to the $i$-th tensor factor (from the left).
|
| 35 |
+
|
| 36 |
+
---
|
| 37 |
+
|
| 38 |
+
## 3. Physics Protocol
|
| 39 |
+
|
| 40 |
+
### 3.1 Hamiltonian
|
| 41 |
+
|
| 42 |
+
The critical 1D transverse-field Ising Hamiltonian with periodic boundary conditions is:
|
| 43 |
+
|
| 44 |
+
$$H = -\sum_{i=1}^{N} Z_i Z_{i+1} - \sum_{i=1}^{N} X_i, \qquad Z_{N+1} \equiv Z_1 \text{ (PBC)}$$
|
| 45 |
+
|
| 46 |
+
with $N = 12$.
|
| 47 |
+
|
| 48 |
+
### 3.2 Critical Ground State
|
| 49 |
+
|
| 50 |
+
$|\psi_c\rangle$ is the ground state (lowest-energy eigenstate) of $H$. The agent may obtain it by any correct method (e.g., exact diagonalisation, imaginary time evolution, DMRG). For ITE, the recommended Trotterised scheme is
|
| 51 |
+
|
| 52 |
+
$$|\psi_c\rangle \approx \prod_{k=1}^{K} \Bigl[e^{\Delta t \sum_i Z_i Z_{i+1}} \;\cdot\; \prod_i e^{\Delta t\, X_i}\Bigr]\;|{+}\rangle^{\otimes N}$$
|
| 53 |
+
|
| 54 |
+
with $\Delta t = 0.0002$, $K = 50000$ (total imaginary time $T = K\Delta t = 10$), maintaining unit norm throughout. The Trotter ordering (whether the $Z$-part or the $X$-part is applied first) does not affect the converged result at the recommended parameters.
|
| 55 |
+
|
| 56 |
+
### 3.3 Ancilla State
|
| 57 |
+
|
| 58 |
+
This variant uses the **critical ancilla**: $|\psi_a\rangle = |\psi_c\rangle$ (an identical copy of the ground state). No ancilla file is provided.
|
| 59 |
+
|
| 60 |
+
### 3.4 Inter-Chain Unitary and Measurement
|
| 61 |
+
|
| 62 |
+
The site-$j$ unitary coupling the critical chain to the ancilla chain is
|
| 63 |
+
|
| 64 |
+
$$U_j = \exp\!\bigl(i\,u\,(Z_j - \theta\,I)\otimes \tilde{X}_j\bigr)$$
|
| 65 |
+
|
| 66 |
+
with coupling strength $u = 0.2$ and constant $\theta = -1$. The tilde denotes operators on the ancilla chain. After applying $\prod_j U_j$ to the initial state $|\psi_c\rangle \otimes |\psi_a\rangle$ and projectively measuring the ancilla in the $Z$-basis, each measurement outcome $|\tilde{s}\rangle = |\tilde{s}_1 \tilde{s}_2 \ldots \tilde{s}_N\rangle$ (with $\tilde{s}_j \in \{|0\rangle, |1\rangle\}$) produces a post-measurement state of the critical chain:
|
| 67 |
+
|
| 68 |
+
$$|\psi_{\tilde{s}}\rangle = \frac{e^{iH'}\; e^{-H_m/2}\;|\psi_c\rangle}{\bigl\|e^{-H_m/2}\;|\psi_c\rangle\bigr\|}$$
|
| 69 |
+
|
| 70 |
+
The effective Hamiltonians $H'$ and $H_m$ are both diagonal in the computational basis and **depend on the measurement outcome** $|\tilde{s}\rangle$: each of the $2^N = 4096$ outcomes yields a different pair $(H', H_m)$.
|
| 71 |
+
|
| 72 |
+
**Ancilla coefficients.** For each outcome $|\tilde{s}\rangle$, define:
|
| 73 |
+
|
| 74 |
+
$$a(j) = \frac{\langle\tilde{s}|\tilde{X}_j|\psi_a\rangle}{\langle\tilde{s}|\psi_a\rangle}, \qquad a(j,k) = \frac{\langle\tilde{s}|\tilde{X}_j\tilde{X}_k|\psi_a\rangle}{\langle\tilde{s}|\psi_a\rangle}$$
|
| 75 |
+
|
| 76 |
+
Since $|\tilde{s}\rangle$ is a computational basis state, $\langle\tilde{s}|\psi_a\rangle = \psi_a[\text{index}(\tilde{s})]$, the amplitude of the ancilla state at array index $\text{index}(\tilde{s})$. Similarly, $\langle\tilde{s}|\tilde{X}_j|\psi_a\rangle = \psi_a[\text{index}(\tilde{s} \text{ with bit } j \text{ flipped})]$, since $\tilde{X}_j$ flips qubit $j$ in each computational basis component.
|
| 77 |
+
|
| 78 |
+
**Derived quantities:**
|
| 79 |
+
|
| 80 |
+
$$V_{jk} = a(j,k) - a(j)\,a(k), \qquad m_j = (-2\theta)\Bigl(1 - a(j)^2 + \sum_{k \neq j} V_{jk}\Bigr)$$
|
| 81 |
+
|
| 82 |
+
With $\theta = -1$, this simplifies to $m_j = 2\bigl(1 - a(j)^2 + \sum_{k \neq j} V_{jk}\bigr)$.
|
| 83 |
+
|
| 84 |
+
**Effective Hamiltonians** (diagonal in the computational basis):
|
| 85 |
+
|
| 86 |
+
$$H' = u\sum_j a(j)\,Z_j, \qquad H_m = u^2\sum_j m_j\,Z_j + u^2\sum_{j\neq k} V_{jk}\,Z_jZ_k$$
|
| 87 |
+
|
| 88 |
+
**Measurement probability:**
|
| 89 |
+
|
| 90 |
+
$$p(\tilde{s}) \propto \langle\psi_c|e^{-H_m}|\psi_c\rangle \cdot |\langle\tilde{s}|\psi_a\rangle|^2$$
|
| 91 |
+
|
| 92 |
+
normalised so that $\sum_{\tilde{s}} p(\tilde{s}) = 1$.
|
| 93 |
+
|
| 94 |
+
### 3.5 Reduced Density Matrix
|
| 95 |
+
|
| 96 |
+
The one-site RDM at site $j = 1$ is $\rho_1 = \text{Tr}_{\overline{1}}(|\psi_{\tilde{s}}\rangle\langle\psi_{\tilde{s}}|)$, a $2\times 2$ Hermitian matrix, computed for every measurement outcome.
|
| 97 |
+
|
| 98 |
+
---
|
| 99 |
+
|
| 100 |
+
## 4. Input Files
|
| 101 |
+
|
| 102 |
+
All input files are in the `input/` subdirectory.
|
| 103 |
+
|
| 104 |
+
| File | Description |
|
| 105 |
+
|---|---|
|
| 106 |
+
| `input/config.json` | Parameters: `N=12`, `u=0.2`, `theta=-1`, `dt=0.0002`, `K=50000`, `ancilla_mode="critical"`, `site_j=1`. |
|
| 107 |
+
|
| 108 |
+
Since `ancilla_mode` is `"critical"`, no ancilla file is provided; the agent uses $|\psi_a\rangle = |\psi_c\rangle$.
|
| 109 |
+
|
| 110 |
+
---
|
| 111 |
+
|
| 112 |
+
## 5. Output Files (Agent Produces)
|
| 113 |
+
|
| 114 |
+
| File | Shape, dtype | Description |
|
| 115 |
+
|---|---|---|
|
| 116 |
+
| `critical_state.npy` | $(4096,)$, float64 | Ground state $\psi_c$. |
|
| 117 |
+
| `post_probs.npy` | $(4096,)$, float64 | Measurement-outcome probabilities. Entry $i$ is $p(\tilde{s})$ for the outcome with $\text{index}(\tilde{s}) = i$. |
|
| 118 |
+
| `rdm_site1.npy` | $(4096, 2, 2)$, complex128 | One-site RDM at site 1. Entry $[i, :, :]$ is $\rho_1$ for the outcome with $\text{index}(\tilde{s}) = i$. |
|
| 119 |
+
|
| 120 |
+
---
|
| 121 |
+
|
| 122 |
+
## 6. Tools / Software
|
| 123 |
+
|
| 124 |
+
- **OS**: Ubuntu 22.04 LTS
|
| 125 |
+
- **Python**: 3.10.12
|
| 126 |
+
- **NumPy**: 2.2.6
|
| 127 |
+
- **SciPy**: 1.15.3
|
| 128 |
+
- **QuTiP**: 5.2.3 (optional; may use for exact diagonalisation)
|
| 129 |
+
- Single machine. Peak memory ≈ 600 MB. Hilbert-space dimension $2^{12} = 4096$.
|
| 130 |
+
|
| 131 |
+
---
|
| 132 |
+
|
| 133 |
+
## 7. Evaluation Criteria
|
| 134 |
+
|
| 135 |
+
Use imaginary time evolution with $\Delta t = 0.0002$ and $K = 50000$.
|
| 136 |
+
|
| 137 |
+
| Quantity | Metric | Tolerance |
|
| 138 |
+
|---|---|---|
|
| 139 |
+
| Critical state $\psi_c$ | State infidelity $1 - F$, where $F = \lvert\langle\psi_c^{\text{ref}} \mid \psi_c^{\text{agent}}\rangle\rvert^2$ | $10^{-4}$ |
|
| 140 |
+
| Probabilities $p(\tilde{s})$ | Max absolute error over all 4096 outcomes | $10^{-2}$ |
|
| 141 |
+
| RDM $\rho_1$ | Max element-wise absolute error over all 4096 outcomes | $10^{-2}$ |
|
| 142 |
+
|
| 143 |
+
**Pass condition:** all three criteria are satisfied simultaneously.
|
| 144 |
+
|
| 145 |
+
---
|
| 146 |
+
|
| 147 |
+
## 8. Notes on Reproducibility
|
| 148 |
+
|
| 149 |
+
- The computation is fully deterministic; no random seed is needed.
|
| 150 |
+
- All $2^{12} = 4096$ measurement outcomes are computed in parallel (no stochastic sampling).
|
| 151 |
+
- The golden reference uses imaginary time evolution with $\Delta t = 0.0002$, $K = 50000$. Agents using ITE with the recommended parameters or exact diagonalisation should meet the tolerances.
|
tasks/computing_math/ising_post_measurement_1/n12_paramagnetic_u01_correlators/input/task_specification.md
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Post-Measurement State Preparation for a Critical 1D Quantum Ising Chain
|
| 2 |
+
|
| 3 |
+
## 1. Task Goal
|
| 4 |
+
|
| 5 |
+
Given a quantum system consisting of a critical 1D Ising chain and an ancilla chain (each with $N = 12$ qubits), execute the following protocol:
|
| 6 |
+
|
| 7 |
+
1. Compute the critical ground state $|\psi_c\rangle$ of the transverse-field Ising model at criticality.
|
| 8 |
+
2. Load the ancilla state $|\psi_a\rangle$ from the provided file `ancilla_state.npy` (paramagnetic ancilla).
|
| 9 |
+
3. Apply the combined inter-chain unitary and projective measurement operator to produce post-measurement states and their probabilities for all $2^N = 4096$ measurement outcomes.
|
| 10 |
+
4. Compute the one-site reduced density matrix (RDM) at site $j = 1$.
|
| 11 |
+
5. Compute one-body correlation functions $\langle Z_j \rangle$ and $\langle X_j \rangle$ across all sites.
|
| 12 |
+
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
## 2. Conventions
|
| 16 |
+
|
| 17 |
+
The following conventions are used throughout this specification and in all input/output files.
|
| 18 |
+
|
| 19 |
+
**Pauli matrices.**
|
| 20 |
+
|
| 21 |
+
$$Z = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, \quad X = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, \quad I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}$$
|
| 22 |
+
|
| 23 |
+
**Single-qubit states.**
|
| 24 |
+
|
| 25 |
+
$$|0\rangle = \begin{pmatrix} 1 \\ 0 \end{pmatrix}, \quad |1\rangle = \begin{pmatrix} 0 \\ 1 \end{pmatrix}, \quad |{+}\rangle = \frac{1}{\sqrt{2}}(|0\rangle + |1\rangle)$$
|
| 26 |
+
|
| 27 |
+
Note: $Z|0\rangle = +|0\rangle$ and $Z|1\rangle = -|1\rangle$.
|
| 28 |
+
|
| 29 |
+
**Computational basis ordering (big-endian).** An $N$-qubit computational basis state $|s_1 s_2 \ldots s_N\rangle$ (with $s_i \in \{0, 1\}$) is stored at array index
|
| 30 |
+
|
| 31 |
+
$$\text{index} = s_1 \cdot 2^{N-1} + s_2 \cdot 2^{N-2} + \cdots + s_N \cdot 2^0$$
|
| 32 |
+
|
| 33 |
+
Qubit 1 is the most significant bit. For example, with $N = 3$: $|000\rangle \to 0$, $|001\rangle \to 1$, $|010\rangle \to 2$, $|100\rangle \to 4$, $|111\rangle \to 7$.
|
| 34 |
+
|
| 35 |
+
**Site indexing.** Sites are labeled $1, 2, \ldots, N$ (1-indexed). In the tensor-product Hilbert space $(\mathbb{C}^2)^{\otimes N}$, site $i$ corresponds to the $i$-th tensor factor (from the left).
|
| 36 |
+
|
| 37 |
+
---
|
| 38 |
+
|
| 39 |
+
## 3. Physics Protocol
|
| 40 |
+
|
| 41 |
+
### 3.1 Hamiltonian
|
| 42 |
+
|
| 43 |
+
The critical 1D transverse-field Ising Hamiltonian with periodic boundary conditions is:
|
| 44 |
+
|
| 45 |
+
$$H = -\sum_{i=1}^{N} Z_i Z_{i+1} - \sum_{i=1}^{N} X_i, \qquad Z_{N+1} \equiv Z_1 \text{ (PBC)}$$
|
| 46 |
+
|
| 47 |
+
with $N = 12$.
|
| 48 |
+
|
| 49 |
+
### 3.2 Critical Ground State
|
| 50 |
+
|
| 51 |
+
$|\psi_c\rangle$ is the ground state (lowest-energy eigenstate) of $H$. The agent may obtain it by any correct method (e.g., exact diagonalisation, imaginary time evolution, DMRG). For ITE, the recommended Trotterised scheme is
|
| 52 |
+
|
| 53 |
+
$$|\psi_c\rangle \approx \prod_{k=1}^{K} \Bigl[e^{\Delta t \sum_i Z_i Z_{i+1}} \;\cdot\; \prod_i e^{\Delta t\, X_i}\Bigr]\;|{+}\rangle^{\otimes N}$$
|
| 54 |
+
|
| 55 |
+
with $\Delta t = 0.0002$, $K = 50000$ (total imaginary time $T = K\Delta t = 10$), maintaining unit norm throughout. The Trotter ordering (whether the $Z$-part or the $X$-part is applied first) does not affect the converged result at the recommended parameters.
|
| 56 |
+
|
| 57 |
+
### 3.3 Ancilla State
|
| 58 |
+
|
| 59 |
+
This variant uses the **paramagnetic ancilla**. The file `ancilla_state.npy` is provided as input. The ancilla state $|\psi_a\rangle$ was generated by 5 ITE steps from $|{+}\rangle^{\otimes 12}$ using the same Trotterised scheme as in section 3.2. The agent must load this file directly and use it as $|\psi_a\rangle$.
|
| 60 |
+
|
| 61 |
+
### 3.4 Inter-Chain Unitary and Measurement
|
| 62 |
+
|
| 63 |
+
The site-$j$ unitary coupling the critical chain to the ancilla chain is
|
| 64 |
+
|
| 65 |
+
$$U_j = \exp\!\bigl(i\,u\,(Z_j - \theta\,I)\otimes \tilde{X}_j\bigr)$$
|
| 66 |
+
|
| 67 |
+
with coupling strength $u = 0.1$ and constant $\theta = -1$. The tilde denotes operators on the ancilla chain. After applying $\prod_j U_j$ to the initial state $|\psi_c\rangle \otimes |\psi_a\rangle$ and projectively measuring the ancilla in the $Z$-basis, each measurement outcome $|\tilde{s}\rangle = |\tilde{s}_1 \tilde{s}_2 \ldots \tilde{s}_N\rangle$ (with $\tilde{s}_j \in \{|0\rangle, |1\rangle\}$) produces a post-measurement state of the critical chain:
|
| 68 |
+
|
| 69 |
+
$$|\psi_{\tilde{s}}\rangle = \frac{e^{iH'}\; e^{-H_m/2}\;|\psi_c\rangle}{\bigl\|e^{-H_m/2}\;|\psi_c\rangle\bigr\|}$$
|
| 70 |
+
|
| 71 |
+
The effective Hamiltonians $H'$ and $H_m$ are both diagonal in the computational basis and **depend on the measurement outcome** $|\tilde{s}\rangle$: each of the $2^N = 4096$ outcomes yields a different pair $(H', H_m)$.
|
| 72 |
+
|
| 73 |
+
**Ancilla coefficients.** For each outcome $|\tilde{s}\rangle$, define:
|
| 74 |
+
|
| 75 |
+
$$a(j) = \frac{\langle\tilde{s}|\tilde{X}_j|\psi_a\rangle}{\langle\tilde{s}|\psi_a\rangle}, \qquad a(j,k) = \frac{\langle\tilde{s}|\tilde{X}_j\tilde{X}_k|\psi_a\rangle}{\langle\tilde{s}|\psi_a\rangle}$$
|
| 76 |
+
|
| 77 |
+
Since $|\tilde{s}\rangle$ is a computational basis state, $\langle\tilde{s}|\psi_a\rangle = \psi_a[\text{index}(\tilde{s})]$, the amplitude of the ancilla state at array index $\text{index}(\tilde{s})$. Similarly, $\langle\tilde{s}|\tilde{X}_j|\psi_a\rangle = \psi_a[\text{index}(\tilde{s} \text{ with bit } j \text{ flipped})]$, since $\tilde{X}_j$ flips qubit $j$ in each computational basis component.
|
| 78 |
+
|
| 79 |
+
**Derived quantities:**
|
| 80 |
+
|
| 81 |
+
$$V_{jk} = a(j,k) - a(j)\,a(k), \qquad m_j = (-2\theta)\Bigl(1 - a(j)^2 + \sum_{k \neq j} V_{jk}\Bigr)$$
|
| 82 |
+
|
| 83 |
+
With $\theta = -1$, this simplifies to $m_j = 2\bigl(1 - a(j)^2 + \sum_{k \neq j} V_{jk}\bigr)$.
|
| 84 |
+
|
| 85 |
+
**Effective Hamiltonians** (diagonal in the computational basis):
|
| 86 |
+
|
| 87 |
+
$$H' = u\sum_j a(j)\,Z_j, \qquad H_m = u^2\sum_j m_j\,Z_j + u^2\sum_{j\neq k} V_{jk}\,Z_jZ_k$$
|
| 88 |
+
|
| 89 |
+
**Measurement probability:**
|
| 90 |
+
|
| 91 |
+
$$p(\tilde{s}) \propto \langle\psi_c|e^{-H_m}|\psi_c\rangle \cdot |\langle\tilde{s}|\psi_a\rangle|^2$$
|
| 92 |
+
|
| 93 |
+
normalised so that $\sum_{\tilde{s}} p(\tilde{s}) = 1$.
|
| 94 |
+
|
| 95 |
+
### 3.5 Reduced Density Matrix
|
| 96 |
+
|
| 97 |
+
The one-site RDM at site $j = 1$ is $\rho_1 = \text{Tr}_{\overline{1}}(|\psi_{\tilde{s}}\rangle\langle\psi_{\tilde{s}}|)$, a $2\times 2$ Hermitian matrix, computed for every measurement outcome.
|
| 98 |
+
|
| 99 |
+
### 3.6 One-Body Correlators
|
| 100 |
+
|
| 101 |
+
$\langle Z_j\rangle = \text{Tr}(\rho_j Z)$ and $\langle X_j\rangle = \text{Tr}(\rho_j X)$ for each site $j \in \{1, \ldots, 12\}$ and each outcome $|\tilde{s}\rangle$.
|
| 102 |
+
|
| 103 |
+
---
|
| 104 |
+
|
| 105 |
+
## 4. Input Files
|
| 106 |
+
|
| 107 |
+
All input files are in the `input/` subdirectory.
|
| 108 |
+
|
| 109 |
+
| File | Description |
|
| 110 |
+
|---|---|
|
| 111 |
+
| `input/config.json` | Parameters: `N=12`, `u=0.1`, `theta=-1`, `dt=0.0002`, `K=50000`, `ancilla_mode="paramagnetic"`, `ancilla_steps=5`, `site_j=1`. |
|
| 112 |
+
| `input/ancilla_state.npy` | Shape $(4096,)$, float64. Pre-computed paramagnetic ancilla state. |
|
| 113 |
+
|
| 114 |
+
---
|
| 115 |
+
|
| 116 |
+
## 5. Output Files (Agent Produces)
|
| 117 |
+
|
| 118 |
+
| File | Shape, dtype | Description |
|
| 119 |
+
|---|---|---|
|
| 120 |
+
| `critical_state.npy` | $(4096,)$, float64 | Ground state $\psi_c$. |
|
| 121 |
+
| `post_probs.npy` | $(4096,)$, float64 | Measurement-outcome probabilities. Entry $i$ is $p(\tilde{s})$ for the outcome with $\text{index}(\tilde{s}) = i$. |
|
| 122 |
+
| `rdm_site1.npy` | $(4096, 2, 2)$, complex128 | One-site RDM at site 1. Entry $[i, :, :]$ is $\rho_1$ for the outcome with $\text{index}(\tilde{s}) = i$. |
|
| 123 |
+
| `correlators.npz` | `Z_one_body` $(4096, 12)$ float64, `X_one_body` $(4096, 12)$ float64 | One-body correlators. Entry $[i, k]$ is $\langle Z_{k+1}\rangle$ (or $\langle X_{k+1}\rangle$) for outcome $i$; column $k$ corresponds to site $k+1$ (0-indexed columns, 1-indexed sites). |
|
| 124 |
+
|
| 125 |
+
---
|
| 126 |
+
|
| 127 |
+
## 6. Tools / Software
|
| 128 |
+
|
| 129 |
+
- **OS**: Ubuntu 22.04 LTS
|
| 130 |
+
- **Python**: 3.10.12
|
| 131 |
+
- **NumPy**: 2.2.6
|
| 132 |
+
- **SciPy**: 1.15.3
|
| 133 |
+
- **QuTiP**: 5.2.3 (optional; may use for exact diagonalisation)
|
| 134 |
+
- Single machine. Peak memory ≈ 600 MB. Hilbert-space dimension $2^{12} = 4096$.
|
| 135 |
+
|
| 136 |
+
---
|
| 137 |
+
|
| 138 |
+
## 7. Evaluation Criteria
|
| 139 |
+
|
| 140 |
+
Use imaginary time evolution with $\Delta t = 0.0002$ and $K = 50000$.
|
| 141 |
+
|
| 142 |
+
| Quantity | Metric | Tolerance |
|
| 143 |
+
|---|---|---|
|
| 144 |
+
| Critical state $\psi_c$ | State infidelity $1 - F$, where $F = \lvert\langle\psi_c^{\text{ref}} \mid \psi_c^{\text{agent}}\rangle\rvert^2$ | $10^{-4}$ |
|
| 145 |
+
| Probabilities $p(\tilde{s})$ | Max absolute error over all 4096 outcomes | $10^{-2}$ |
|
| 146 |
+
| RDM $\rho_1$ | Max element-wise absolute error over all 4096 outcomes | $10^{-2}$ |
|
| 147 |
+
| Correlators $\langle Z_j\rangle$, $\langle X_j\rangle$ | Max absolute error over all outcomes and sites | $10^{-2}$ |
|
| 148 |
+
|
| 149 |
+
**Pass condition:** all four criteria are satisfied simultaneously.
|
| 150 |
+
|
| 151 |
+
---
|
| 152 |
+
|
| 153 |
+
## 8. Notes on Reproducibility
|
| 154 |
+
|
| 155 |
+
- The computation is fully deterministic; no random seed is needed.
|
| 156 |
+
- All $2^{12} = 4096$ measurement outcomes are computed in parallel (no stochastic sampling).
|
| 157 |
+
- The golden reference uses imaginary time evolution with $\Delta t = 0.0002$, $K = 50000$. Agents using ITE with the recommended parameters or exact diagonalisation should meet the tolerances.
|
| 158 |
+
- For this paramagnetic-ancilla variant, the agent receives `ancilla_state.npy` as input, so the ancilla state is pinned exactly.
|
tasks/computing_math/ising_post_measurement_1/n14_critical_u01_no_correlators/input/task_specification.md
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Post-Measurement State Preparation for a Critical 1D Quantum Ising Chain
|
| 2 |
+
|
| 3 |
+
## 1. Task Goal
|
| 4 |
+
|
| 5 |
+
Given a quantum system consisting of a critical 1D Ising chain and an ancilla chain (each with $N = 14$ qubits), execute the following protocol:
|
| 6 |
+
|
| 7 |
+
1. Compute the critical ground state $|\psi_c\rangle$ of the transverse-field Ising model at criticality.
|
| 8 |
+
2. Set the ancilla state $|\psi_a\rangle = |\psi_c\rangle$ (critical ancilla).
|
| 9 |
+
3. Apply the combined inter-chain unitary and projective measurement operator to produce post-measurement states and their probabilities for all $2^N = 16384$ measurement outcomes.
|
| 10 |
+
4. Compute the one-site reduced density matrix (RDM) at site $j = 1$.
|
| 11 |
+
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
## 2. Conventions
|
| 15 |
+
|
| 16 |
+
The following conventions are used throughout this specification and in all input/output files.
|
| 17 |
+
|
| 18 |
+
**Pauli matrices.**
|
| 19 |
+
|
| 20 |
+
$$Z = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, \quad X = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, \quad I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}$$
|
| 21 |
+
|
| 22 |
+
**Single-qubit states.**
|
| 23 |
+
|
| 24 |
+
$$|0\rangle = \begin{pmatrix} 1 \\ 0 \end{pmatrix}, \quad |1\rangle = \begin{pmatrix} 0 \\ 1 \end{pmatrix}, \quad |{+}\rangle = \frac{1}{\sqrt{2}}(|0\rangle + |1\rangle)$$
|
| 25 |
+
|
| 26 |
+
Note: $Z|0\rangle = +|0\rangle$ and $Z|1\rangle = -|1\rangle$.
|
| 27 |
+
|
| 28 |
+
**Computational basis ordering (big-endian).** An $N$-qubit computational basis state $|s_1 s_2 \ldots s_N\rangle$ (with $s_i \in \{0, 1\}$) is stored at array index
|
| 29 |
+
|
| 30 |
+
$$\text{index} = s_1 \cdot 2^{N-1} + s_2 \cdot 2^{N-2} + \cdots + s_N \cdot 2^0$$
|
| 31 |
+
|
| 32 |
+
Qubit 1 is the most significant bit. For example, with $N = 3$: $|000\rangle \to 0$, $|001\rangle \to 1$, $|010\rangle \to 2$, $|100\rangle \to 4$, $|111\rangle \to 7$.
|
| 33 |
+
|
| 34 |
+
**Site indexing.** Sites are labeled $1, 2, \ldots, N$ (1-indexed). In the tensor-product Hilbert space $(\mathbb{C}^2)^{\otimes N}$, site $i$ corresponds to the $i$-th tensor factor (from the left).
|
| 35 |
+
|
| 36 |
+
---
|
| 37 |
+
|
| 38 |
+
## 3. Physics Protocol
|
| 39 |
+
|
| 40 |
+
### 3.1 Hamiltonian
|
| 41 |
+
|
| 42 |
+
The critical 1D transverse-field Ising Hamiltonian with periodic boundary conditions is:
|
| 43 |
+
|
| 44 |
+
$$H = -\sum_{i=1}^{N} Z_i Z_{i+1} - \sum_{i=1}^{N} X_i, \qquad Z_{N+1} \equiv Z_1 \text{ (PBC)}$$
|
| 45 |
+
|
| 46 |
+
with $N = 14$.
|
| 47 |
+
|
| 48 |
+
### 3.2 Critical Ground State
|
| 49 |
+
|
| 50 |
+
$|\psi_c\rangle$ is the ground state (lowest-energy eigenstate) of $H$. The agent may obtain it by any correct method (e.g., exact diagonalisation, imaginary time evolution, DMRG). For ITE, the recommended Trotterised scheme is
|
| 51 |
+
|
| 52 |
+
$$|\psi_c\rangle \approx \prod_{k=1}^{K} \Bigl[e^{\Delta t \sum_i Z_i Z_{i+1}} \;\cdot\; \prod_i e^{\Delta t\, X_i}\Bigr]\;|{+}\rangle^{\otimes N}$$
|
| 53 |
+
|
| 54 |
+
with $\Delta t = 0.0002$, $K = 50000$ (total imaginary time $T = K\Delta t = 10$), maintaining unit norm throughout. The Trotter ordering (whether the $Z$-part or the $X$-part is applied first) does not affect the converged result at the recommended parameters.
|
| 55 |
+
|
| 56 |
+
### 3.3 Ancilla State
|
| 57 |
+
|
| 58 |
+
This variant uses the **critical ancilla**: $|\psi_a\rangle = |\psi_c\rangle$ (an identical copy of the ground state). No ancilla file is provided.
|
| 59 |
+
|
| 60 |
+
### 3.4 Inter-Chain Unitary and Measurement
|
| 61 |
+
|
| 62 |
+
The site-$j$ unitary coupling the critical chain to the ancilla chain is
|
| 63 |
+
|
| 64 |
+
$$U_j = \exp\!\bigl(i\,u\,(Z_j - \theta\,I)\otimes \tilde{X}_j\bigr)$$
|
| 65 |
+
|
| 66 |
+
with coupling strength $u = 0.1$ and constant $\theta = -1$. The tilde denotes operators on the ancilla chain. After applying $\prod_j U_j$ to the initial state $|\psi_c\rangle \otimes |\psi_a\rangle$ and projectively measuring the ancilla in the $Z$-basis, each measurement outcome $|\tilde{s}\rangle = |\tilde{s}_1 \tilde{s}_2 \ldots \tilde{s}_N\rangle$ (with $\tilde{s}_j \in \{|0\rangle, |1\rangle\}$) produces a post-measurement state of the critical chain:
|
| 67 |
+
|
| 68 |
+
$$|\psi_{\tilde{s}}\rangle = \frac{e^{iH'}\; e^{-H_m/2}\;|\psi_c\rangle}{\bigl\|e^{-H_m/2}\;|\psi_c\rangle\bigr\|}$$
|
| 69 |
+
|
| 70 |
+
The effective Hamiltonians $H'$ and $H_m$ are both diagonal in the computational basis and **depend on the measurement outcome** $|\tilde{s}\rangle$: each of the $2^N = 16384$ outcomes yields a different pair $(H', H_m)$.
|
| 71 |
+
|
| 72 |
+
**Ancilla coefficients.** For each outcome $|\tilde{s}\rangle$, define:
|
| 73 |
+
|
| 74 |
+
$$a(j) = \frac{\langle\tilde{s}|\tilde{X}_j|\psi_a\rangle}{\langle\tilde{s}|\psi_a\rangle}, \qquad a(j,k) = \frac{\langle\tilde{s}|\tilde{X}_j\tilde{X}_k|\psi_a\rangle}{\langle\tilde{s}|\psi_a\rangle}$$
|
| 75 |
+
|
| 76 |
+
Since $|\tilde{s}\rangle$ is a computational basis state, $\langle\tilde{s}|\psi_a\rangle = \psi_a[\text{index}(\tilde{s})]$, the amplitude of the ancilla state at array index $\text{index}(\tilde{s})$. Similarly, $\langle\tilde{s}|\tilde{X}_j|\psi_a\rangle = \psi_a[\text{index}(\tilde{s} \text{ with bit } j \text{ flipped})]$, since $\tilde{X}_j$ flips qubit $j$ in each computational basis component.
|
| 77 |
+
|
| 78 |
+
**Derived quantities:**
|
| 79 |
+
|
| 80 |
+
$$V_{jk} = a(j,k) - a(j)\,a(k), \qquad m_j = (-2\theta)\Bigl(1 - a(j)^2 + \sum_{k \neq j} V_{jk}\Bigr)$$
|
| 81 |
+
|
| 82 |
+
With $\theta = -1$, this simplifies to $m_j = 2\bigl(1 - a(j)^2 + \sum_{k \neq j} V_{jk}\bigr)$.
|
| 83 |
+
|
| 84 |
+
**Effective Hamiltonians** (diagonal in the computational basis):
|
| 85 |
+
|
| 86 |
+
$$H' = u\sum_j a(j)\,Z_j, \qquad H_m = u^2\sum_j m_j\,Z_j + u^2\sum_{j\neq k} V_{jk}\,Z_jZ_k$$
|
| 87 |
+
|
| 88 |
+
**Measurement probability:**
|
| 89 |
+
|
| 90 |
+
$$p(\tilde{s}) \propto \langle\psi_c|e^{-H_m}|\psi_c\rangle \cdot |\langle\tilde{s}|\psi_a\rangle|^2$$
|
| 91 |
+
|
| 92 |
+
normalised so that $\sum_{\tilde{s}} p(\tilde{s}) = 1$.
|
| 93 |
+
|
| 94 |
+
### 3.5 Reduced Density Matrix
|
| 95 |
+
|
| 96 |
+
The one-site RDM at site $j = 1$ is $\rho_1 = \text{Tr}_{\overline{1}}(|\psi_{\tilde{s}}\rangle\langle\psi_{\tilde{s}}|)$, a $2\times 2$ Hermitian matrix, computed for every measurement outcome.
|
| 97 |
+
|
| 98 |
+
---
|
| 99 |
+
|
| 100 |
+
## 4. Input Files
|
| 101 |
+
|
| 102 |
+
All input files are in the `input/` subdirectory.
|
| 103 |
+
|
| 104 |
+
| File | Description |
|
| 105 |
+
|---|---|
|
| 106 |
+
| `input/config.json` | Parameters: `N=14`, `u=0.1`, `theta=-1`, `dt=0.0002`, `K=50000`, `ancilla_mode="critical"`, `site_j=1`. |
|
| 107 |
+
|
| 108 |
+
Since `ancilla_mode` is `"critical"`, no ancilla file is provided; the agent uses $|\psi_a\rangle = |\psi_c\rangle$.
|
| 109 |
+
|
| 110 |
+
---
|
| 111 |
+
|
| 112 |
+
## 5. Output Files (Agent Produces)
|
| 113 |
+
|
| 114 |
+
| File | Shape, dtype | Description |
|
| 115 |
+
|---|---|---|
|
| 116 |
+
| `critical_state.npy` | $(16384,)$, float64 | Ground state $\psi_c$. |
|
| 117 |
+
| `post_probs.npy` | $(16384,)$, float64 | Measurement-outcome probabilities. Entry $i$ is $p(\tilde{s})$ for the outcome with $\text{index}(\tilde{s}) = i$. |
|
| 118 |
+
| `rdm_site1.npy` | $(16384, 2, 2)$, complex128 | One-site RDM at site 1. Entry $[i, :, :]$ is $\rho_1$ for the outcome with $\text{index}(\tilde{s}) = i$. |
|
| 119 |
+
|
| 120 |
+
---
|
| 121 |
+
|
| 122 |
+
## 6. Tools / Software
|
| 123 |
+
|
| 124 |
+
- **OS**: Ubuntu 22.04 LTS
|
| 125 |
+
- **Python**: 3.10.12
|
| 126 |
+
- **NumPy**: 2.2.6
|
| 127 |
+
- **SciPy**: 1.15.3
|
| 128 |
+
- **QuTiP**: 5.2.3 (optional; may use for exact diagonalisation)
|
| 129 |
+
- Single machine. Peak memory ≈ 8 GB. Hilbert-space dimension $2^{14} = 16384$. Use an efficient implementation that avoids materializing full dense effective-Hamiltonian matrices unless your runtime can support it.
|
| 130 |
+
|
| 131 |
+
---
|
| 132 |
+
|
| 133 |
+
## 7. Evaluation Criteria
|
| 134 |
+
|
| 135 |
+
Use imaginary time evolution with $\Delta t = 0.0002$ and $K = 50000$.
|
| 136 |
+
|
| 137 |
+
| Quantity | Metric | Tolerance |
|
| 138 |
+
|---|---|---|
|
| 139 |
+
| Critical state $\psi_c$ | State infidelity $1 - F$, where $F = \lvert\langle\psi_c^{\text{ref}} \mid \psi_c^{\text{agent}}\rangle\rvert^2$ | $10^{-4}$ |
|
| 140 |
+
| Probabilities $p(\tilde{s})$ | Max absolute error over all 16384 outcomes | $10^{-2}$ |
|
| 141 |
+
| RDM $\rho_1$ | Max element-wise absolute error over all 16384 outcomes | $10^{-2}$ |
|
| 142 |
+
|
| 143 |
+
**Pass condition:** all three criteria are satisfied simultaneously.
|
| 144 |
+
|
| 145 |
+
---
|
| 146 |
+
|
| 147 |
+
## 8. Notes on Reproducibility
|
| 148 |
+
|
| 149 |
+
- The computation is fully deterministic; no random seed is needed.
|
| 150 |
+
- All $2^{14} = 16384$ measurement outcomes are computed in parallel (no stochastic sampling).
|
| 151 |
+
- The golden reference uses imaginary time evolution with $\Delta t = 0.0002$, $K = 50000$. Agents using ITE with the recommended parameters or exact diagonalisation should meet the tolerances.
|
tasks/computing_math/ising_post_measurement_1/n16_critical_u01_no_correlators/input/task_specification.md
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Post-Measurement State Preparation for a Critical 1D Quantum Ising Chain
|
| 2 |
+
|
| 3 |
+
## 1. Task Goal
|
| 4 |
+
|
| 5 |
+
Given a quantum system consisting of a critical 1D Ising chain and an ancilla chain (each with $N = 16$ qubits), execute the following protocol:
|
| 6 |
+
|
| 7 |
+
1. Compute the critical ground state $|\psi_c\rangle$ of the transverse-field Ising model at criticality.
|
| 8 |
+
2. Set the ancilla state $|\psi_a\rangle = |\psi_c\rangle$ (critical ancilla).
|
| 9 |
+
3. Apply the combined inter-chain unitary and projective measurement operator to produce post-measurement states and their probabilities for all $2^N = 65536$ measurement outcomes.
|
| 10 |
+
4. Compute the one-site reduced density matrix (RDM) at site $j = 1$.
|
| 11 |
+
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
## 2. Conventions
|
| 15 |
+
|
| 16 |
+
The following conventions are used throughout this specification and in all input/output files.
|
| 17 |
+
|
| 18 |
+
**Pauli matrices.**
|
| 19 |
+
|
| 20 |
+
$$Z = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, \quad X = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, \quad I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}$$
|
| 21 |
+
|
| 22 |
+
**Single-qubit states.**
|
| 23 |
+
|
| 24 |
+
$$|0\rangle = \begin{pmatrix} 1 \\ 0 \end{pmatrix}, \quad |1\rangle = \begin{pmatrix} 0 \\ 1 \end{pmatrix}, \quad |{+}\rangle = \frac{1}{\sqrt{2}}(|0\rangle + |1\rangle)$$
|
| 25 |
+
|
| 26 |
+
Note: $Z|0\rangle = +|0\rangle$ and $Z|1\rangle = -|1\rangle$.
|
| 27 |
+
|
| 28 |
+
**Computational basis ordering (big-endian).** An $N$-qubit computational basis state $|s_1 s_2 \ldots s_N\rangle$ (with $s_i \in \{0, 1\}$) is stored at array index
|
| 29 |
+
|
| 30 |
+
$$\text{index} = s_1 \cdot 2^{N-1} + s_2 \cdot 2^{N-2} + \cdots + s_N \cdot 2^0$$
|
| 31 |
+
|
| 32 |
+
Qubit 1 is the most significant bit. For example, with $N = 3$: $|000\rangle \to 0$, $|001\rangle \to 1$, $|010\rangle \to 2$, $|100\rangle \to 4$, $|111\rangle \to 7$.
|
| 33 |
+
|
| 34 |
+
**Site indexing.** Sites are labeled $1, 2, \ldots, N$ (1-indexed). In the tensor-product Hilbert space $(\mathbb{C}^2)^{\otimes N}$, site $i$ corresponds to the $i$-th tensor factor (from the left).
|
| 35 |
+
|
| 36 |
+
---
|
| 37 |
+
|
| 38 |
+
## 3. Physics Protocol
|
| 39 |
+
|
| 40 |
+
### 3.1 Hamiltonian
|
| 41 |
+
|
| 42 |
+
The critical 1D transverse-field Ising Hamiltonian with periodic boundary conditions is:
|
| 43 |
+
|
| 44 |
+
$$H = -\sum_{i=1}^{N} Z_i Z_{i+1} - \sum_{i=1}^{N} X_i, \qquad Z_{N+1} \equiv Z_1 \text{ (PBC)}$$
|
| 45 |
+
|
| 46 |
+
with $N = 16$.
|
| 47 |
+
|
| 48 |
+
### 3.2 Critical Ground State
|
| 49 |
+
|
| 50 |
+
$|\psi_c\rangle$ is the ground state (lowest-energy eigenstate) of $H$. The agent may obtain it by any correct method (e.g., exact diagonalisation, imaginary time evolution, DMRG). For ITE, the recommended Trotterised scheme is
|
| 51 |
+
|
| 52 |
+
$$|\psi_c\rangle \approx \prod_{k=1}^{K} \Bigl[e^{\Delta t \sum_i Z_i Z_{i+1}} \;\cdot\; \prod_i e^{\Delta t\, X_i}\Bigr]\;|{+}\rangle^{\otimes N}$$
|
| 53 |
+
|
| 54 |
+
with $\Delta t = 0.0002$, $K = 50000$ (total imaginary time $T = K\Delta t = 10$), maintaining unit norm throughout. The Trotter ordering (whether the $Z$-part or the $X$-part is applied first) does not affect the converged result at the recommended parameters.
|
| 55 |
+
|
| 56 |
+
### 3.3 Ancilla State
|
| 57 |
+
|
| 58 |
+
This variant uses the **critical ancilla**: $|\psi_a\rangle = |\psi_c\rangle$ (an identical copy of the ground state). No ancilla file is provided.
|
| 59 |
+
|
| 60 |
+
### 3.4 Inter-Chain Unitary and Measurement
|
| 61 |
+
|
| 62 |
+
The site-$j$ unitary coupling the critical chain to the ancilla chain is
|
| 63 |
+
|
| 64 |
+
$$U_j = \exp\!\bigl(i\,u\,(Z_j - \theta\,I)\otimes \tilde{X}_j\bigr)$$
|
| 65 |
+
|
| 66 |
+
with coupling strength $u = 0.1$ and constant $\theta = -1$. The tilde denotes operators on the ancilla chain. After applying $\prod_j U_j$ to the initial state $|\psi_c\rangle \otimes |\psi_a\rangle$ and projectively measuring the ancilla in the $Z$-basis, each measurement outcome $|\tilde{s}\rangle = |\tilde{s}_1 \tilde{s}_2 \ldots \tilde{s}_N\rangle$ (with $\tilde{s}_j \in \{|0\rangle, |1\rangle\}$) produces a post-measurement state of the critical chain:
|
| 67 |
+
|
| 68 |
+
$$|\psi_{\tilde{s}}\rangle = \frac{e^{iH'}\; e^{-H_m/2}\;|\psi_c\rangle}{\bigl\|e^{-H_m/2}\;|\psi_c\rangle\bigr\|}$$
|
| 69 |
+
|
| 70 |
+
The effective Hamiltonians $H'$ and $H_m$ are both diagonal in the computational basis and **depend on the measurement outcome** $|\tilde{s}\rangle$: each of the $2^N = 65536$ outcomes yields a different pair $(H', H_m)$.
|
| 71 |
+
|
| 72 |
+
**Ancilla coefficients.** For each outcome $|\tilde{s}\rangle$, define:
|
| 73 |
+
|
| 74 |
+
$$a(j) = \frac{\langle\tilde{s}|\tilde{X}_j|\psi_a\rangle}{\langle\tilde{s}|\psi_a\rangle}, \qquad a(j,k) = \frac{\langle\tilde{s}|\tilde{X}_j\tilde{X}_k|\psi_a\rangle}{\langle\tilde{s}|\psi_a\rangle}$$
|
| 75 |
+
|
| 76 |
+
Since $|\tilde{s}\rangle$ is a computational basis state, $\langle\tilde{s}|\psi_a\rangle = \psi_a[\text{index}(\tilde{s})]$, the amplitude of the ancilla state at array index $\text{index}(\tilde{s})$. Similarly, $\langle\tilde{s}|\tilde{X}_j|\psi_a\rangle = \psi_a[\text{index}(\tilde{s} \text{ with bit } j \text{ flipped})]$, since $\tilde{X}_j$ flips qubit $j$ in each computational basis component.
|
| 77 |
+
|
| 78 |
+
**Derived quantities:**
|
| 79 |
+
|
| 80 |
+
$$V_{jk} = a(j,k) - a(j)\,a(k), \qquad m_j = (-2\theta)\Bigl(1 - a(j)^2 + \sum_{k \neq j} V_{jk}\Bigr)$$
|
| 81 |
+
|
| 82 |
+
With $\theta = -1$, this simplifies to $m_j = 2\bigl(1 - a(j)^2 + \sum_{k \neq j} V_{jk}\bigr)$.
|
| 83 |
+
|
| 84 |
+
**Effective Hamiltonians** (diagonal in the computational basis):
|
| 85 |
+
|
| 86 |
+
$$H' = u\sum_j a(j)\,Z_j, \qquad H_m = u^2\sum_j m_j\,Z_j + u^2\sum_{j\neq k} V_{jk}\,Z_jZ_k$$
|
| 87 |
+
|
| 88 |
+
**Measurement probability:**
|
| 89 |
+
|
| 90 |
+
$$p(\tilde{s}) \propto \langle\psi_c|e^{-H_m}|\psi_c\rangle \cdot |\langle\tilde{s}|\psi_a\rangle|^2$$
|
| 91 |
+
|
| 92 |
+
normalised so that $\sum_{\tilde{s}} p(\tilde{s}) = 1$.
|
| 93 |
+
|
| 94 |
+
### 3.5 Reduced Density Matrix
|
| 95 |
+
|
| 96 |
+
The one-site RDM at site $j = 1$ is $\rho_1 = \text{Tr}_{\overline{1}}(|\psi_{\tilde{s}}\rangle\langle\psi_{\tilde{s}}|)$, a $2\times 2$ Hermitian matrix, computed for every measurement outcome.
|
| 97 |
+
|
| 98 |
+
---
|
| 99 |
+
|
| 100 |
+
## 4. Input Files
|
| 101 |
+
|
| 102 |
+
All input files are in the `input/` subdirectory.
|
| 103 |
+
|
| 104 |
+
| File | Description |
|
| 105 |
+
|---|---|
|
| 106 |
+
| `input/config.json` | Parameters: `N=16`, `u=0.1`, `theta=-1`, `dt=0.0002`, `K=50000`, `ancilla_mode="critical"`, `site_j=1`. |
|
| 107 |
+
|
| 108 |
+
Since `ancilla_mode` is `"critical"`, no ancilla file is provided; the agent uses $|\psi_a\rangle = |\psi_c\rangle$.
|
| 109 |
+
|
| 110 |
+
---
|
| 111 |
+
|
| 112 |
+
## 5. Output Files (Agent Produces)
|
| 113 |
+
|
| 114 |
+
| File | Shape, dtype | Description |
|
| 115 |
+
|---|---|---|
|
| 116 |
+
| `critical_state.npy` | $(65536,)$, float64 | Ground state $\psi_c$. |
|
| 117 |
+
| `post_probs.npy` | $(65536,)$, float64 | Measurement-outcome probabilities. Entry $i$ is $p(\tilde{s})$ for the outcome with $\text{index}(\tilde{s}) = i$. |
|
| 118 |
+
| `rdm_site1.npy` | $(65536, 2, 2)$, complex128 | One-site RDM at site 1. Entry $[i, :, :]$ is $\rho_1$ for the outcome with $\text{index}(\tilde{s}) = i$. |
|
| 119 |
+
|
| 120 |
+
---
|
| 121 |
+
|
| 122 |
+
## 6. Tools / Software
|
| 123 |
+
|
| 124 |
+
- **OS**: Ubuntu 22.04 LTS
|
| 125 |
+
- **Python**: 3.10.12
|
| 126 |
+
- **NumPy**: 2.2.6
|
| 127 |
+
- **SciPy**: 1.15.3
|
| 128 |
+
- **QuTiP**: 5.2.3 (optional; may use for exact diagonalisation)
|
| 129 |
+
- Single machine. Peak memory ≈ 64 GB. Hilbert-space dimension $2^{16} = 65536$. Use an efficient implementation that avoids materializing full dense effective-Hamiltonian matrices unless your runtime can support it.
|
| 130 |
+
|
| 131 |
+
---
|
| 132 |
+
|
| 133 |
+
## 7. Evaluation Criteria
|
| 134 |
+
|
| 135 |
+
Use imaginary time evolution with $\Delta t = 0.0002$ and $K = 50000$.
|
| 136 |
+
|
| 137 |
+
| Quantity | Metric | Tolerance |
|
| 138 |
+
|---|---|---|
|
| 139 |
+
| Critical state $\psi_c$ | State infidelity $1 - F$, where $F = \lvert\langle\psi_c^{\text{ref}} \mid \psi_c^{\text{agent}}\rangle\rvert^2$ | $10^{-4}$ |
|
| 140 |
+
| Probabilities $p(\tilde{s})$ | Max absolute error over all 65536 outcomes | $10^{-2}$ |
|
| 141 |
+
| RDM $\rho_1$ | Max element-wise absolute error over all 65536 outcomes | $10^{-2}$ |
|
| 142 |
+
|
| 143 |
+
**Pass condition:** all three criteria are satisfied simultaneously.
|
| 144 |
+
|
| 145 |
+
---
|
| 146 |
+
|
| 147 |
+
## 8. Notes on Reproducibility
|
| 148 |
+
|
| 149 |
+
- The computation is fully deterministic; no random seed is needed.
|
| 150 |
+
- All $2^{16} = 65536$ measurement outcomes are computed in parallel (no stochastic sampling).
|
| 151 |
+
- The golden reference uses imaginary time evolution with $\Delta t = 0.0002$, $K = 50000$. Agents using ITE with the recommended parameters or exact diagonalisation should meet the tolerances.
|
tasks/computing_math/mp_checkpoint_consolidation_v2/base/input/task_instructions.md
CHANGED
|
@@ -25,6 +25,5 @@ Your job:
|
|
| 25 |
|
| 26 |
Rules:
|
| 27 |
- Treat `/media/user/data/agenthle/machine_learning/mp_checkpoint_consolidation_v2/base/input` as read-only.
|
| 28 |
-
- Do not rely on evaluator-only files under `reference/`, `output_test_pos/`, or `output_test_neg/`.
|
| 29 |
- You may self-check by loading the staged reference model and comparing logits on `input/reference_output/input_ids.pt`.
|
| 30 |
- If you need a task-local Python environment, you may run `uv sync --frozen --project /media/user/data/agenthle/machine_learning/mp_checkpoint_consolidation_v2/base/input/runtime_env`.
|
|
|
|
| 25 |
|
| 26 |
Rules:
|
| 27 |
- Treat `/media/user/data/agenthle/machine_learning/mp_checkpoint_consolidation_v2/base/input` as read-only.
|
|
|
|
| 28 |
- You may self-check by loading the staged reference model and comparing logits on `input/reference_output/input_ids.pt`.
|
| 29 |
- If you need a task-local Python environment, you may run `uv sync --frozen --project /media/user/data/agenthle/machine_learning/mp_checkpoint_consolidation_v2/base/input/runtime_env`.
|
tasks/computing_math/mp_checkpoint_consolidation_v2/variant_2/input/task_instructions.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are working on a Linux checkpoint-consolidation task.
|
| 2 |
+
|
| 3 |
+
Task directory:
|
| 4 |
+
- `/media/user/data/agenthle/machine_learning/mp_checkpoint_consolidation_v2/variant_2`
|
| 5 |
+
|
| 6 |
+
Visible inputs:
|
| 7 |
+
- Raw checkpoint shards: `/media/user/data/agenthle/machine_learning/mp_checkpoint_consolidation_v2/variant_2/input/checkpoints`
|
| 8 |
+
- Framework source: `/media/user/data/agenthle/machine_learning/mp_checkpoint_consolidation_v2/variant_2/input/framework`
|
| 9 |
+
- Reference model config: `/media/user/data/agenthle/machine_learning/mp_checkpoint_consolidation_v2/variant_2/input/reference_model/config.json`
|
| 10 |
+
- Reference model code: `/media/user/data/agenthle/machine_learning/mp_checkpoint_consolidation_v2/variant_2/input/reference_model/model.py`
|
| 11 |
+
- Self-check inputs: `/media/user/data/agenthle/machine_learning/mp_checkpoint_consolidation_v2/variant_2/input/reference_output/input_ids.pt`
|
| 12 |
+
- Self-check target logits: `/media/user/data/agenthle/machine_learning/mp_checkpoint_consolidation_v2/variant_2/input/reference_output/logits.pt`
|
| 13 |
+
- Expected checkpoint key names: `/media/user/data/agenthle/machine_learning/mp_checkpoint_consolidation_v2/variant_2/input/reference_output/expected_keys.json`
|
| 14 |
+
- Optional task-local runtime manifest: `/media/user/data/agenthle/machine_learning/mp_checkpoint_consolidation_v2/variant_2/input/runtime_env/pyproject.toml` and `/media/user/data/agenthle/machine_learning/mp_checkpoint_consolidation_v2/variant_2/input/runtime_env/uv.lock`
|
| 15 |
+
|
| 16 |
+
Variant facts:
|
| 17 |
+
- Variant name: `variant_2`
|
| 18 |
+
- Visible shard count: `32`
|
| 19 |
+
- Parallel layout described by the submission: `4-way Tensor Parallel x 4-way Pipeline Parallel x 2-way Expert Parallel`
|
| 20 |
+
|
| 21 |
+
Your job:
|
| 22 |
+
1. Inspect the staged framework code and shard filenames to infer the sharding and serialization rules.
|
| 23 |
+
2. Reconstruct a single-device checkpoint compatible with the staged reference model.
|
| 24 |
+
3. Save exactly one file at `/media/user/data/agenthle/machine_learning/mp_checkpoint_consolidation_v2/variant_2/output/model.safetensors`.
|
| 25 |
+
|
| 26 |
+
Rules:
|
| 27 |
+
- Treat `/media/user/data/agenthle/machine_learning/mp_checkpoint_consolidation_v2/variant_2/input` as read-only.
|
| 28 |
+
- You may self-check by loading the staged reference model and comparing logits on `input/reference_output/input_ids.pt`.
|
| 29 |
+
- If you need a task-local Python environment, you may run `uv sync --frozen --project /media/user/data/agenthle/machine_learning/mp_checkpoint_consolidation_v2/variant_2/input/runtime_env`.
|
tasks/education_info/marc_remediation_folio_overlay/base/input/TASK_PROMPT.md
CHANGED
|
@@ -8,13 +8,7 @@ Implement `scripts/remediate_catalog.py` so it can run on any case directory wit
|
|
| 8 |
python scripts/remediate_catalog.py --case-dir input/public_case --output-dir outputs/public_case
|
| 9 |
```
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
```bash
|
| 14 |
-
python scripts/remediate_catalog.py --case-dir <hidden_case_dir> --output-dir <temporary_output_dir>
|
| 15 |
-
```
|
| 16 |
-
|
| 17 |
-
Each hidden case directory has the same file layout and column schema as `input/public_case/`: `legacy_records.xml`, `legacy_records.mrk`, `folio_instances.csv`, `authority_map.csv`, `location_map.csv`, and `cataloging_policy.md`. Your implementation must derive all behavior from those files and from the rules below, not from public record identifiers or public output values. Hidden cases may change the number of records, the create/update/suppress mix, the print-vs-online carrier mix, and the authority substitutions, but they do not introduce new input file types or undocumented rule families. The visible public case is deliberately larger than the hidden cases so you can test generalization across many examples before the evaluator runs the smaller hidden anti-hardcoding checks.
|
| 18 |
|
| 19 |
The workflow should reflect a professional MarcEdit + FOLIO Data Import remediation pass:
|
| 20 |
|
|
@@ -34,6 +28,3 @@ Required outputs:
|
|
| 34 |
- `qa_report.json`: machine-readable counts for records received, active records, duplicate suppressions, create/update actions, RDA conversions, authority replacements, and holdings/items emitted.
|
| 35 |
- `remediation_summary.md`: short cataloging handoff memo listing decisions, unresolved assumptions, and FOLIO profile names.
|
| 36 |
|
| 37 |
-
Evaluation is deterministic. The grader checks your visible outputs against reference files and reruns the same CLI on hidden synthetic batches bundled only with the evaluator. Do not hard-code public record IDs or output values; hidden cases use the same schema with different records and match conditions. Hidden cases are a small 10-point anti-hardcoding check, not a hard conjunctive pass/fail gate.
|
| 38 |
-
|
| 39 |
-
Hidden-case fairness contract: every rule needed for hidden cases is present in the visible materials. In particular, `cataloging_policy.md` defines the duplicate survivor rule, FOLIO match precedence, print-vs-online RDA 336/337/338 values, authority-map behavior, and 949 holdings/item mapping. If a hidden record is online, use the same online carrier logic documented for the visible case; if a hidden record is a duplicate, use the same completeness ranking documented for the visible case.
|
|
|
|
| 8 |
python scripts/remediate_catalog.py --case-dir input/public_case --output-dir outputs/public_case
|
| 9 |
```
|
| 10 |
|
| 11 |
+
Implement all behavior from the supplied case files and documented cataloging rules; do not hard-code record IDs or output values.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
The workflow should reflect a professional MarcEdit + FOLIO Data Import remediation pass:
|
| 14 |
|
|
|
|
| 28 |
- `qa_report.json`: machine-readable counts for records received, active records, duplicate suppressions, create/update actions, RDA conversions, authority replacements, and holdings/items emitted.
|
| 29 |
- `remediation_summary.md`: short cataloging handoff memo listing decisions, unresolved assumptions, and FOLIO profile names.
|
| 30 |
|
|
|
|
|
|
|
|
|
tasks/education_info/marc_remediation_folio_overlay/base/input/starter_project/BUNDLE_MANIFEST.md
CHANGED
|
@@ -26,13 +26,13 @@ The visible development invocation is:
|
|
| 26 |
python scripts/remediate_catalog.py --case-dir input/public_case --output-dir outputs/public_case
|
| 27 |
```
|
| 28 |
|
| 29 |
-
|
| 30 |
|
| 31 |
```bash
|
| 32 |
-
python scripts/remediate_catalog.py --case-dir <
|
| 33 |
```
|
| 34 |
|
| 35 |
-
|
| 36 |
|
| 37 |
## Dependency Contract
|
| 38 |
The grading evaluator is Python 3.12 stdlib-only and network-free. Your CLI may use Python stdlib or common open-source MARC helpers if available, but no external service, live FOLIO tenant, MarcEdit binary, or MarcEdit GUI is required during grading. MarcEdit 7.7.x is freeware workflow context, not an executed runtime dependency. FOLIO Sunflower R1 2025 is free/open-source workflow context and expected professional terminology.
|
|
|
|
| 26 |
python scripts/remediate_catalog.py --case-dir input/public_case --output-dir outputs/public_case
|
| 27 |
```
|
| 28 |
|
| 29 |
+
Use the documented script interface for every supplied case directory:
|
| 30 |
|
| 31 |
```bash
|
| 32 |
+
python scripts/remediate_catalog.py --case-dir <case_dir> --output-dir <output_dir>
|
| 33 |
```
|
| 34 |
|
| 35 |
+
Derive behavior from the supplied file schemas and `cataloging_policy.md` rather than record-specific values.
|
| 36 |
|
| 37 |
## Dependency Contract
|
| 38 |
The grading evaluator is Python 3.12 stdlib-only and network-free. Your CLI may use Python stdlib or common open-source MARC helpers if available, but no external service, live FOLIO tenant, MarcEdit binary, or MarcEdit GUI is required during grading. MarcEdit 7.7.x is freeware workflow context, not an executed runtime dependency. FOLIO Sunflower R1 2025 is free/open-source workflow context and expected professional terminology.
|
tasks/education_info/marc_remediation_folio_overlay/base/input/starter_project/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
# Starter Project
|
| 2 |
|
| 3 |
-
Implement `scripts/remediate_catalog.py`. Use the visible inputs in `input/public_case/` and write outputs to `outputs/public_case/`.
|
|
|
|
| 1 |
# Starter Project
|
| 2 |
|
| 3 |
+
Implement `scripts/remediate_catalog.py`. Use the visible inputs in `input/public_case/` and write outputs to `outputs/public_case/`. Implement against the documented schema.
|
tasks/education_info/marc_remediation_folio_overlay/base/input/starter_project/TASK_PROMPT.md
CHANGED
|
@@ -8,13 +8,7 @@ Implement `scripts/remediate_catalog.py` so it can run on any case directory wit
|
|
| 8 |
python scripts/remediate_catalog.py --case-dir input/public_case --output-dir outputs/public_case
|
| 9 |
```
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
```bash
|
| 14 |
-
python scripts/remediate_catalog.py --case-dir <hidden_case_dir> --output-dir <temporary_output_dir>
|
| 15 |
-
```
|
| 16 |
-
|
| 17 |
-
Each hidden case directory has the same file layout and column schema as `input/public_case/`: `legacy_records.xml`, `legacy_records.mrk`, `folio_instances.csv`, `authority_map.csv`, `location_map.csv`, and `cataloging_policy.md`. Your implementation must derive all behavior from those files and from the rules below, not from public record identifiers or public output values. Hidden cases may change the number of records, the create/update/suppress mix, the print-vs-online carrier mix, and the authority substitutions, but they do not introduce new input file types or undocumented rule families. The visible public case is deliberately larger than the hidden cases so you can test generalization across many examples before the evaluator runs the smaller hidden anti-hardcoding checks.
|
| 18 |
|
| 19 |
The workflow should reflect a professional MarcEdit + FOLIO Data Import remediation pass:
|
| 20 |
|
|
@@ -34,6 +28,3 @@ Required outputs:
|
|
| 34 |
- `qa_report.json`: machine-readable counts for records received, active records, duplicate suppressions, create/update actions, RDA conversions, authority replacements, and holdings/items emitted.
|
| 35 |
- `remediation_summary.md`: short cataloging handoff memo listing decisions, unresolved assumptions, and FOLIO profile names.
|
| 36 |
|
| 37 |
-
Evaluation is deterministic. The grader checks your visible outputs against reference files and reruns the same CLI on hidden synthetic batches bundled only with the evaluator. Do not hard-code public record IDs or output values; hidden cases use the same schema with different records and match conditions. Hidden cases are a small 10-point anti-hardcoding check, not a hard conjunctive pass/fail gate.
|
| 38 |
-
|
| 39 |
-
Hidden-case fairness contract: every rule needed for hidden cases is present in the visible materials. In particular, `cataloging_policy.md` defines the duplicate survivor rule, FOLIO match precedence, print-vs-online RDA 336/337/338 values, authority-map behavior, and 949 holdings/item mapping. If a hidden record is online, use the same online carrier logic documented for the visible case; if a hidden record is a duplicate, use the same completeness ranking documented for the visible case.
|
|
|
|
| 8 |
python scripts/remediate_catalog.py --case-dir input/public_case --output-dir outputs/public_case
|
| 9 |
```
|
| 10 |
|
| 11 |
+
Implement all behavior from the supplied case files and documented cataloging rules; do not hard-code record IDs or output values.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
The workflow should reflect a professional MarcEdit + FOLIO Data Import remediation pass:
|
| 14 |
|
|
|
|
| 28 |
- `qa_report.json`: machine-readable counts for records received, active records, duplicate suppressions, create/update actions, RDA conversions, authority replacements, and holdings/items emitted.
|
| 29 |
- `remediation_summary.md`: short cataloging handoff memo listing decisions, unresolved assumptions, and FOLIO profile names.
|
| 30 |
|
|
|
|
|
|
|
|
|
tasks/education_info/marc_remediation_folio_overlay/base/input/starter_project/input/public_case/cataloging_policy.md
CHANGED
|
@@ -11,4 +11,4 @@ Apply these rules to every visible and hidden batch.
|
|
| 11 |
|
| 12 |
## Hidden-case rule coverage
|
| 13 |
|
| 14 |
-
|
|
|
|
| 11 |
|
| 12 |
## Hidden-case rule coverage
|
| 13 |
|
| 14 |
+
Do not special-case record IDs. Apply the documented match precedence, duplicate survivor ranking, RDA carrier mapping, authority replacement, and 949 holdings/item mapping uniformly to every case directory passed through `--case-dir`.
|
tasks/education_info/marc_remediation_folio_overlay/base/input/starter_project/scripts/remediate_catalog.py
CHANGED
|
@@ -12,7 +12,7 @@ def parse_args():
|
|
| 12 |
help=(
|
| 13 |
"Directory containing legacy_records.xml, legacy_records.mrk, "
|
| 14 |
"folio_instances.csv, authority_map.csv, location_map.csv, and "
|
| 15 |
-
"cataloging_policy.md.
|
| 16 |
"with the same schema through this argument."
|
| 17 |
),
|
| 18 |
)
|
|
|
|
| 12 |
help=(
|
| 13 |
"Directory containing legacy_records.xml, legacy_records.mrk, "
|
| 14 |
"folio_instances.csv, authority_map.csv, location_map.csv, and "
|
| 15 |
+
"cataloging_policy.md. Process each supplied case directory "
|
| 16 |
"with the same schema through this argument."
|
| 17 |
),
|
| 18 |
)
|
tasks/education_info/marc_remediation_folio_overlay/base/input/task_spec.md
CHANGED
|
@@ -35,5 +35,4 @@ Leave the completed project at:
|
|
| 35 |
output/submission/
|
| 36 |
```
|
| 37 |
|
| 38 |
-
|
| 39 |
-
Hidden cases and reference outputs are not available during solve time.
|
|
|
|
| 35 |
output/submission/
|
| 36 |
```
|
| 37 |
|
| 38 |
+
Implement the CLI from the supplied case files and documented cataloging rules.
|
|
|
tasks/education_info/moodle_gradebook_closeout_reconciliation/base/input/TASK_PROMPT.md
CHANGED
|
@@ -66,8 +66,7 @@ Submit these files:
|
|
| 66 |
|
| 67 |
- The backup is a zip-format `.mbz` file. You may inspect it directly with the provided helper script or any standard archive tooling.
|
| 68 |
- Do not alter the immutable raw student, item, or submission data inside the backup. Only the benchmark-designated editable files should change.
|
| 69 |
-
- Use `starter_project/tools/rebuild_exports.py` after you repair the backup.
|
| 70 |
-
- `visible_cases.csv` shows only a subset of the edge cases. Hidden cases stay within the same rule families.
|
| 71 |
- All student names, SIS identifiers, and records in the bundle are synthetic benchmark artifacts, not real student data.
|
| 72 |
- The expected `OneRoster 1.2` output files are exactly:
|
| 73 |
- `users.csv`
|
|
|
|
| 66 |
|
| 67 |
- The backup is a zip-format `.mbz` file. You may inspect it directly with the provided helper script or any standard archive tooling.
|
| 68 |
- Do not alter the immutable raw student, item, or submission data inside the backup. Only the benchmark-designated editable files should change.
|
| 69 |
+
- Use `starter_project/tools/rebuild_exports.py` after you repair the backup.
|
|
|
|
| 70 |
- All student names, SIS identifiers, and records in the bundle are synthetic benchmark artifacts, not real student data.
|
| 71 |
- The expected `OneRoster 1.2` output files are exactly:
|
| 72 |
- `users.csv`
|
tasks/education_info/moodle_gradebook_closeout_reconciliation/base/input/bundle_lib.py
CHANGED
|
@@ -20,7 +20,7 @@ COURSE_TITLE = "Applied Statistics for Public Policy"
|
|
| 20 |
COURSE_SHORTNAME = "MATHSTAT203-SP26"
|
| 21 |
SECTIONS = ["SEC-A", "SEC-B", "SEC-C"]
|
| 22 |
RNG_SEED = 20260418
|
| 23 |
-
#
|
| 24 |
|
| 25 |
FIRST_NAMES = [
|
| 26 |
"Alex", "Avery", "Bailey", "Blair", "Cameron", "Casey", "Devon", "Drew",
|
|
|
|
| 20 |
COURSE_SHORTNAME = "MATHSTAT203-SP26"
|
| 21 |
SECTIONS = ["SEC-A", "SEC-B", "SEC-C"]
|
| 22 |
RNG_SEED = 20260418
|
| 23 |
+
# This helper implements the documented export contract.
|
| 24 |
|
| 25 |
FIRST_NAMES = [
|
| 26 |
"Alex", "Avery", "Bailey", "Blair", "Cameron", "Casey", "Devon", "Drew",
|
tasks/engineering/sumo_urban_am_peak_calibration/base/input/starter_project/README.md
CHANGED
|
@@ -36,6 +36,6 @@ See `../task_prompt.md` section "What you submit".
|
|
| 36 |
## Synthetic data disclaimer
|
| 37 |
|
| 38 |
All "observed" inputs (detector counts, Bluetooth travel times, ATSPM
|
| 39 |
-
signal timing, LEHD-seed OD) are
|
| 40 |
simulation. No real-world proprietary data is redistributed. See
|
| 41 |
`inputs/PROVENANCE.md`.
|
|
|
|
| 36 |
## Synthetic data disclaimer
|
| 37 |
|
| 38 |
All "observed" inputs (detector counts, Bluetooth travel times, ATSPM
|
| 39 |
+
signal timing, LEHD-seed OD) are synthesized from a fixed SUMO
|
| 40 |
simulation. No real-world proprietary data is redistributed. See
|
| 41 |
`inputs/PROVENANCE.md`.
|
tasks/engineering/sumo_urban_am_peak_calibration/base/input/task_prompt.md
CHANGED
|
@@ -27,10 +27,7 @@ Linux VM, no GPU**.
|
|
| 27 |
|
| 28 |
## Inputs you receive (`starter_project/`)
|
| 29 |
|
| 30 |
-
All "observed" data in this task is
|
| 31 |
-
simulation** (documented in `inputs/PROVENANCE.md`); treat the
|
| 32 |
-
observations as ground truth for calibration. No real-world proprietary
|
| 33 |
-
data is used.
|
| 34 |
|
| 35 |
```
|
| 36 |
starter_project/
|
|
@@ -162,7 +159,6 @@ The evaluator is deterministic. It:
|
|
| 162 |
`additionals/tlsLogic.add.xml` referenced by `<additional-files>`),
|
| 163 |
NOT the declarative report JSON
|
| 164 |
3. Re-runs your `sumocfg` headless on the declared `agent_seeds` from
|
| 165 |
-
`calibration_report.json` plus **3 evaluator-hidden seeds**
|
| 166 |
4. Computes all performance metrics from the evaluator's own outputs,
|
| 167 |
not from any files you submit
|
| 168 |
|
|
@@ -175,10 +171,7 @@ The evaluator is deterministic. It:
|
|
| 175 |
| 3 | TLS per-phase splits (from **loaded** file) | all within ±3 s each phase |
|
| 176 |
| 4 | TLS phase-state sequences (from **loaded** file) | cyclic-equivalent to ATSPM |
|
| 177 |
| 5 | AM-peak simulated trip total vs control | ±5% |
|
| 178 |
-
| 6 | Aggregate flow RMSE on 3 **hidden holdout** detectors | ≤ 12% of mean observed |
|
| 179 |
| 7 | Corridor TT RMSE on both corridors (from evaluator rerun) | ≤ 15% each |
|
| 180 |
-
| 8 | GEH < 5 on hidden holdout detectors | ≥ 85% |
|
| 181 |
-
| 9 | Evaluator rerun completes without simulation errors across the declared `agent_seeds` plus 3 hidden seeds | 100% |
|
| 182 |
| 10 | Public-detector flow means in `calibration_report.json` reproduce from evaluator reruns over the declared `agent_seeds` | per-detector ±1% |
|
| 183 |
| 11 | Corridor TT in `calibration_report.json` reproducible from evaluator rerun | ±2% |
|
| 184 |
| 12 | `calibration_report.json` schema conformance: cardinalities plus runtime shape checks on sensitivity responses | all |
|
|
@@ -204,7 +197,6 @@ Empirical gold-vs-weakest gap: **7 gates**.
|
|
| 204 |
## Runtime expectations
|
| 205 |
|
| 206 |
- Single evaluator rerun (scoring one submission across the declared
|
| 207 |
-
agent seeds plus 3 hidden seeds, gate aggregation): **~8 s wall on 16 vCPU**.
|
| 208 |
- Full 4-baseline discrimination rebuild
|
| 209 |
(`generate_data.py` + `make_baselines.py` +
|
| 210 |
`evaluate.py × 4` + ZIP packaging via `rebuild_all.py`):
|
|
|
|
| 27 |
|
| 28 |
## Inputs you receive (`starter_project/`)
|
| 29 |
|
| 30 |
+
All "observed" data in this task is synthetic.
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
```
|
| 33 |
starter_project/
|
|
|
|
| 159 |
`additionals/tlsLogic.add.xml` referenced by `<additional-files>`),
|
| 160 |
NOT the declarative report JSON
|
| 161 |
3. Re-runs your `sumocfg` headless on the declared `agent_seeds` from
|
|
|
|
| 162 |
4. Computes all performance metrics from the evaluator's own outputs,
|
| 163 |
not from any files you submit
|
| 164 |
|
|
|
|
| 171 |
| 3 | TLS per-phase splits (from **loaded** file) | all within ±3 s each phase |
|
| 172 |
| 4 | TLS phase-state sequences (from **loaded** file) | cyclic-equivalent to ATSPM |
|
| 173 |
| 5 | AM-peak simulated trip total vs control | ±5% |
|
|
|
|
| 174 |
| 7 | Corridor TT RMSE on both corridors (from evaluator rerun) | ≤ 15% each |
|
|
|
|
|
|
|
| 175 |
| 10 | Public-detector flow means in `calibration_report.json` reproduce from evaluator reruns over the declared `agent_seeds` | per-detector ±1% |
|
| 176 |
| 11 | Corridor TT in `calibration_report.json` reproducible from evaluator rerun | ±2% |
|
| 177 |
| 12 | `calibration_report.json` schema conformance: cardinalities plus runtime shape checks on sensitivity responses | all |
|
|
|
|
| 197 |
## Runtime expectations
|
| 198 |
|
| 199 |
- Single evaluator rerun (scoring one submission across the declared
|
|
|
|
| 200 |
- Full 4-baseline discrimination rebuild
|
| 201 |
(`generate_data.py` + `make_baselines.py` +
|
| 202 |
`evaluate.py × 4` + ZIP packaging via `rebuild_all.py`):
|
tasks/health_medicine/causal_ihdp_ite_estimation_6a_v1/base/input/feature_schema.json
CHANGED
|
@@ -76,7 +76,7 @@
|
|
| 76 |
],
|
| 77 |
"notes": [
|
| 78 |
"Hidden official test never enters the agent filesystem.",
|
| 79 |
-
"dummy_test/test.csv
|
| 80 |
"ite_hat must equal mu1_hat - mu0_hat for every row.",
|
| 81 |
"The GANITE paper is the task context; reproducing GANITE itself is not required."
|
| 82 |
],
|
|
|
|
| 76 |
],
|
| 77 |
"notes": [
|
| 78 |
"Hidden official test never enters the agent filesystem.",
|
| 79 |
+
"dummy_test/test.csv demonstrates the test schema, row count, and (replication, unit_id) order without supplying target feature values.",
|
| 80 |
"ite_hat must equal mu1_hat - mu0_hat for every row.",
|
| 81 |
"The GANITE paper is the task context; reproducing GANITE itself is not required."
|
| 82 |
],
|
tasks/health_medicine/flusight_offline_hosp_forecast_2024_12_14/base/input/TASK_INSTRUCTIONS.md
CHANGED
|
@@ -49,5 +49,4 @@ Secondary tie-breakers:
|
|
| 49 |
## Notes
|
| 50 |
|
| 51 |
- This is a simplified Agent-HLE adaptation of FluSight: **no full quantile ladder is required**.
|
| 52 |
-
- The hidden evaluator uses finalized future values for the four target weeks.
|
| 53 |
- The historical snapshot intentionally reflects the data available **as of** the reference date, not later backfilled revisions.
|
|
|
|
| 49 |
## Notes
|
| 50 |
|
| 51 |
- This is a simplified Agent-HLE adaptation of FluSight: **no full quantile ladder is required**.
|
|
|
|
| 52 |
- The historical snapshot intentionally reflects the data available **as of** the reference date, not later backfilled revisions.
|
tasks/health_medicine/simglucose_safe_basal_control_instance_1/base/input/public/submission_format.md
CHANGED
|
@@ -33,4 +33,4 @@ The evaluator creates a **fresh controller instance per episode**.
|
|
| 33 |
- `report.md`
|
| 34 |
- `training_code/*`
|
| 35 |
|
| 36 |
-
|
|
|
|
| 33 |
- `report.md`
|
| 34 |
- `training_code/*`
|
| 35 |
|
| 36 |
+
No extra packages are available beyond the pinned runtime. Any extra code needed by `controller.py` should be vendored into the submission directory or otherwise available in the pinned environment.
|
tasks/health_medicine/simglucose_safe_basal_control_instance_1/base/input/public/task.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
# Task
|
| 2 |
|
| 3 |
-
Implement `controller.py`
|
| 4 |
|
| 5 |
This task is meant to represent **preclinical in silico controller prototyping and validation** for closed-loop diabetes-control R&D.
|
| 6 |
|
|
|
|
| 1 |
# Task
|
| 2 |
|
| 3 |
+
Implement `controller.py` with `build_controller()` returning a controller that safely regulates glucose in SimGlucose.
|
| 4 |
|
| 5 |
This task is meant to represent **preclinical in silico controller prototyping and validation** for closed-loop diabetes-control R&D.
|
| 6 |
|
tasks/health_medicine/simglucose_safe_basal_control_instance_1/base/input/public/wrapper_spec.md
CHANGED
|
@@ -25,7 +25,3 @@ The controller returns a single scalar basal command in **U/min**.
|
|
| 25 |
- no meal announcement is exposed
|
| 26 |
- no patient identity is exposed
|
| 27 |
- no raw BG is exposed to the controller
|
| 28 |
-
|
| 29 |
-
## Evaluator-only information
|
| 30 |
-
|
| 31 |
-
The evaluator may still access native runtime signals such as `bg`, `time`, `meal`, or `patient_name` for scoring and auditing. Those fields are not available to the controller.
|
|
|
|
| 25 |
- no meal announcement is exposed
|
| 26 |
- no patient identity is exposed
|
| 27 |
- no raw BG is exposed to the controller
|
|
|
|
|
|
|
|
|
|
|
|
tasks/life_sciences/spatial_transcriptomics_spatial_domain_identification/base/input/README.md
CHANGED
|
@@ -8,4 +8,4 @@ Visible directory structure:
|
|
| 8 |
- `runtime_env/` — agent-facing `uv` manifest for Scanpy / Squidpy tooling
|
| 9 |
- `task_prompt.md` — operator-facing requirements
|
| 10 |
|
| 11 |
-
|
|
|
|
| 8 |
- `runtime_env/` — agent-facing `uv` manifest for Scanpy / Squidpy tooling
|
| 9 |
- `task_prompt.md` — operator-facing requirements
|
| 10 |
|
| 11 |
+
Use only the supplied matrices and metadata.
|
tasks/physical_sciences/adapt_vqe_molecular_energy/base/input/problem_spec.md
CHANGED
|
@@ -123,7 +123,7 @@ Write `results.json` with this structure:
|
|
| 123 |
}
|
| 124 |
```
|
| 125 |
|
| 126 |
-
|
| 127 |
|
| 128 |
## Constraints
|
| 129 |
|
|
|
|
| 123 |
}
|
| 124 |
```
|
| 125 |
|
| 126 |
+
Keep the result schema limited to the documented fields.
|
| 127 |
|
| 128 |
## Constraints
|
| 129 |
|
tasks/physical_sciences/climate_prediction/base/input/task_prompt.md
CHANGED
|
@@ -25,4 +25,4 @@ Build an end-to-end climate-emulation pipeline from the staged CMIP6-derived Zar
|
|
| 25 |
|
| 26 |
## Important Note
|
| 27 |
|
| 28 |
-
The staged visible `data.zarr` intentionally masks the held-out `ssp245` test-window target labels (`tas`, `pr`) as `NaN`. Use the training split to learn a predictor;
|
|
|
|
| 25 |
|
| 26 |
## Important Note
|
| 27 |
|
| 28 |
+
The staged visible `data.zarr` intentionally masks the held-out `ssp245` test-window target labels (`tas`, `pr`) as `NaN`. Use the training split to learn a predictor; the test-window target labels are not supplied.
|
tasks/transport_safety/abm_hangzhou_metro/base/input/task_prompt.md
CHANGED
|
@@ -45,7 +45,7 @@ All time columns (`start_time`, `end_time_simulate`, `end_time_real`, `duration_
|
|
| 45 |
must be **integers** (minutes). Round to the nearest minute if your simulation produces fractional values.
|
| 46 |
|
| 47 |
The benchmark expects broad coverage of the visible AFC records. A solver that simply copies the observed `end_time` from
|
| 48 |
-
`afc_hangzhou.csv` into `end_time_simulate`
|
| 49 |
|
| 50 |
`validation_report.txt` should contain these summary lines, one per line:
|
| 51 |
|
|
|
|
| 45 |
must be **integers** (minutes). Round to the nearest minute if your simulation produces fractional values.
|
| 46 |
|
| 47 |
The benchmark expects broad coverage of the visible AFC records. A solver that simply copies the observed `end_time` from
|
| 48 |
+
`afc_hangzhou.csv` into `end_time_simulate` is invalid even if the visible correlation looks perfect.
|
| 49 |
|
| 50 |
`validation_report.txt` should contain these summary lines, one per line:
|
| 51 |
|
tasks/visual_media/skeletal_animation_reproduction/skeletal_animation_reproduction_singing_anime_character/input/task_brief.md
CHANGED
|
@@ -13,7 +13,6 @@ Required submission:
|
|
| 13 |
|
| 14 |
Constraints:
|
| 15 |
- Focus on body motion only. Face and lip sync are not evaluated in v1.
|
| 16 |
-
-
|
| 17 |
-
- Evaluation will also replay your `final.blend` in a canonical setup and compare that replay to your submitted preview.
|
| 18 |
- Your Blender file must contain the actual rig and animation that produce the submitted preview.
|
| 19 |
-
- The
|
|
|
|
| 13 |
|
| 14 |
Constraints:
|
| 15 |
- Focus on body motion only. Face and lip sync are not evaluated in v1.
|
| 16 |
+
- The submitted `preview.mp4` and the animation replayed from `final.blend` must both reproduce the supplied body motion.
|
|
|
|
| 17 |
- Your Blender file must contain the actual rig and animation that produce the submitted preview.
|
| 18 |
+
- The watermark in the supplied reference video is not part of the target body motion.
|
tasks/visual_media/skeletal_animation_reproduction/skeletal_animation_reproduction_white_cyborg_idle/input/task_brief.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Reproduce the body motion from the provided reference video using the supplied white cyborg mesh.
|
| 2 |
+
|
| 3 |
+
Required submission:
|
| 4 |
+
- Save your Blender scene as output/submission/final.blend
|
| 5 |
+
- Render a matching preview as output/submission/preview.mp4
|
| 6 |
+
|
| 7 |
+
Ensure both the rendered preview and the replayed Blender scene reproduce the supplied reference motion.
|
tasks/visual_media/skeletal_animation_reproduction/skeletal_animation_reproduction_white_cyborg_run/input/task_brief.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Reproduce the body motion from the provided reference video using the supplied white cyborg mesh.
|
| 2 |
+
|
| 3 |
+
Required submission:
|
| 4 |
+
- Save your Blender scene as output/submission/final.blend
|
| 5 |
+
- Render a matching preview as output/submission/preview.mp4
|
| 6 |
+
|
| 7 |
+
Ensure both the rendered preview and the replayed Blender scene reproduce the supplied reference motion.
|
tasks/visual_media/skeletal_animation_reproduction/skeletal_animation_reproduction_white_cyborg_walk/input/task_brief.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Reproduce the body motion from the provided reference video using the supplied white cyborg mesh.
|
| 2 |
+
|
| 3 |
+
Required submission:
|
| 4 |
+
- Save your Blender scene as output/submission/final.blend
|
| 5 |
+
- Render a matching preview as output/submission/preview.mp4
|
| 6 |
+
|
| 7 |
+
Ensure both the rendered preview and the replayed Blender scene reproduce the supplied reference motion.
|
tasks/visual_media/uv_reproduction/uv_reproduction_samurai/input/task_brief.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Samurai UV Reproduction Task
|
| 2 |
+
|
| 3 |
+
Use Blender to reproduce the target UV configuration for the provided whole-object Samurai mesh.
|
| 4 |
+
|
| 5 |
+
Official input:
|
| 6 |
+
- Read the source model from `/input/samurai.obj`
|
| 7 |
+
- Use `/input/samurai.mtl` if the OBJ import expects it
|
| 8 |
+
- Use the reference bundle under `/input/reference_images` to understand the target UV direction
|
| 9 |
+
|
| 10 |
+
Required submission:
|
| 11 |
+
- Export a mesh with UVs as `/output/submission/samurai.obj`
|
| 12 |
+
|
| 13 |
+
Optional submission:
|
| 14 |
+
- `/output/submission/final.blend`
|
| 15 |
+
|
| 16 |
+
Submission rules:
|
| 17 |
+
- Do not submit screenshots, UV layout images, checker images, or copied reference pictures as your answer
|
| 18 |
+
- The submitted mesh is the authoritative deliverable; UV evidence may be regenerated in Blender
|
| 19 |
+
- Your submission must contain a UV layer on the mesh
|
| 20 |
+
|
| 21 |
+
Notes:
|
| 22 |
+
- The task is whole-object, not per-part
|
| 23 |
+
- The input mesh is the provided lowpoly whole-object Samurai asset, not the original highpoly source
|
| 24 |
+
- `/software` is reserved for provenance assets and may be empty in this package version
|