FrontierPhysics 式物理科研任务

在 Linux 容器里完成物理科研课题:Agent 自选方法,交出计入评分的结果、论文稿和代码,代码会在未见过的输入上重跑。

对应:FrontierPhysics格式:Harbor

索取样例
每题专家预估耗时
2–⁠8 小时
每题隐藏测试
17–⁠66全部通过才得 1 分;多数检查对每次重跑各做一遍
每题附带的对照解
16–⁠21各自写明应得的分数,由正式评分所用的 verifier 打分
每题质量评审细则
10–⁠13FrontierPhysics 式,门槛项 5–⁠8 条、加权项 5 条;不计入奖励
一条数据
一个 Harbor 任务,含 verifier、参考解、对照解和评审细则
方向与题型
物理学:凝聚态与材料、原子分子光学(AMO);题型为从给定模型出发的代码与模拟、数据文件分析
题面
英文,813–⁠1,125 词:研究课题、物理约定、输出文件格式和代码的重跑方式;有的题另附输入数据或设备手册
环境
装有输入的 Linux 容器,2–⁠4 核、4–⁠16 GB,时限 90–⁠180 分钟,可联网
Agent 交付物
结果文件(result.json 等,按题要求附不确定度)、paper.md 论文稿,以及 code/ 下生成全部结果的代码和供 verifier 重跑的入口 run.sh
评分
独立、断网的 verifier,只读取声明的输出:先在沙箱里用本题输入和未见过的输入重跑 run.sh,再用确定性的 pytest 隐藏测试对照真值评判提交的和重跑得到的结果;奖励二值;另附 FrontierPhysics 式评审细则

概览

每条数据是一道 FrontierPhysics 式的物理科研任务:Agent 在 Linux 容器里拿到一份研究课题说明,有的还附输入数据或设备手册;它要自己选方法、写代码、跑计算、做验证,最后交出三样东西:结果文件里计入评分的数值、一篇短论文,以及生成全部结果的代码,代码要带一个 verifier 能直接运行的入口。独立、断网的 verifier 先在干净的沙箱里重跑这份代码,既用本题的输入,也用同类但未见过的输入,再用确定性的隐藏测试对照真值评判提交的和重跑得到的结果,全部通过才得 1 分。

课题来自物理研究的日常工作:从哈密顿量出发定位量子相变,用原始扫描数据标定量子比特,在硬件约束下设计抗漂移的量子门。难点不在写代码,而在物理判断:选对模型和判据,知道哪些结果必须验证、误差从哪里来。题面只给课题、约定和交付格式,方法全由 Agent 自己决定,全程没有任何反馈。由于代码会在未见过的输入上重跑,每一处判断都必须由程序依据各组输入自身的数据做出。

难度与质量

  • 难度分档:每题由 kimi-k3.1-pro 在 Claude Code 中作答 8 次(max effort,可联网,资源和时限按题目设置),按答对次数分为三档:基础 6–⁠8 次,中等 3–⁠5 次,困难 0–⁠2 次。各档比例可按需定制。
  • 对照解检验评分:每题附 16–⁠21 份对照解,各自写明应得的结果,并由正式评分所用的 verifier 打分。换一种正确方法的得 1 分。只差一个专家步骤、把本该计算的东西按本题输入写死、照搬已发表的数值、编造结果或只给空白和常数的,都得 0 分,并且都在预先写明的测试上失败;数值正确但程序不能正常工作的,同样得 0 分。样例卡片里列出了每道题的对照解。
  • 参考解满分:每题附参考解,用 Harbor 的 oracle 运行即得 1 分,什么都不做得 0 分,可自行复核。
  • 代码会被重跑:verifier 只把交付的 code/ 复制进全新容器,以非特权用户身份断网运行其入口,CPU、内存和软件与 Agent 环境相同,时限按题面写明;既用本题的输入运行,也用同类但未见过的输入运行。用本题输入重跑的结果须与提交的数值一致;在未见过的输入上重新算出的结果,按各自的真值评判。
  • 防取巧:不做物理分析、只想拿到奖励的 Agent 得 0 分;手填的数值、只会打印预存数值的程序和攻击评分沙箱的做法,同样得 0 分。
  • 质量评审细则:每题另附 10–⁠13 条 FrontierPhysics 式评审细则。门槛项包括交付物齐全、数值确由代码算出、不篡改环境、不钻评分的空子,以及该题特有的物理要求;加权项评方法论证、验证与误差、论文质量和可复现性等。细则不计入奖励,可供评审 Agent 给论文稿和代码打质量分。

交付内容

tasks/frontierphysics/<task>/
├── instruction.md     # 题面:Agent 收到的唯一输入
├── task.toml          # 学科方向、专家预估耗时;资源、时限、网络设置
├── README.md          # 难点、参考解思路、验证方式与容差
├── environment/       # Agent 镜像:Dockerfile,以及输入数据或设备手册
├── solution/          # 参考解:solve.sh 写出结果、论文稿和带入口的代码
├── tests/             # verifier 镜像:Dockerfile、test.sh、重跑沙箱、未见过的输入、pytest 测试、隐藏真值和评审细则
└── authoring/         # 对照解及其预期结果和评分记录、容差标定、输入和真值的生成程序
README.md              # 运行说明
SHA256SUMS             # 全部文件的校验和

用 Harbor 运行

# 跑参考解,得 1 分
harbor run -p tasks/frontierphysics/<task> -a oracle

# 跑你的 Agent
harbor run -p tasks/frontierphysics/<task> -a <agent> -m <model>
  • 隔离评分:只有 task.toml 中声明的结果文件、论文稿和代码会进入由 tests/ 构建、不联网的全新容器;Agent 看不到隐藏测试、未见过的输入和真值,重跑的代码也读不到它们。
  • 评判物理结果:测试对照真值检查每个计入评分的数值,包括提交的和重跑得到的,容差按该量的物理含义设定。不比对代码写法,但代码必须能运行并复现结果。
  • 自己复核评分器:把任意一份对照解换进 solution/,用 oracle 运行,即可复现它的得分和失败的测试。
  • 可复现:基础镜像按 digest 固定,依赖锁定版本,重跑时使用与 Agent 相同的锁定软件包。

样例

2 道样题来自两个方向,各在一个难度档:凝聚态理论的代码与模拟(中等),原子分子光学的数据文件分析(基础)。每张卡片给出输入、对照解的评分结果和 Agent 收到的题面原文。

样题 方向 题型 专家预估 隐藏测试 对照解 难度档 kimi-k3.1-pro 答对
1 凝聚态与材料 代码与模拟 8 小时 17 18 中等 3 / 8
2 原子分子光学(AMO) 数据文件分析 2 小时 66 16 基础 8 / 8

kimi-k3.1-pro 在 Claude Code 中以 max effort 作答,每题 8 次。

样例 1 / 2

各向异性阻挫自旋链:两处二聚化临界点和一个临界指数

  • 物理科学
  • 凝聚态与材料
  • 量子磁性与多体谱
  • 代码与模拟
  • 专家预估 8 小时
  • 难点
  • 只给哈密顿量,没有输入数据
  • 定位相变的判据自己选
  • 外推到热力学极限
  • 不确定度要含外推的系统误差
  • 在未见过的各向异性参数上重跑

一条自旋-1/2 链:最近邻交换带各向异性 Δ,次近邻交换各向同性。在各向同性点 Δ=1 两侧,次近邻与最近邻耦合之比 J2/J1 超过临界值后,基态自发二聚化。Agent 要从哈密顿量出发,定出一个易平面各向异性 ΔA 和一个易轴各向异性 ΔB 处的临界耦合 J2c/J1,再求 ΔB 临界点上纵向自旋关联交错部分的衰减指数 ηz;三个数都取热力学极限,达到题面要求的精度并附不确定度,报告的情形是 ΔA=0.55、ΔB=1.35。最后写成短论文,并把分析交付为一个程序:给定范围内的任意一对参数,它都能重新算出这三个数;verifier 会在报告的这对参数和范围内未见过的各向异性参数上重跑它。

难在哪里

需要一维量子磁体有限尺寸数值研究的专业功底:选对定位相变的判据,在算得动的尺寸上把精度做够,再外推到热力学极限,并让不确定度包含外推带来的系统误差;而且这一切都要写进一个能在时限内无人值守运行、换了各向异性参数也照样成立的程序。题面只给哈密顿量,方法由 Agent 自己选,全程没有任何反馈。

难度档
中等
kimi-k3.1-pro 答对
3 / 8
隐藏测试
17
Agent 容器
4 核 · 16 GB · 3 小时

输入

没有输入文件,一切从哈密顿量出发:

H=J1∑i(SixSi+1x+SiySi+1y+ΔSizSi+1z)
+J2∑i𝐒i·𝐒i+2

其中 J1=1,J2≥0,各向异性 Δ 只作用在最近邻键上。报告的情形是 ΔA=0.55、ΔB=1.35;程序须适用于 0.40–⁠0.80 内任意 ΔA 和 1.20–⁠1.50 内任意 ΔB。容器里预装 QuSpin、TeNPy 等精确对角化和张量网络的 Python 库,时限 3 小时,程序每次重跑限时 45 分钟。

对照解与评分结果

对照解 份数 得分 未通过的隐藏测试
换一种方法,达到题面要求的精度 4 1 —
只差一个专家步骤 5 0 6–⁠9 项
只针对报告的这对参数调过 1 0 2 项
方法正确但超出重跑时限 1 0 11 项
照搬已发表的数值 1 0 12 项
空白或常数 1 0 16 项
编造结果 1 0 15 项
数值正确但程序不能正常工作 3 0 4–⁠12 项
攻击评分沙箱 1 0 11 项

共 17 项隐藏测试;另附 12 条评审细则(门槛项 7 条、加权项 5 条),不计入奖励。

题面原文

instruction.md

We are studying a theoretical variant of the frustrated spin-1/2 XXZ chain in which only the nearest-neighbour bond is anisotropic and the next-nearest-neighbour exchange is isotropic:

H=∑i[J1(SixSi+1x+SiySi+1y+ΔSizSi+1z)+J2𝐒i·𝐒i+2],

where Siα=σiα/2 are spin-1/2 operators, J1=1 sets the unit of energy and J2≥0. On either side of the isotropic point Δ=1 the ground state becomes spontaneously dimerised once J2/J1 exceeds a critical value J2c(Δ), and we need these critical points as precise numbers, not as positions read off a phase-diagram sketch. We take one easy-plane anisotropy ΔA and one easy-axis anisotropy ΔB; the case we report is ΔA=0.55, ΔB=1.35.

(a) Determine J2c/J1 at Δ=ΔA in the thermodynamic limit, with its uncertainty.

(b) Determine J2c/J1 at Δ=ΔB in the thermodynamic limit, with its uncertainty.

(c) Exactly at the critical point of (b), the staggered part of the ground-state longitudinal spin correlations decays as a power law, ⟨S0zSrz⟩∝(−1)rr−ηz for large r. Determine the exponent ηz in the thermodynamic limit, with its uncertainty.

We need each J2c/J1 to within ±2×10−4 (absolute) and ηz to within ±0.02 of the exact thermodynamic-limit values. Each uncertainty is a one-standard-deviation estimate that includes the systematic error of reaching the thermodynamic limit; it must lie between 10−6 (no extrapolation from finite chains determines these numbers better) and the required precision, and the exact value must lie within three of your standard deviations of your result. There are no input files: everything follows from the Hamiltonian. Your analysis must work for any ΔA from 0.40 to 0.80 and any ΔB from 1.20 to 1.50, not only for 0.55 and 1.35.

Write the deliverables to /root/results/ (result.json and paper.md as regular files, not links):

  • /root/results/result.json: a single JSON object with six dimensionless numbers for ΔA=0.55, ΔB=1.35: "j2c_a" (J2c/J1 at ΔA), "j2c_a_err" (its uncertainty), "j2c_b" (J2c/J1 at ΔB), "j2c_b_err" (its uncertainty), "eta_z_b" (ηz at the critical point of (b)) and "eta_z_b_err" (its uncertainty).
  • /root/results/paper.md: a manuscript in Markdown of at least 300 words, with a section heading for each of the abstract, introduction, methods, results (with the finite-size data and how you reached the thermodynamic limit), validation, conclusions and references. It must state the three results with their uncertainties, agreeing with result.json to within the required precision.
  • /root/results/code/: all of your code, with the entry point run.sh described next.

We will re-run your analysis. bash /root/results/code/run.sh --delta-a <value> --delta-b <value> must recompute all six numbers from the Hamiltonian for the given pair (ΔA, ΔB), write them to /root/results/result.json with the keys and meaning above, and exit with status 0. After you finish, we copy only /root/results/code/ into an otherwise empty /root/results/ of a fresh container and run run.sh in /root/results/code/ as an unprivileged user with a fresh, empty home directory, offline, with the same software as your container (only its preinstalled packages), 4 CPUs and 16 GB of memory. Aim for at most 30 minutes per run: we stop a run, and count it as failed, after 45 minutes. With --delta-a 0.55 --delta-b 1.35 it must write result.json again with the numbers you submitted, so seed every random-number generator and let no result depend on timing. We also run run.sh, unchanged, for other pairs in the ranges above, and those results must meet the same precision and uncertainty requirements: compute everything from the two arguments and hard-code nothing that depends on them. Nothing outside /root/results/code/ is carried over: not /root/results/data or other folders in /root/results/, not caches, not files in /tmp or your home directory, and not packages you installed during the session. The run may write only inside /root/results/, /tmp, /var/tmp and $HOME, at most 4 GB in total. Like your container, that container sets OMP_NUM_THREADS, OPENBLAS_NUM_THREADS, MKL_NUM_THREADS and NUMBA_NUM_THREADS to 4 and PYTHONHASHSEED to 0; os.cpu_count() may report more cores than you get, so size worker pools by 4. paper.md is not regenerated. To check all of this before you finish, move your output files aside and run bash /root/results/code/run.sh --delta-a 0.55 --delta-b 1.35 from a fresh shell; it must regenerate result.json with the numbers you submit.

You have 10800 seconds to complete this task. Do not cheat by using online solutions or hints specific to this task.

样例 2 / 2

囚禁离子量子比特校准:从频率、拉比和拉姆齐扫描定出比特参数

  • 物理科学
  • 原子分子光学(AMO)
  • 囚禁离子量子比特校准
  • 数据文件分析
  • 专家预估 2 小时
  • 难点
  • 每个点只有亮态计数
  • 按二项统计给出不确定度
  • 几组扫描互相印证
  • 衰减规律由数据判定
  • 在未见过的其他轮次数据上重跑

一台单离子量子比特装置在夜间跑完一轮自动校准:固定脉冲的频率扫描、脉宽(拉比)扫描、拉姆齐扫描,以及亮、暗两种参考制备态的光子计数直方图。Agent 要据此定出绝对共振频率、共振拉比频率和拉姆齐相干时间 T2*,各附 1σ 统计不确定度;判断拉姆齐对比度按指数还是高斯规律衰减;算出两种参考制备态的读出保真度,并写成短论文。另报三项中间量,供对照原始扫描核查分析过程。分析过程要交付为一个程序:verifier 会在这一轮数据上重跑它,也会在这台装置其他夜间运行的数据上重跑;那些数据的器件参数未知,运行设置也不同。

难在哪里

需要囚禁离子量子比特日常校准的实战经验:为频率、拉比和拉姆齐三种扫描各写出合适的物理模型,按每个点计数的二项统计做拟合并给出不确定度,再让几组扫描的结果互相印证,而且每一项都要由程序依据该轮自身的数据来判定。题面只给数据、序列参数和约定,模型由 Agent 自己建,全程没有任何反馈。

难度档
基础
kimi-k3.1-pro 答对
8 / 8
隐藏测试
66
Agent 容器
2 核 · 4 GB · 1.5 小时

输入数据

序列参数日志一份(合成器频率设定、脉冲时长、计时约定和判亮规则);三组扫描逐点记录判为亮态的次数:频率扫描在 200 kHz 范围内取 101 个点、每点 40 次,脉宽扫描 0–⁠240 µs 共 121 个点、每点 80 次,拉姆齐扫描的自由演化时间 0–⁠2,400 µs 共 121 个点、每点 300 次;另有亮、暗两种参考制备态各 20,000 次的光子计数直方图。下图是其中的频率扫描和拉比扫描。

  1. 输入数据中的两组扫描

    固定 22.7 µs 脉冲的频率扫描(左)和脉宽扫描(右),误差棒为二项统计的 1σ

    固定 22.7 µs 脉冲的频率扫描(左)和脉宽扫描(右),误差棒为二项统计的 1σ

对照解与评分结果

对照解 份数 得分 未通过的隐藏测试
换一种正确的方法 2 1 —
领域里常用的通用做法 1 0 3 项
只差一个专家步骤 5 0 1–⁠15 项
按随题这一轮写死的选择 2 0 3–⁠9 项
空白、常数或照抄输入 1 0 53 项
编造结果 1 0 44 项
数值正确但程序不能正常工作 3 0 34–⁠51 项
攻击评分沙箱 1 0 51 项

共 66 项隐藏测试;另附 10 条评审细则(门槛项 5 条、加权项 5 条),不计入奖励。

题面原文

instruction.md

Our new single-ion qubit apparatus ran an automated calibration overnight, and we need today's qubit parameters from it. The qubit is the |0⟩↔|1⟩ microwave hyperfine transition of one trapped ion, driven by a single synthesizer at a fixed power that was not changed during the run. Every scan shot starts with optical pumping into |0⟩ (the reference shots are pumped into |1⟩ or |0⟩ and get no microwave pulse), and every shot ends with state-dependent fluorescence detection (|1⟩ bright, |0⟩ dark); the control system records a shot as bright when at least 3 photons are detected. The run comprised, back to back, a frequency scan with a fixed pulse, a pulse-duration (Rabi) scan, a Ramsey scan (two equal pulses separated by a free-evolution time), and photon-count histograms of reference preparations in |1⟩ and |0⟩. The sequence parameters (synthesizer settings, pulse durations, timing conventions, detection rule) are in /root/data/run_log.json. The scans are /root/data/frequency_scan.csv, /root/data/rabi_scan.csv and /root/data/ramsey_scan.csv (bright shots out of the shots taken at each point), and the histograms are in /root/data/reference_histograms.csv.

From these data, (a) determine the qubit resonance frequency, the resonant Rabi frequency and the Ramsey coherence time, each with its uncertainty, and decide which decay law the Ramsey contrast follows; (b) determine the readout fidelities of the two reference preparations; and (c) write the calibration up as a short manuscript that states your models and shows how the data support them; also report, in result.json, the intermediate quantities listed below.

All frequencies are cyclic, in Hz. f0_hz is the absolute synthesizer frequency at which the drive is resonant with the qubit. rabi_freq_hz is Ω/2π for a drive exactly on resonance at the power of the run, so that a resonant π pulse lasts 1/(2Ω/2π). t2star_us is the 1/e decay time T2*, in microseconds, of the Ramsey fringe contrast as a function of the free-evolution time T (from the end of the first pulse to the start of the second), and ramsey_envelope is the decay law of that contrast that the data support: "exponential", contrast ∝exp(−T/T2*), or "gaussian", contrast ∝exp[−(T/T2*)2]. p_bright_given_bright is the fraction of the shots of the |1⟩ reference preparation that were recorded bright, and p_dark_given_dark the fraction of the shots of the |0⟩ reference preparation that were recorded dark, both under the 3-photon rule. Each key ending in _err is the one-standard-deviation statistical uncertainty of the corresponding value, in the same unit. The intermediate quantities are frequency_scan_centre_hz, the line centre of the frequency scan (absolute synthesizer frequency); ramsey_fringe_frequency_hz, the frequency of the Ramsey fringes as a function of T; and rabi_oscillation_frequency_hz, the frequency at which the bright fraction oscillates in the pulse-duration scan at that scan's synthesizer setting.

Deliver three outputs; result.json and paper.md must be regular files, not links, also when run.sh writes result.json again. /root/results/result.json is a JSON object with the numeric keys f0_hz, f0_hz_err, rabi_freq_hz, rabi_freq_hz_err, frequency_scan_centre_hz, ramsey_fringe_frequency_hz, rabi_oscillation_frequency_hz (Hz), t2star_us, t2star_us_err (microseconds), p_bright_given_bright and p_dark_given_dark (fractions between 0 and 1), and the string key ramsey_envelope. /root/results/paper.md is the manuscript, in Markdown, at least 300 words long (and at most 500 kB), with a heading for each of its sections: abstract, introduction, methods, results, validation, conclusions and references. It names the decay law you adopted (exponential or Gaussian) and quotes f0, the Rabi frequency and T2* as they are in result.json, each with its uncertainty next to it and given at least to the precision of that uncertainty. /root/results/code/ holds the code that computes these results from the input files, with the entry point run.sh described next.

We will re-run your analysis. /root/results/code/ must contain all of your code and an entry point run.sh. After you finish, we copy only /root/results/code/ into an otherwise empty /root/results/ of a fresh container and run bash run.sh, without arguments, in /root/results/code/ as an unprivileged user with a fresh, empty home directory, offline, with the same software as your container (only its preinstalled packages), 2 CPUs and 4 GB of memory, and with the input files in /root/data/ read-only. It must write /root/results/result.json again, computed from those input files, and exit with status 0. Aim for a run time of at most 5 minutes: we stop the run, and count it as failed, after 10 minutes. We check the regenerated file in the same way as your submission, and its numbers must match the ones you submitted, so seed every random-number generator. We also run run.sh, unchanged, on other overnight runs of this apparatus in the same format, and those results must be correct too. Such runs come from other days, with different, unknown device parameters (resonance, drive strength and its noise, coherence and its decay law, preparation and readout), and they may use other run settings, all recorded in their run_log.json and scan files: the synthesizer setting of every scan (the Ramsey and pulse-duration scans may be taken on either side of resonance and at other detunings; the frequency-scan settings are the first column of frequency_scan.csv), the pulse durations, and the scan ranges, steps and numbers of shots (the columns of the scan files). So read everything from /root/data/ and hard-code nothing that comes from it; every reported quantity, the decay law included, must be determined from the run's own data. Nothing outside code/ is carried over: not other folders in /root/results/, not caches, not files in /tmp, and not packages you installed during the session. The run may write only inside /root/results/, /tmp, /var/tmp and $HOME, at most 4 GB in total. Like your container, that container sets OMP_NUM_THREADS=2 and PYTHONHASHSEED=0; os.cpu_count() may report more cores than you get, so size worker pools by 2. paper.md is not regenerated and must quote the numbers in the submitted result.json. To check all this before you finish, move your outputs aside and run bash /root/results/code/run.sh from a fresh shell; it must regenerate result.json with the numbers you submit.

You have 5400 seconds to complete this task. Do not cheat by using online solutions or hints specific to this task.

可定制

包括但不限于以下几项,其他需求都可以商量。

  • 方向与题型:可指定物理方向(如凝聚态、原子分子光学、量子信息、天体与宇宙学、流体、统计物理、光子学与成像、高能与核物理)和题型(理论建模、数值模拟、设计优化、实验数据反演与结果验证)。
  • 难度:对标模型、Agent 框架、effort 档位、作答次数,以及各难度档的比例。
  • 评分:只用确定性的隐藏测试,或再加评审 Agent 按细则评判论文稿和代码。
  • 运行条件:时限、CPU 和内存,以及 Agent 能否联网。
  • 模型运行记录:每次尝试的轨迹和 verifier 输出。
  • 数量和排期:题目数量、各方向占比和交付时间。

想提升模型的哪项能力?

来信告诉我们,我们会回复样例和规格说明。