SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1911.11123 · 2019

PyXtal: a Python Library for Crystal Structure Generation and Symmetry Analysis

arXiv · PDF · Open in the Atlas

Code that ran

8 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 8 have no contract verdict; 0 failures of our instrument; 6 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1911.11123.json · badge: /api/ran/1911.11123.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
qzhu2017/PyXtal canonical (classifier label)
classifier basis: census
8 ran · 6 no recorded run
FunctionStatusWhere it lives
axial_div_bak Ran
ran on a synthesized input
qzhu2017/PyXtal/pyxtal/XRD.py
code served (permissive licence) · get_code("7dfca17a08900d14")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (8,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create test data for axial_div_bak function
x = np.array([0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0])
mu = 2.5
L = 10.0
H = 5.0
S = 1.5

ARGS = {
    "x": x,
    "mu": mu,
    "L": L,
    "H": H,
    "S": S,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (8,) — shape (8,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
correlation Ran
ran on a synthesized input
qzhu2017/PyXtal/pyxtal/descriptor.py
code served (permissive licence) · get_code("bed3b4c651e30d7b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float32, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

class MockSphCoef:
    """Mock spherical coefficients object with required methods."""
    
    def __init__(self, data):
        self.data = np.array(data, dtype=np.float32)
    
    def spectrum(self):
        """Return the power spectrum (squared magnitude of coefficients)."""
        return np.abs(self.data) ** 2
    
    def cross_spectrum(self, other):
        """Return cross-spectrum with another coefficient set."""
        return np.real(self.data * np.conj(other.data))
    
    def rotate(self, alpha, beta, gamma, degrees=True):
        """Rotate coefficients (mock implementation)."""
        # For testing, just return a rotated copy with slightly modified values
        rotated_data = self.data * 0.95  # Small rotation effect
        return MockSphCoef(rotated_data)

# Create mock spherical coefficient objects
coef1_data = np.array([1.0, 0.5, 0.3, 0.2, 0.1], dtype=np.float32)
coef2_data = np.array([0.9, 0.6, 0.25, 0.15, 0.05], dtype=np.float32)

coef1 = MockSphCoef(coef1_data)
coef2 = MockSphCoef(coef2_data)

ARGS = {
    "coef1": coef1,
    "coef2": coef2,
    "angle": [30, 45, 60],
    "s": 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float32, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
correlation_go Ran
ran on a synthesized input
qzhu2017/PyXtal/pyxtal/descriptor.py
code served (permissive licence) · get_code("38105e39caff7a8a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

class MockSphericalCoefficients:
    """Mock spherical coefficients object with required methods"""
    
    def __init__(self, data=None):
        if data is None:
            data = np.random.randn(10)
        self.data = data
    
    def rotate(self, alpha, beta, gamma, degrees=True):
        """Return a rotated copy of coefficients"""
        # Simple mock: just return a slightly modified copy
        rotated = MockSphericalCoefficients(self.data * (1 + 0.01 * np.sin(alpha + beta + gamma)))
        return rotated
    
    def spectrum(self):
        """Return power spectrum"""
        return np.abs(self.data) ** 2
    
    def cross_spectrum(self, other):
        """Return cross-spectrum with another coefficient object"""
        return self.data * np.conj(other.data)


coef1 = MockSphericalCoefficients(np.random.randn(10))
coef2 = MockSphericalCoefficients(np.random.randn(10))

ARGS = {
    'coef1': coef1,
    'coef2': coef2,
    'M': 4,
    's': 0,
    'd_cut': 0.92
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
correlation_opt Ran
ran on a synthesized input
qzhu2017/PyXtal/pyxtal/descriptor.py
code served (permissive licence) · get_code("2cb7327ba6133676")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from scipy.optimize import minimize

class MockSphericalCoefficients:
    """Mock spherical coefficients object with required methods"""
    def __init__(self, data):
        self.data = np.array(data)
    
    def rotate(self, alpha, beta, gamma, degrees=True):
        """Mock rotate method - returns a new instance with slightly modified data"""
        # Simple mock: just return a rotated version
        rotated_data = self.data * (1.0 + 0.01 * (alpha + beta + gamma) / 180.0)
        return MockSphericalCoefficients(rotated_data)
    
    def spectrum(self):
        """Return the power spectrum (sum of squares of coefficients)"""
        return self.data ** 2
    
    def cross_spectrum(self, other):
        """Return cross spectrum with another coefficient set"""
        return self.data * other.data

# Create mock spherical coefficient objects
coef1 = MockSphericalCoefficients(np.array([1.0, 2.0, 3.0, 4.0]))
coef2 = MockSphericalCoefficients(np.array([2.0, 1.5, 2.5, 3.5]))

# Initial angle guess [alpha, beta, gamma]
angle = np.array([10.0, 20.0, 30.0])

ARGS = {
    'coef1': coef1,
    'coef2': coef2,
    'angle': angle,
    's': 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
find_wp_assignments Ran
ran on a synthesized input
qzhu2017/PyXtal/pyxtal/XRD_indexer.py
code served (permissive licence) · get_code("57b410ad84706f50")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - comp: list of integers representing target composition counts
# - ids: list of Wyckoff position IDs (integers)
# - nums: list of multiplicities (integers) corresponding to each ID

# The function uses:
# - comp as a list to enumerate and process
# - ids and nums are zipped together with indices
# - All parameters are treated as lists of integers

# Create valid arguments:
comp = [18, 6]  # Target composition counts for 2 elements
ids = [1, 1, 6, 8, 9]  # Wyckoff position IDs
nums = [8, 8, 4, 2, 2]  # Multiplicities for each ID

ARGS = {
    "comp": comp,
    "ids": ids,
    "nums": nums,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
full_3x3_to_Voigt_6_index Ran
ran on a synthesized input
qzhu2017/PyXtal/pyxtal/elasticity.py
code served (permissive licence) · get_code("3e87cf2262b2f47a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

# This function converts 3x3 matrix indices to Voigt 6-vector indices
# It takes two integer indices i and j representing positions in a 3x3 matrix

# The function simply needs two integer parameters
ARGS = {
    "i": 0,
    "j": 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
in_merged_coords Ran
ran on a synthesized input
qzhu2017/PyXtal/pyxtal/io.py
code served (permissive licence) · get_code("b3cf7b41e823862d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

class MockWyckoffPosition:
    """Mock Wyckoff position object that implements are_equivalent_pts method."""
    def are_equivalent_pts(self, coords1, coords2, cell):
        """Check if two coordinate sets are equivalent under symmetry operations."""
        # Simple implementation: check if coordinates are close (within tolerance)
        coords1 = np.array(coords1, dtype=float)
        coords2 = np.array(coords2, dtype=float)
        return np.allclose(coords1, coords2, atol=1e-6)

# Create a mock Wyckoff position object
wp = MockWyckoffPosition()

# Create coordinates as numpy arrays
coord1 = np.array([0.1, 0.2, 0.3])
coord2 = np.array([0.4, 0.5, 0.6])
coord3 = np.array([0.1, 0.2, 0.3])  # Equivalent to coord1

# Create point tuples: (coordinates, species)
pt = (coord1, "Si")
pts = [
    (coord2, "C"),
    (coord3, "Si"),
    (np.array([0.7, 0.8, 0.9]), "O")
]

# Create a unit cell matrix (3x3)
cell = np.array([
    [5.0, 0.0, 0.0],
    [0.0, 5.0, 0.0],
    [0.0, 0.0, 5.0]
])

ARGS = {
    "wp": wp,
    "pt": pt,
    "pts": pts,
    "cell": cell
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_fraction Ran
ran on a synthesized input
qzhu2017/PyXtal/pyxtal/asu_constraints.py
code served (permissive licence) · get_code("82d4301d32d9cc17")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from fractions import Fraction

torch.manual_seed(0)

# The function parse_fraction takes a string parameter frac_str
# and converts it to a float. It handles both fraction strings like '1/2'
# and regular numeric strings.

# Test cases with different fraction and numeric string formats
ARGS = {
    "frac_str": "1/2"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
Voigt_6_to_full_3x3_strain Not yet run
unverified (harvested, no recorded run)
qzhu2017/PyXtal/pyxtal/elasticity.py
code served (permissive licence) · get_code("5dc315e1f35a09a8")
How it ran

no invocation recorded.

Voigt_6_to_full_3x3_stress Not yet run
unverified (harvested, no recorded run)
qzhu2017/PyXtal/pyxtal/elasticity.py
code served (permissive licence) · get_code("645fdd3b3f3569f3")
How it ran

no invocation recorded.

add_peak Not yet run
unverified (harvested, no recorded run)
qzhu2017/PyXtal/pyxtal/XRD.py
code served (permissive licence) · get_code("6aa535d84adedee5")
How it ran

no invocation recorded.

axial_div Not yet run
unverified (harvested, no recorded run)
qzhu2017/PyXtal/pyxtal/XRD.py
code served (permissive licence) · get_code("bd6890faa4347cc4")
How it ran

no invocation recorded.

create_asu_for_space_group Not yet run
unverified (harvested, no recorded run)
qzhu2017/PyXtal/pyxtal/asu_constraints.py
code served (permissive licence) · get_code("d8da9c6ea9b7de5d")
How it ran

no invocation recorded.

get_additional_asu_conditions Not yet run
unverified (harvested, no recorded run)
qzhu2017/PyXtal/pyxtal/constants.py
code served (permissive licence) · get_code("e3c68f87da1f0079")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 14 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We present PyXtal, a new package based on the Python programming language, used to generate structures with specific symmetry and chemical compositions for both atomic and molecular systems. This soft ware provides support for various systems described by point, rod, layer, and space group symmetries. With only the inputs of chemical composition and symmetry group information, PyXtal can automatically find a suitable combination of Wyckoff positions with a step-wise merging scheme. Further, when the molecular geometry is given, PyXtal can generate different dimensional organic crystals with molecules occupying both general and special Wyckoff positions. Optionally, PyXtal also accepts user-defined parameters (e.g., cell parameters, minimum distances and Wyckoff positions). In general, PyXtal serves three purposes: (1) to generate custom structures, (2) to modulate the structure by symmetry relations, (3) to interface the existing structure prediction codes that require the generation of random symmetric structures. In addition, we provide several utilities that facilitate the analysis of structures, including symmetry analysis, geometry optimization, and simulations of powder X-ray diffraction (XRD). Full documentation of PyXtal is available at \url{https://pyxtal.readthedocs.io}.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("1911.11123")
get_code_for_paper("1911.11123")
have("1911.11123")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/1911.11123.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/1911.11123.svg)](https://syntology.ai/paper/1911.11123)

Connect an agent — have() is free.