name
stringlengths
50
51
instruction
stringlengths
2.07k
30k
description
stringlengths
77
129
keywords
listlengths
7
7
schema_version
stringclasses
1 value
config
unknown
metadata
unknown
files
listlengths
14
14
location
stringlengths
24
25
scicode-bench/scicode-verified__scicode-verified-11
# SciCode Problem 11: GADC_entanglement Consider sending a bipartite maximally entangled state where both parties are encoded by $m$-rail encoding through $m$ uses of generalized amplitude damping channel $\mathcal{A}_{\gamma_1,N_1}$ to receiver 1 and $m$ uses of another generalized amplitude damping channel $\mathcal...
Science problem converted from the SciCode-Verified corrected benchmark: GADC_entanglement.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-11", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: GADC_entanglement.", "authors": [ { "name": "Minyang Tian" }, { ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "11", "scicode_num_steps": 12, "problem_name": "GADC_entanglement" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-11
scicode-bench/scicode-verified__scicode-verified-12
# SciCode Problem 12: Schrodinger_DFT_with_SCF Write a script to solve for the charge density and total energy of the bound states of an atom described by the Schrodinger equation $(-\frac{\hbar^2}{2m}\nabla^2-\frac{Z e^2}{4\pi\varepsilon_0 r} + V_H(r))\psi(\vec{r})=E \psi(\vec{r})$ using a self-consistent field appro...
Science problem converted from the SciCode-Verified corrected benchmark: Schrodinger_DFT_with_SCF.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-12", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Schrodinger_DFT_with_SCF.", "authors": [ { "name": "Minyang Tian" }, ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "12", "scicode_num_steps": 14, "problem_name": "Schrodinger_DFT_with_SCF" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-12
scicode-bench/scicode-verified__scicode-verified-13
# SciCode Problem 13: Maxwell_Equation_Solver The goal of this module is to solve Maxwell equations numerically. Maxell equations can be solved in many ways and here we only present one method. We impose the 3 + 1 decomposition and the freely evolving fields are electric fields $E_i$ and magnetic vector poential $...
Science problem converted from the SciCode-Verified corrected benchmark: Maxwell_Equation_Solver.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-13", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Maxwell_Equation_Solver.", "authors": [ { "name": "Minyang Tian" }, ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "13", "scicode_num_steps": 15, "problem_name": "Maxwell_Equation_Solver" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-13
scicode-bench/scicode-verified__scicode-verified-14
# SciCode Problem 14: Brownian_motion_in_the_optical_tweezer Write a code to calculate the mean-square displacement at a given time point $t_0$ of an optically trapped microsphere in a gas with Mannella’s leapfrog method, by averaging Navg simulations. The simulation step-size should be smaller than $t_0/steps$. """ ...
Science problem converted from the SciCode-Verified corrected benchmark: Brownian_motion_in_the_optical_tweezer.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-14", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Brownian_motion_in_the_optical_tweezer.", "authors": [ { "name": "Minyang Tian"...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "14", "scicode_num_steps": 2, "problem_name": "Brownian_motion_in_the_optical_tweezer" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-14
scicode-bench/scicode-verified__scicode-verified-15
# SciCode Problem 15: Crank_Nicolson_for_time_dependent_Schrodinger Write a script to implement the Crank-Nicolson method on the 1D time-dependent Schrodinger equation of a free electron in an infinite potential well of dimension $L$ to solve for the wave function after a certain amount of time $T$. The starting wavef...
Science problem converted from the SciCode-Verified corrected benchmark: Crank_Nicolson_for_time_dependent_Schrodinger.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-15", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Crank_Nicolson_for_time_dependent_Schrodinger.", "authors": [ { "name": "Minyan...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "15", "scicode_num_steps": 2, "problem_name": "Crank_Nicolson_for_time_dependent_Schrodinger" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-15
scicode-bench/scicode-verified__scicode-verified-16
# SciCode Problem 16: Davidson_method Write a script to generate a symmetric matrix with increasing values (starting from 1 and increasing by 1) along its diagonal and then implement the Davidson's method for finding the first few lowest eigenvalues of this matrix. When generating the matrix, the user should be able t...
Science problem converted from the SciCode-Verified corrected benchmark: Davidson_method.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-16", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Davidson_method.", "authors": [ { "name": "Minyang Tian" }, { ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "16", "scicode_num_steps": 2, "problem_name": "Davidson_method" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-16
scicode-bench/scicode-verified__scicode-verified-17
# SciCode Problem 17: linear_tetrahedron_method Implement a density of states (DOS) integration using the linear tetrahedron method. The Brillouin zone is divided into sub-meshes, with each sub-mesh further subdivided into multiple tetrahedrons. For simplicity, consider just one tetrahedron. The DOS integration is per...
Science problem converted from the SciCode-Verified corrected benchmark: linear_tetrahedron_method.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-17", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: linear_tetrahedron_method.", "authors": [ { "name": "Minyang Tian" }, ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "17", "scicode_num_steps": 2, "problem_name": "linear_tetrahedron_method" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-17
scicode-bench/scicode-verified__scicode-verified-18
# SciCode Problem 18: NURBS Write a function evaluate two dimensional Non-uniform rational B-spline (NURBS) basis functions. """ Inputs: xi_1 : parameter coordinate at the first dof, float xi_2 : parameter coordinate at the second dof, float i_1 : 1-based index of the basis function to be evaluated at the first dof (...
Science problem converted from the SciCode-Verified corrected benchmark: NURBS.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-18", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: NURBS.", "authors": [ { "name": "Minyang Tian" }, { "name":...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "18", "scicode_num_steps": 2, "problem_name": "NURBS" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-18
scicode-bench/scicode-verified__scicode-verified-20
# SciCode Problem 20: phonon_angular_momentum Write a script to calculate phonon angular momentum according to the equation \begin{equation} {\cal L}_\alpha^\mathrm{ph} = \sum_{\mathbf{q},\nu} \left[ n_0(\omega_{\mathbf{q},\nu}) + \frac{1}{2} \right] l_{\mathbf{q},\nu}^\alpha ,\qquad \alpha = x, y, z \end{equation} Th...
Science problem converted from the SciCode-Verified corrected benchmark: phonon_angular_momentum.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-20", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: phonon_angular_momentum.", "authors": [ { "name": "Minyang Tian" }, ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "20", "scicode_num_steps": 2, "problem_name": "phonon_angular_momentum" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-20
scicode-bench/scicode-verified__scicode-verified-21
# SciCode Problem 21: Absorption_coefficient_for_alloy_GaAlAs Assume the following material parameters for this problem: \begin{array}{|l|l|} \hline \text{Parameter} & \text{Expression} \\ \hline \text{Bandgap (eV)} & 1.424 + 1.247x \text{ (} x < 0.45 \text{)} \\ \text{Effective electron mass } m_e & (0.0637 + 0.083...
Science problem converted from the SciCode-Verified corrected benchmark: Absorption_coefficient_for_alloy_GaAlAs.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-21", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Absorption_coefficient_for_alloy_GaAlAs.", "authors": [ { "name": "Minyang Tian...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "21", "scicode_num_steps": 3, "problem_name": "Absorption_coefficient_for_alloy_GaAlAs" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-21
scicode-bench/scicode-verified__scicode-verified-22
# SciCode Problem 22: Beam_translation_reexpansion Suppose a given optical beam $\psi(\mathbf{r})$ can be expanded into vector spherical harmonics as $$ \psi(\mathbf{r})=\sum_{n=0}^{\infty} \sum_{m=-n}^nB_n^m R_n^m(\mathbf{r}), $$ where $R_n^m(r) = {j_n}(kr)Y_n^m(\theta ,\varphi )$ with spherical Bessel function of th...
Science problem converted from the SciCode-Verified corrected benchmark: Beam_translation_reexpansion.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-22", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Beam_translation_reexpansion.", "authors": [ { "name": "Minyang Tian" }, ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "22", "scicode_num_steps": 3, "problem_name": "Beam_translation_reexpansion" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-22
scicode-bench/scicode-verified__scicode-verified-23
# SciCode Problem 23: Blahut_Arimoto Implement a KL-divergence function and a function that calculates the mutual information between a given input random variable and the corresponding output random variable of a given classical channel. Then numerically calculate the channel capacity of the channel using the Blahut-...
Science problem converted from the SciCode-Verified corrected benchmark: Blahut_Arimoto.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-23", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Blahut_Arimoto.", "authors": [ { "name": "Minyang Tian" }, { ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "23", "scicode_num_steps": 3, "problem_name": "Blahut_Arimoto" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-23
scicode-bench/scicode-verified__scicode-verified-24
# SciCode Problem 24: Burgers_equation Burgers equation is a classic hyperbolic partial differential equation. The finite volume method is an effective approach for modeling this type of problem, as it preserves mass conservation through time integration. Write a function to solve the inviscid 1D Burgers equation with...
Science problem converted from the SciCode-Verified corrected benchmark: Burgers_equation.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-24", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Burgers_equation.", "authors": [ { "name": "Minyang Tian" }, { ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "24", "scicode_num_steps": 3, "problem_name": "Burgers_equation" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-24
scicode-bench/scicode-verified__scicode-verified-25
# SciCode Problem 25: CRM_in_chemostat MacArthur's consumer-resource model describes the dynamics of species and resources in an ecosystem, species compete with each other growing on the resources that are provided from the environment. In the consumer resource model, the population $N_i$ of each species is given by $...
Science problem converted from the SciCode-Verified corrected benchmark: CRM_in_chemostat.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-25", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: CRM_in_chemostat.", "authors": [ { "name": "Minyang Tian" }, { ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "25", "scicode_num_steps": 3, "problem_name": "CRM_in_chemostat" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-25
scicode-bench/scicode-verified__scicode-verified-26
# SciCode Problem 26: CRM_in_serial_dilution In a serially diluted system, everything (resources and species) is diluted by a factor D every cycle, and then moved to a fresh media, where a new given chunk of resources R (array of length R) is present. Within one cycle, species are depleted one by one according to a sp...
Science problem converted from the SciCode-Verified corrected benchmark: CRM_in_serial_dilution.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-26", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: CRM_in_serial_dilution.", "authors": [ { "name": "Minyang Tian" }, ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "26", "scicode_num_steps": 3, "problem_name": "CRM_in_serial_dilution" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-26
scicode-bench/scicode-verified__scicode-verified-27
# SciCode Problem 27: Design_trade_offs_for_high_speed_photodetectors Consider vertically illuminated homojunction GaAs p-i-n diode. Assume that the p-side is doped at $N_a$ and the n-side is doped at $N_d$.For GaAs, the relative dielectric constant is $ϵ_r$. Provide a function that compute the bandwidth of the p-i-n ...
Science problem converted from the SciCode-Verified corrected benchmark: Design_trade_offs_for_high_speed_photodetectors.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-27", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Design_trade_offs_for_high_speed_photodetectors.", "authors": [ { "name": "Miny...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "27", "scicode_num_steps": 3, "problem_name": "Design_trade_offs_for_high_speed_photodetectors" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-27
scicode-bench/scicode-verified__scicode-verified-28
# SciCode Problem 28: Gaussian_Beam_Intensity Calculate the waist and crossectional intensity field at certain distance at the axis of propagation of guassian beam in lens system transmission and determine the focus distance. ''' Inputs N : int The number of sampling points in each dimension (assumes a square gri...
Science problem converted from the SciCode-Verified corrected benchmark: Gaussian_Beam_Intensity.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-28", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Gaussian_Beam_Intensity.", "authors": [ { "name": "Minyang Tian" }, ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "28", "scicode_num_steps": 3, "problem_name": "Gaussian_Beam_Intensity" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-28
scicode-bench/scicode-verified__scicode-verified-30
# SciCode Problem 30: helium_slater_jastrow_wavefunction Write a Python class to implement a Slater-Jastrow wave function. The class contains functions to evaluate the unnormalized wave function psi, (gradient psi) / psi, (laplacian psi) / psi, and kinetic energy / psi. Each function takes `configs` of shape `(nconfig...
Science problem converted from the SciCode-Verified corrected benchmark: helium_slater_jastrow_wavefunction.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-30", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: helium_slater_jastrow_wavefunction.", "authors": [ { "name": "Minyang Tian" ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "30", "scicode_num_steps": 3, "problem_name": "helium_slater_jastrow_wavefunction" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-30
scicode-bench/scicode-verified__scicode-verified-31
# SciCode Problem 31: independent_component_analysis Write a Python script to perform independent component analysis. This function takes a mixture matrix `X` of shape `(nmixtures, time)` as an input. Return the predicted source matrix `S_out` of shape `(nmixtures, time)` ''' Args: X (np.array): mixture matrix. S...
Science problem converted from the SciCode-Verified corrected benchmark: independent_component_analysis.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-31", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: independent_component_analysis.", "authors": [ { "name": "Minyang Tian" }...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "31", "scicode_num_steps": 3, "problem_name": "independent_component_analysis" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-31
scicode-bench/scicode-verified__scicode-verified-32
# SciCode Problem 32: Multiparticle_dynamics_in_the_optical_tweezer_array $N$ identical nanospheres are trapped by a linear polarized optical tweezer array arranged equidistantly along the $x$-axis. Considering the optical binding forces between the nanospheres along the $x$ direction, write a code to solve the evolut...
Science problem converted from the SciCode-Verified corrected benchmark: Multiparticle_dynamics_in_the_optical_tweezer_array.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-32", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Multiparticle_dynamics_in_the_optical_tweezer_array.", "authors": [ { "name": "...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "32", "scicode_num_steps": 3, "problem_name": "Multiparticle_dynamics_in_the_optical_tweezer_array" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-32
scicode-bench/scicode-verified__scicode-verified-33
# SciCode Problem 33: phase_diagram_chern_haldane_model_v1 Generate an array of Chern numbers for the Haldane model on a hexagonal lattice by sweeping the following parameters: the on-site energy to next-nearest-neighbor coupling constant ratio ($m/t_2$) and the phase ($\phi$) values. Given the lattice spacing $a$, th...
Science problem converted from the SciCode-Verified corrected benchmark: phase_diagram_chern_haldane_model_v1.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-33", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: phase_diagram_chern_haldane_model_v1.", "authors": [ { "name": "Minyang Tian" ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "33", "scicode_num_steps": 3, "problem_name": "phase_diagram_chern_haldane_model_v1" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-33
scicode-bench/scicode-verified__scicode-verified-34
# SciCode Problem 34: PN_diode_band_diagram For a PN diode, compute the potential distribution as a function of the position ($x$) in the depletion region given the doping concentrations of both p-type and n-type regions as input variables ($N_a$ and $N_d$). Intrinsic carrier concentration of the material is given as ...
Science problem converted from the SciCode-Verified corrected benchmark: PN_diode_band_diagram.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-34", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: PN_diode_band_diagram.", "authors": [ { "name": "Minyang Tian" }, {...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "34", "scicode_num_steps": 3, "problem_name": "PN_diode_band_diagram" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-34
scicode-bench/scicode-verified__scicode-verified-35
# SciCode Problem 35: Quantum_Dot_Absorption_Spectrum Assume we have a cuboid quantum dot (QD), with the three-dimension size a, b and c (all in nanometers). This means that this cuboid's volumn is a×b×c. And the effective electron mass in this material is $m_r\times m_0$, where $m_0$ is the free electron mass. Write ...
Science problem converted from the SciCode-Verified corrected benchmark: Quantum_Dot_Absorption_Spectrum.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-35", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Quantum_Dot_Absorption_Spectrum.", "authors": [ { "name": "Minyang Tian" ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "35", "scicode_num_steps": 3, "problem_name": "Quantum_Dot_Absorption_Spectrum" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-35
scicode-bench/scicode-verified__scicode-verified-36
# SciCode Problem 36: Quasi_Fermi_levels_of_photo_resistor_out_of_equilibrium A slab of GaAs is illuminated by a beam of light with a wavelength of $\lambda_i$. At this wavelength, the absorption coefficient of GaAs is $\alpha$. The excess carrier lifetimes are $τ_n$ and the slab is much thicker than 1/α. Given incide...
Science problem converted from the SciCode-Verified corrected benchmark: Quasi_Fermi_levels_of_photo_resistor_out_of_equilibrium.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-36", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Quasi_Fermi_levels_of_photo_resistor_out_of_equilibrium.", "authors": [ { "name...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "36", "scicode_num_steps": 3, "problem_name": "Quasi_Fermi_levels_of_photo_resistor_out_of_equilibrium" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-36
scicode-bench/scicode-verified__scicode-verified-37
# SciCode Problem 37: ray_optics_spherical_aberration Use geometric optics method to calculate the optical path and output the spherical abberation in the light transmission through doublet lens. Lens parameters and refractive index and curvature are given. Wavelength of incident light is given. The concept is finding...
Science problem converted from the SciCode-Verified corrected benchmark: ray_optics_spherical_aberration.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-37", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: ray_optics_spherical_aberration.", "authors": [ { "name": "Minyang Tian" ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "37", "scicode_num_steps": 3, "problem_name": "ray_optics_spherical_aberration" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-37
scicode-bench/scicode-verified__scicode-verified-39
# SciCode Problem 39: Reflection_spectra_for_a_Distributed_Bragg_Reflector Consider a VCSEL designed for emission at $\lambda_b$ with and an alternating stack of GaAs/AlAs quarter wave layers (for this problem, assume the GaAs layer is adjacent to the cavity). Use the matrix method regarding "Plane Wave Reflection fro...
Science problem converted from the SciCode-Verified corrected benchmark: Reflection_spectra_for_a_Distributed_Bragg_Reflector.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-39", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Reflection_spectra_for_a_Distributed_Bragg_Reflector.", "authors": [ { "name": ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "39", "scicode_num_steps": 3, "problem_name": "Reflection_spectra_for_a_Distributed_Bragg_Reflector" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-39
scicode-bench/scicode-verified__scicode-verified-40
# SciCode Problem 40: Spliting_Operator Write a function to solve the diffusion-reaction equation with a second-order spatial differentiation operator and a Strang splitting scheme. Each sub-step is integrated with a first-order forward-Euler update, so the composite scheme is first order overall. Target equation is: ...
Science problem converted from the SciCode-Verified corrected benchmark: Spliting_Operator.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-40", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Spliting_Operator.", "authors": [ { "name": "Minyang Tian" }, { ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "40", "scicode_num_steps": 3, "problem_name": "Spliting_Operator" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-40
scicode-bench/scicode-verified__scicode-verified-41
# SciCode Problem 41: Structural_stability_in_serial_dilution As a microbial community reaches a balanced state in a serially diluted environment, it will determine a set of temporal niche durations $t_i>0$. These temporal niches are defined by the time intervals between consecutive depletion of each resource -- based...
Science problem converted from the SciCode-Verified corrected benchmark: Structural_stability_in_serial_dilution.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-41", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Structural_stability_in_serial_dilution.", "authors": [ { "name": "Minyang Tian...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "41", "scicode_num_steps": 3, "problem_name": "Structural_stability_in_serial_dilution" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-41
scicode-bench/scicode-verified__scicode-verified-42
# SciCode Problem 42: The_threshold_current_for_multi_quantum_well_lasers For a multi-quantum-well (MQW) laser, what is the threshold current? Assume the quantum well number ($n_w$), injection quantum efficiency ($\eta$), optical confinement factor ($\Gamma_{\mathrm{w}}$), cavity length (L), device width ($w$), intrin...
Science problem converted from the SciCode-Verified corrected benchmark: The_threshold_current_for_multi_quantum_well_lasers.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-42", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: The_threshold_current_for_multi_quantum_well_lasers.", "authors": [ { "name": "...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "42", "scicode_num_steps": 3, "problem_name": "The_threshold_current_for_multi_quantum_well_lasers" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-42
scicode-bench/scicode-verified__scicode-verified-43
# SciCode Problem 43: two_end_fiber_laser_generator Write code to simulate an end-pumped high-power double-clad fiber laser using numerical BVP solving. Inputs include laser wavelengths, fiber and material properties, and pump powers. Calculates spatial profiles of pump and signal powers, population inversion, and out...
Science problem converted from the SciCode-Verified corrected benchmark: two_end_fiber_laser_generator.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-43", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: two_end_fiber_laser_generator.", "authors": [ { "name": "Minyang Tian" },...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "43", "scicode_num_steps": 3, "problem_name": "two_end_fiber_laser_generator" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-43
scicode-bench/scicode-verified__scicode-verified-45
# SciCode Problem 45: finite_difference_heat_equation 1 Write a script to numerically solve the heat equation on a 2D grid. Initialize the grid using all zeros. The 2d grid is divided by a vertical interface into two different materials with different initial temperatures and thermal diffusivities. Allow user to set e...
Science problem converted from the SciCode-Verified corrected benchmark: finite_difference_heat_equation.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-45", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: finite_difference_heat_equation.", "authors": [ { "name": "Minyang Tian" ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "45", "scicode_num_steps": 4, "problem_name": "finite_difference_heat_equation" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-45
scicode-bench/scicode-verified__scicode-verified-46
# SciCode Problem 46: helium_atom_vmc Write a Python script to calculate the ground-state energy of the helium atom using variational Monte Carlo. The wave function is given by $\exp(-\alpha r_1) \exp(-\alpha r_2)$ ''' Input: `configs` always has shape (nconf, nelec, ndim) where nconf is the number of configurati...
Science problem converted from the SciCode-Verified corrected benchmark: helium_atom_vmc.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-46", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: helium_atom_vmc.", "authors": [ { "name": "Minyang Tian" }, { ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "46", "scicode_num_steps": 4, "problem_name": "helium_atom_vmc" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-46
scicode-bench/scicode-verified__scicode-verified-48
# SciCode Problem 48: MEELS_conversion Write a script converting M-EELS (Momentum-resolved Electron Energy-Loss Spectroscopy) data, $I(\omega)$, to the imaginary part of the density response function, $\chi^{\prime\prime}(\omega)$, where $\omega$ is the energy loss. M-EELS directly probes the density-density correlati...
Science problem converted from the SciCode-Verified corrected benchmark: MEELS_conversion.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-48", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: MEELS_conversion.", "authors": [ { "name": "Minyang Tian" }, { ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "48", "scicode_num_steps": 4, "problem_name": "MEELS_conversion" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-48
scicode-bench/scicode-verified__scicode-verified-5
# SciCode Problem 5: Lanczos Create a function performing Lanczos Iteration. It takes a symmetric matrix A a number of iterations m and outputs a new matrix Q with orthonomal columns. """ Inputs: A : Matrix, 2d array of arbitrary size M * M b : Vector, 1d array of arbitrary size M * 1 m : integer, m < M Outputs: Q :...
Science problem converted from the SciCode-Verified corrected benchmark: Lanczos.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-5", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Lanczos.", "authors": [ { "name": "Minyang Tian" }, { "name"...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "5", "scicode_num_steps": 1, "problem_name": "Lanczos" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-5
scicode-bench/scicode-verified__scicode-verified-50
# SciCode Problem 50: Replica_symmetry_breaking To study replica symmetry breaking in spin glasses, write a numerical simulation of the Sherrington-Kirkpatrick (SK) model, a fully-connected spin system of size $N$. The Hamiltonian of the system is given by: $$ H_{SK} = -\sum_{i<j} J_{ij}\sigma_i \sigma_j $$ Use the re...
Science problem converted from the SciCode-Verified corrected benchmark: Replica_symmetry_breaking.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-50", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Replica_symmetry_breaking.", "authors": [ { "name": "Minyang Tian" }, ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "50", "scicode_num_steps": 4, "problem_name": "Replica_symmetry_breaking" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-50
scicode-bench/scicode-verified__scicode-verified-52
# SciCode Problem 52: Shooting_algo_H_atom Write a script implementing the shooting algorithm to solve the Schoredinger equation for the hydrogen atom. Assume that the radial part of the Schroedinger equation has $r$ in the unit of the Bohr radius $r_B$ and $\varepsilon$ in the unit of the Rydberg energy $R_y$. Use a...
Science problem converted from the SciCode-Verified corrected benchmark: Shooting_algo_H_atom.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-52", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Shooting_algo_H_atom.", "authors": [ { "name": "Minyang Tian" }, { ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "52", "scicode_num_steps": 4, "problem_name": "Shooting_algo_H_atom" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-52
scicode-bench/scicode-verified__scicode-verified-53
# SciCode Problem 53: Stochastic_Lotka_Volterra In a well-mixed system of two species, a predator-prey dynamics can be modeled by the Lotka–Volterra equation: $$\frac{dx}{dt} = \alpha x - \beta xy$$ $$\frac{dy}{dt} = \beta xy - \gamma y$$ where $x$ is the population of preys and $y$ is the population of predators. We ...
Science problem converted from the SciCode-Verified corrected benchmark: Stochastic_Lotka_Volterra.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-53", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Stochastic_Lotka_Volterra.", "authors": [ { "name": "Minyang Tian" }, ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "53", "scicode_num_steps": 4, "problem_name": "Stochastic_Lotka_Volterra" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-53
scicode-bench/scicode-verified__scicode-verified-54
# SciCode Problem 54: SUPG Solve 1D Advection-diffusion boundary value problem using Nitsche's method to weakly impose the Dirichlet boundary condition. Using SUPG stabilization method to stablize computaion. Considering the following 1D advection-diffusion boundary value problem. \begin{equation} \begin{aligned} au_{...
Science problem converted from the SciCode-Verified corrected benchmark: SUPG.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-54", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: SUPG.", "authors": [ { "name": "Minyang Tian" }, { "name": ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "54", "scicode_num_steps": 4, "problem_name": "SUPG" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-54
scicode-bench/scicode-verified__scicode-verified-55
# SciCode Problem 55: Swift_Hohenberg To model the formation of stripe patterns in a 2D plane, we will develop a spatio-temporal simulation of Swift-Hohenberg euqation with a critical mode $q_0$ and a control parameter $\epsilon$ in python. The system is represented by a real order parameter $u(x, y)$, with a size of ...
Science problem converted from the SciCode-Verified corrected benchmark: Swift_Hohenberg.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-55", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Swift_Hohenberg.", "authors": [ { "name": "Minyang Tian" }, { ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "55", "scicode_num_steps": 4, "problem_name": "Swift_Hohenberg" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-55
scicode-bench/scicode-verified__scicode-verified-56
# SciCode Problem 56: temporal_niches In a serially diluted system, everything (resources and species) is diluted by a factor D every cycle, and then moved to a fresh media, where a new given chunk of resources R (array of length R) is present. Within one cycle, species are depleted one by one according to a specific ...
Science problem converted from the SciCode-Verified corrected benchmark: temporal_niches.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-56", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: temporal_niches.", "authors": [ { "name": "Minyang Tian" }, { ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "56", "scicode_num_steps": 4, "problem_name": "temporal_niches" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-56
scicode-bench/scicode-verified__scicode-verified-57
# SciCode Problem 57: 1D_harmonic_oscillator_numerov_shooting Write a script to numerically solve for the bound state energy of a 1D simple harmonic oscillator. Scale the variable $x$ such that the potential term will become $V(x) = x^2$ and the energy variable $E_n$ will be expressed in units of $\frac{\hbar\omega}{2...
Science problem converted from the SciCode-Verified corrected benchmark: 1D_harmonic_oscillator_numerov_shooting.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-57", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: 1D_harmonic_oscillator_numerov_shooting.", "authors": [ { "name": "Minyang Tian...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "57", "scicode_num_steps": 5, "problem_name": "1D_harmonic_oscillator_numerov_shooting" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-57
scicode-bench/scicode-verified__scicode-verified-58
# SciCode Problem 58: Tolman_Oppenheimer_Volkoff_star Compute the gravitational mass and the gravitational time dilation at the center of a neutron star. Starting from a central density $\rho_c$ and a polytropic equation of state described the exponent $\Gamma$ and coefficient $\kappa$ compute the stellar pressure, ma...
Science problem converted from the SciCode-Verified corrected benchmark: Tolman_Oppenheimer_Volkoff_star.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-58", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Tolman_Oppenheimer_Volkoff_star.", "authors": [ { "name": "Minyang Tian" ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "58", "scicode_num_steps": 5, "problem_name": "Tolman_Oppenheimer_Volkoff_star" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-58
scicode-bench/scicode-verified__scicode-verified-59
# SciCode Problem 59: VQE Implement the Variational Quantum Eigensolver (VQE) to compute the energy of the molecular hydrogen ($H_2$) Hamiltonian $H=g_0I+g_1Z_1+g_2Z_2+g_3Z_1Z_2+g_4Y_1Y_2+g_5X_1X_2$ using the Unitary Coupled Cluster (UCC) ansatz. Note that two programmable superconducting qubits are used, so all the o...
Science problem converted from the SciCode-Verified corrected benchmark: VQE.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-59", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: VQE.", "authors": [ { "name": "Minyang Tian" }, { "name": "...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "59", "scicode_num_steps": 5, "problem_name": "VQE" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-59
scicode-bench/scicode-verified__scicode-verified-60
# SciCode Problem 60: Widom_particle_insertion Implement a Monte Carlo simulation for a system of particles interacting via the Lennard-Jones potential. The simulation employs the Metropolis-Hastings algorithm to simulate particle dynamics and the Widom insertion method to estimate the chemical potential. """ Input ...
Science problem converted from the SciCode-Verified corrected benchmark: Widom_particle_insertion.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-60", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Widom_particle_insertion.", "authors": [ { "name": "Minyang Tian" }, ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "60", "scicode_num_steps": 5, "problem_name": "Widom_particle_insertion" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-60
scicode-bench/scicode-verified__scicode-verified-61
# SciCode Problem 61: Xray_conversion_I Write a script for indexing Bragg peaks collected from x-ray diffraction (XRD). We're focusing on a one-circle diffractometer with a fixed area detector perpendicular to the x-ray beam. To orient the crystal, we'll need to determine the indices of two Bragg reflections and then ...
Science problem converted from the SciCode-Verified corrected benchmark: Xray_conversion_I.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-61", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Xray_conversion_I.", "authors": [ { "name": "Minyang Tian" }, { ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "61", "scicode_num_steps": 5, "problem_name": "Xray_conversion_I" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-61
scicode-bench/scicode-verified__scicode-verified-62
# SciCode Problem 62: dmrg Develop an infinite Density Matrix Renormalization Group (DMRG) algorithm for computing the ground state energy of a 1D spin-1/2 Heisenberg XXZ model without an external magnetic field. During the system enlargement process, perform a basis transformation within a truncated Hilbert space. Th...
Science problem converted from the SciCode-Verified corrected benchmark: dmrg.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-62", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: dmrg.", "authors": [ { "name": "Minyang Tian" }, { "name": ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "62", "scicode_num_steps": 6, "problem_name": "dmrg" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-62
scicode-bench/scicode-verified__scicode-verified-63
# SciCode Problem 63: Estimating_Stock_Option_Price Calculate European stock option prices at certain time and certain underlying stock price. Use finite difference method to solve Black Scholes equation given: price grid size, time grid size, min and max price of stock, option strike price, risk-less interest rate, s...
Science problem converted from the SciCode-Verified corrected benchmark: Estimating_Stock_Option_Price.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-63", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Estimating_Stock_Option_Price.", "authors": [ { "name": "Minyang Tian" },...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "63", "scicode_num_steps": 6, "problem_name": "Estimating_Stock_Option_Price" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-63
scicode-bench/scicode-verified__scicode-verified-64
# SciCode Problem 64: GCMC Write a Script to simulate the equilibrium behavior of a system of particles interacting through a Lennard-Jones potential under Grand Canonical Ensemble. The Grand Canonical Monte Carlo (GCMC) method will be used to manipulate the system through particle insertions, deletions, and displacem...
Science problem converted from the SciCode-Verified corrected benchmark: GCMC.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-64", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: GCMC.", "authors": [ { "name": "Minyang Tian" }, { "name": ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "64", "scicode_num_steps": 6, "problem_name": "GCMC" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-64
scicode-bench/scicode-verified__scicode-verified-65
# SciCode Problem 65: GHZ_protocol_fidelity Given a 2n-qubit state input_state, whose first n qubits are sent through n uses of qubit channel channel1 and the last n qubits are sent through n uses of qubit channel channel2, calculate the fidelity with respect to the two-qubit maximally entangled state that is achievab...
Science problem converted from the SciCode-Verified corrected benchmark: GHZ_protocol_fidelity.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-65", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: GHZ_protocol_fidelity.", "authors": [ { "name": "Minyang Tian" }, {...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "65", "scicode_num_steps": 6, "problem_name": "GHZ_protocol_fidelity" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-65
scicode-bench/scicode-verified__scicode-verified-66
# SciCode Problem 66: kolmogorov_crespi_potential Write a Python function that calculates the Kolmogov-Crespi energy given `top` atom coordinates of the top layer and `bot` atom coordinates of the bottom layer. \begin{align} E^{\textrm{KC}} &= \sum_{i=1}^{Ntop} \sum_{j=1}^{Nbot} \mathrm{Tap}(r_{ij}) V_{ij}. \label{eq...
Science problem converted from the SciCode-Verified corrected benchmark: kolmogorov_crespi_potential.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-66", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: kolmogorov_crespi_potential.", "authors": [ { "name": "Minyang Tian" }, ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "66", "scicode_num_steps": 6, "problem_name": "kolmogorov_crespi_potential" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-66
scicode-bench/scicode-verified__scicode-verified-67
# SciCode Problem 67: LEG_Dyson_equation_bulk Numerically calculate the density-density correlation function for a bulk layered electron gas (LEG) using the random-phase approximation (RPA), and confirm it against the analytical solution. In the LEG, each layer consists of a two-dimensional electron gas, and interacti...
Science problem converted from the SciCode-Verified corrected benchmark: LEG_Dyson_equation_bulk.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-67", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: LEG_Dyson_equation_bulk.", "authors": [ { "name": "Minyang Tian" }, ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "67", "scicode_num_steps": 6, "problem_name": "LEG_Dyson_equation_bulk" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-67
scicode-bench/scicode-verified__scicode-verified-68
# SciCode Problem 68: helium_atom_dmc Write a Python script to perform diffusion Monte Carlo to calculate the helium ground-state energy. ''' Inputs: configs: electron coordinates. shape=(nconf, nelec, ndim) Outputs: ground-state energy ''' ## Required Dependencies ```python import numpy as np ``` You must implem...
Science problem converted from the SciCode-Verified corrected benchmark: helium_atom_dmc.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-68", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: helium_atom_dmc.", "authors": [ { "name": "Minyang Tian" }, { ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "68", "scicode_num_steps": 8, "problem_name": "helium_atom_dmc" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-68
scicode-bench/scicode-verified__scicode-verified-69
# SciCode Problem 69: LEG_Dyson_equation_semi_infinite Compute the Raman intensity for a semi-infinite layered electron gas (LEG) numerically. Begin by calculating the density-density correlation function $D(l,l^{\prime})$ of a semi-infinite LEG within the random-phase approximation (RPA). Each layer of the LEG hosts ...
Science problem converted from the SciCode-Verified corrected benchmark: LEG_Dyson_equation_semi_infinite.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-69", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: LEG_Dyson_equation_semi_infinite.", "authors": [ { "name": "Minyang Tian" ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "69", "scicode_num_steps": 8, "problem_name": "LEG_Dyson_equation_semi_infinite" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-69
scicode-bench/scicode-verified__scicode-verified-71
# SciCode Problem 71: GADC_rev_coherent_info Calculate the coherent information of a generalized amplitude damping channel (GADC) ''' input output channel_coh_info: float, channel coherent information of a GADC ''' ## Required Dependencies ```python import numpy as np from scipy.optimize import fminbound import i...
Science problem converted from the SciCode-Verified corrected benchmark: GADC_rev_coherent_info.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-71", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: GADC_rev_coherent_info.", "authors": [ { "name": "Minyang Tian" }, ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "71", "scicode_num_steps": 9, "problem_name": "GADC_rev_coherent_info" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-71
scicode-bench/scicode-verified__scicode-verified-72
# SciCode Problem 72: ising_model Write a Python script to find the transition temperature of a periodic 2D Ising model with J = 1 and B = 0 using the Metropolis-Hastings algorithm. The lattice should be of dimension (N, N). ''' Input: T (float): temperature N (int): system size along an axis nsweeps: number of iter...
Science problem converted from the SciCode-Verified corrected benchmark: ising_model.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-72", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: ising_model.", "authors": [ { "name": "Minyang Tian" }, { "...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "72", "scicode_num_steps": 9, "problem_name": "ising_model" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-72
scicode-bench/scicode-verified__scicode-verified-73
# SciCode Problem 73: Xray_conversion_II Write a script to automatically index all Bragg peaks collected from x-ray diffraction (XRD). Here we are using a four-circle diffractometer with a fixed tilted area detector. To orient the crystal, we require the indices of two Bragg reflections along with their corresponding ...
Science problem converted from the SciCode-Verified corrected benchmark: Xray_conversion_II.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-73", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Xray_conversion_II.", "authors": [ { "name": "Minyang Tian" }, { ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "73", "scicode_num_steps": 9, "problem_name": "Xray_conversion_II" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-73
scicode-bench/scicode-verified__scicode-verified-74
# SciCode Problem 74: Householder_QR Create a function to compute the factor R of a QR factorization of an $m\times n$ matrix A with $m\geq n$. """ Inputs: A : Matrix of size m*n, m>=n Outputs: A : Matrix of size m*n """ ## Required Dependencies ```python import numpy as np ``` You must implement 1 functions sequ...
Science problem converted from the SciCode-Verified corrected benchmark: Householder_QR.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-74", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Householder_QR.", "authors": [ { "name": "Minyang Tian" }, { ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "74", "scicode_num_steps": 1, "problem_name": "Householder_QR" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-74
scicode-bench/scicode-verified__scicode-verified-75
# SciCode Problem 75: graphene_tight_binding Compute the tight-binding band structure of AA-stacked bilayer graphene using Moon and Koshino parameterization [Phys. Rev. B 85, 195458 (2012)]. ''' Input: k_input (np.array): (kx, ky) latvecs (np.array): lattice vectors of shape (3, 3) in bohr basis (np.array): atomic p...
Science problem converted from the SciCode-Verified corrected benchmark: graphene_tight_binding.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-75", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: graphene_tight_binding.", "authors": [ { "name": "Minyang Tian" }, ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "75", "scicode_num_steps": 3, "problem_name": "graphene_tight_binding" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-75
scicode-bench/scicode-verified__scicode-verified-76
# SciCode Problem 76: protein_dna_binding I want to find where in a DNA sequence a given protein may likely bind on to. I have a position weight matrix (PWM) for a protein and a DNA sequence. Please make sure the PWM is L2 (Euclidean) normalized per row after adding 1 to it to prevent log divergence when computing log...
Science problem converted from the SciCode-Verified corrected benchmark: protein_dna_binding.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-76", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: protein_dna_binding.", "authors": [ { "name": "Minyang Tian" }, { ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "76", "scicode_num_steps": 4, "problem_name": "protein_dna_binding" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-76
scicode-bench/scicode-verified__scicode-verified-77
# SciCode Problem 77: Berendsen_thermostat Write a Script to integrate the Berendsen thermalstat and barostat into molecular dynamics calculation through velocity Verlet algorithm. The particles are placed in a periodic cubic system, interacting with each other through truncated and shifted Lenard-Jones potential and ...
Science problem converted from the SciCode-Verified corrected benchmark: Berendsen_thermostat.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-77", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Berendsen_thermostat.", "authors": [ { "name": "Minyang Tian" }, { ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "77", "scicode_num_steps": 12, "problem_name": "Berendsen_thermostat" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-77
scicode-bench/scicode-verified__scicode-verified-79
# SciCode Problem 79: Nose_Hoover_chain_thermostat Numerically solve the following equation of motion for a one dimensional harmonic oscillator coupled with $M$ Nosé-Hoover chains: $$\begin{array}{l} \frac{{dx}}{{dt}} = \frac{p}{m},\\ \frac{{dp}}{{dt}} = - m\omega _0^2x - \frac{{{p_{{\xi _1}}}}}{{{Q_1}}}p,\\ \frac{{d...
Science problem converted from the SciCode-Verified corrected benchmark: Nose_Hoover_chain_thermostat.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-79", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Nose_Hoover_chain_thermostat.", "authors": [ { "name": "Minyang Tian" }, ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "79", "scicode_num_steps": 4, "problem_name": "Nose_Hoover_chain_thermostat" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-79
scicode-bench/scicode-verified__scicode-verified-8
# SciCode Problem 8: Spatial_filters_III Spatial filters are designed for use with lasers to "clean up" the beam. Oftentimes, a laser system does not produce a beam with a smooth intensity profile. In addition, when a laser beam passes through an optical path, dust in the air or on optical components can disrupt the b...
Science problem converted from the SciCode-Verified corrected benchmark: Spatial_filters_III.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-8", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Spatial_filters_III.", "authors": [ { "name": "Minyang Tian" }, { ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "8", "scicode_num_steps": 1, "problem_name": "Spatial_filters_III" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-8
scicode-bench/scicode-verified__scicode-verified-80
# SciCode Problem 80: Anderson_thermostat Write a Script to integrate the Anderson thermalstat into molecular dynamics calculation through velocity Verlet algorithm. The particles are placed in a periodic cubic system, and only local interactions are considered with truncated and shifted Lenard-Jones potential and for...
Science problem converted from the SciCode-Verified corrected benchmark: Anderson_thermostat.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-80", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Anderson_thermostat.", "authors": [ { "name": "Minyang Tian" }, { ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "80", "scicode_num_steps": 7, "problem_name": "Anderson_thermostat" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-80
scicode-bench/scicode-verified__scicode-verified-9
# SciCode Problem 9: Weighted_Jacobi Create a function to solve the matrix equation $Ax=b$ using the weighted Jacobi iteration. The function takes a matrix $A$ a right hand side vector $b$, tolerance eps, true solution $x$_true for reference, initial guess $x_0$ and parameter $\omega$. This function should generate re...
Science problem converted from the SciCode-Verified corrected benchmark: Weighted_Jacobi.
[ "scicode", "scicode-verified", "scientific-computing", "python", "hdf5", "physics", "mathematics" ]
1.4
{ "schema_version": "1.4", "task": { "name": "scicode-bench/scicode-verified__scicode-verified-9", "version": "1.0", "description": "Science problem converted from the SciCode-Verified corrected benchmark: Weighted_Jacobi.", "authors": [ { "name": "Minyang Tian" }, { ...
{ "difficulty": "hard", "category": "scientific_computing", "scicode_problem_id": "9", "scicode_num_steps": 1, "problem_name": "Weighted_Jacobi" }
[ "environment/Dockerfile", "instruction.md", "solution/solve.sh", "task.toml", "tests/manifest.json", "tests/problem_data.json", "tests/problems_test.jsonl", "tests/scicode/__init__.py", "tests/scicode/compare/__init__.py", "tests/scicode/compare/cmp.py", "tests/scicode_utils.py", "tests/test.s...
tasks/scicode-verified-9