Skip to content

Argon TDCIS as a TDSE gas response (research status) - #969

Draft
jtravs wants to merge 7 commits into
mainfrom
feature/argon-tdcis-response
Draft

jtravs wants to merge 7 commits into
mainfrom
feature/argon-tdcis-response

Conversation

@jtravs

@jtravs jtravs commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Refs #968. Draft, research status: the route is not qualified, and its design record is
still to be written (see "Assumed, skipped or not run").

What changed

Solprop accepts argon TDCIS (time-dependent configuration interaction singles, the
coupled-channel whole-atom model of the Pyroraptor provider) as a TDSE gas response and
assembles the propagation source from it. Helium haCC and SAE behaviour, identities and
archives are unchanged.

Declaration (nonlinear/tdse.py)

  • New frozen record TDCISBasis beside HaccBasis, exported from solprop.nonlinear and
    solprop.sol: thresholds, radial_edges, radial_orders, angular_order,
    scaling_radius, scaling_angle, infinite_order, decay, gauge_radius,
    cut_energy, max_step_au, keyword-only source, and preset (only None is admitted:
    the provider has no argon preset). Its identity uses the kind tdcis_argon.
  • TDSEGasResponse admits model="tdcis" with target="argon". The cubic policy is
    optmat_cubic (the cubic replacement) or tdse_native; tdse_shadow is refused and
    remainder_scale must be 1.0. An atomic window is admitted with either policy.
  • One internal notion, whole_atom, covers haCC and TDCIS.

Translation (translate/, capabilities.py)

  • The descriptor carries the TDCIS basis (schema unchanged) and treats a windowed
    cubic-replacement response as gated.
  • The material check follows the target: an argon response requires optmat's argon alone.
    The rule keeps its identifier tdse-helium; its reason and species condition now name
    argon.

Source assembly (backends/tdse_source.py)

  • With the cubic replacement and an atomic window, the gated remainder is the total current
    less its first and third orders, with the edge term of the existing windowed route.
    Optmat's linear and Kerr terms stay on the whole lattice and are never gated.

Driver (driver/, output/tdse_archive.py)

  • The adapter builds the provider's argon target and angular limit from the record, asks for
    the third order of the closed total current on the provider's reduced route when the
    policy is the cubic replacement, and checks the route the provider reports. A basis
    without the escaped-electron closure is refused for the cubic replacement at preparation,
    with a message that names the two ways out.
  • The low-field consistency check compares against optmat's argon. Diagnostic plans stay at
    first order.
  • TDSEExecution(hacc_cache=...) is refused for argon: the setup cache applies to helium
    haCC only.
  • The raw response archive reuses the haCC serializers for the new family.

Documentation: a new "Argon TDCIS" section in docs/guide/media/tdse.md with a runnable
example and the limitations, a note in docs/dev/dependencies.md, and a changelog fragment.

Why

Argon is the first target beyond helium that the provider's coupled-channel route offers,
and the cubic replacement lets a run keep optmat's measured Kerr response while the atom
supplies the higher orders and ionisation. See #968.

How it was verified

All with the fake provider, on macOS:

  • uv run ruff check --fix ., uv run ruff format .: clean.
  • uv run basedpyright: 0 errors.
  • uv run pytest -n auto tests/nonlinear tests/translate/test_tdse_*.py tests/backends/test_tdse_*.py tests/driver/test_tdse_*.py tests/output/test_tdse_archive.py tests/test_capability_queries.py tests/test_layers.py: 2058 passed, 1 skipped (the
    installed-provider test). The new and touched modules were run again on the final tree:
    472 passed.
  • tests/test_guide_snippets.py -k tdse: passed. uv run poe docs: build succeeded.
  • poe docstrings, codespell, poe changelog-check: no failures.

New test modules: tests/nonlinear/test_tdse_tdcis_spec.py,
tests/translate/test_tdse_tdcis_descriptor.py, tests/backends/test_tdse_tdcis_source.py,
tests/driver/test_tdse_tdcis_binding.py, tests/driver/test_tdse_tdcis_run.py.

Assumed, skipped or not run

  • No run against an installed provider. The provider interface for the third order of
    the closed total current is assumed from its development branch and is exercised here only
    through the fake. The route needs a Pyroraptor build that offers it; the released
    interface does not. There is no installed-provider argon test yet.
  • The full gate (uv run poe check), the slow lane and the coverage lane were not run.
    Coverage of the new statements and branches was checked by inspection, not measured.
  • The native backend was not run separately for argon; the runs used the default
    backend.
  • The design record is not written. Whether it is an amendment of SEP 20 or a new SEP is
    open in Argon TDCIS as a TDSE gas response #968; this pull request should not merge as a supported route before that is
    settled.
  • Limitations of the model, stated in the guide: no preset, no recorded convergence at
    production scale, singlet TDCIS without spin-orbit coupling, and a closure sphere that
    must lie outside the 3p orbital (a gauge radius of at least 24 bohr with 4-bohr
    elements). The low-field consistency check is expected to warn: TDCIS overestimates
    argon's polarisability by about 17%.

Touches #964 (the shared haCC response plan): both concern how haCC plans are built in the
driver; neither depends on the other.

🤖 Generated with Claude Code

jtravs and others added 5 commits December 5, 2026 11:00
TDCISBasis is a new basis record beside HaccBasis, selected with
model="tdcis" and target="argon". The response admits optmat_cubic and
tdse_native for it, refuses tdse_shadow, and admits an atomic window with
either. Helium and SAE records and identities do not change.

Refs #968

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The descriptor tags the new basis as tdcis_argon and takes the pinned
coupled-channel setup. A source with an atomic window is gated, so the
windowed cubic replacement has a gate. The material check follows the
target: argon TDCIS needs optmat argon with its Kerr record.

Refs #968

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
With an atomic window and optmat_cubic the remainder J - j1 - j3 is gated
and made edge-free as the native remainder is; the edge term, the leading
taper diagnostic and the rounding bounds use the same remainder. The cubic
term that replaces the third order is not gated.

Refs #968

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The adapter builds the provider's argon atom on the coupled-channel plan.
For the cubic replacement it asks for order three on the reduced route and
refuses a basis without the escaped-electron closure; the binding returns
the third-order current, padded as the other currents are. The consistency
check compares with optmat's species of the target, and the archive takes
the haCC serializers.

Refs #968

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Refs #968

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@jtravs jtravs added enhancement New feature or request priority: medium Real work that should not wait long area: tdse The TDSE response and its atomic providers labels Dec 5, 2026
@read-the-docs-community

read-the-docs-community Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

@codecov

codecov Bot commented Dec 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

jtravs and others added 2 commits December 5, 2026 12:03
An independent review of the branch found no defect in the source and six
gaps; this acts on five of them.

- The velocity gauge has no escaped-electron closure, which is known from
  the declaration: TDSEGasResponse now refuses it with optmat_cubic instead
  of the adapter refusing it after the model and the consistency check.
- The guide and the TDCISBasis docstring state the provider's closure rule
  (closure sphere at the largest edge strictly below the gauge radius, with
  at least two elements inside) instead of a 24 bohr requirement that
  nothing enforced, and say when each refusal happens.
- A full plan built before its record showed no closure is closed.
- A run test with a nonzero third order: a law with a cubic part gives the
  final field of the law without it when j3 is reported (2.9e-9 of the
  cubic's effect), and a different one when it is withheld.
- Consistency messages name TDCIS beside haCC.

Not changed: the rule id of the gas check stays tdse-helium.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tdse The TDSE response and its atomic providers enhancement New feature or request priority: medium Real work that should not wait long

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant