Skip to content

docs(keywords): document the [xtb] LC-GFN1-xTB backend section#11

Open
karmachoi wants to merge 2 commits into
mainfrom
docs/xtb-keywords
Open

docs(keywords): document the [xtb] LC-GFN1-xTB backend section#11
karmachoi wants to merge 2 commits into
mainfrom
docs/xtb-keywords

Conversation

@karmachoi

Copy link
Copy Markdown
Contributor

Adds a keyword-reference page for the optional OpenQP-xTB backend (method=xtb), the companion documentation for Open-Quantum-Platform/openqp#269 per AGENTS.md rule 4.

What

  • New docs/keywords/xtb.md documenting the [xtb] section:
    • backend/type/parameter_path/library_path selectors (native-only backend);
    • GFN1 model options: model, dispersion, halogen_bond, third_order, spin_scale;
    • long-range-correction controls: lc_gamma (the xTB-only ok kernel), omega, cam_alpha, cam_beta, and the opt-in lc_ground_state flag;
    • the zvector analytic-gradient switch and a summary of the shared SCC/response/MRSF-shift families.
  • ini and Python (job.xtb(...) / job.theory('xtb', ...)) minimal examples.
  • Wired into docs/keywords/index.md (Section Index) and the mkdocs.yml nav.

mkdocs build --strict passes.

Why

openqp#269 adds method=xtb, the [xtb] schema section, and the compact Python API helper. openqp-docs is a separate repo, so this is the companion docs PR linked from that PR's description.

Add a keyword-reference page for the optional OpenQP-xTB backend
(method=xtb) covering the GFN1 model options (model, dispersion,
halogen_bond, third_order, spin_scale), the long-range-correction
controls (lc_gamma=ok, omega, cam_alpha/beta, lc_ground_state), the
native backend/type/parameter_path selectors, and the shared SCC/response
families. Wire the page into the keyword index and the mkdocs nav.

Companion to Open-Quantum-Platform/openqp#269 (method=xtb adapter).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
karmachoi added a commit to Open-Quantum-Platform/openqp that referenced this pull request Jul 11, 2026
Resolve the Codex review of PR #269 (method=xtb adapter):

- Add the xtb compact-API surface mirroring the dftb helper: the
  job.xtb(...) callable [xtb] section proxy, OpenQP._xtb (method=xtb,
  [xtb] section, TDHF response wiring), the _theory('xtb'/'tdxtb'/
  'sf-xtb'/'mrsf-xtb', ...) branches, and _TheoryProxy.xtb, so
  job.theory('xtb', ...) / job.xtb(...) build a real xtb job. The dftb
  helper (_dftb) is left byte-identical.
- Cover the new API in tests/test_openqp_api.py (mirroring the dftb
  helper tests) and add tests/test_openqp_xtb_api.py mirroring
  tests/test_openqp_dftb_api.py.
- Exercise the opt-in [xtb] lc_ground_state flag in the MRSF energy
  example (the production LC-GFN1 configuration); the input still passes
  check_input_values.

[xtb] keywords are documented in the companion openqp-docs PR
(Open-Quantum-Platform/openqp-docs#11).

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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 281c8dc121

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/keywords/xtb.md
Comment thread docs/keywords/xtb.md Outdated
Comment thread docs/keywords/xtb.md Outdated
@karmachoi

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 281c8dc121

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/keywords/xtb.md Outdated
Comment thread docs/keywords/xtb.md
Comment thread docs/keywords/xtb.md Outdated
Comment thread docs/keywords/xtb.md Outdated
Comment thread docs/keywords/xtb.md Outdated
…xample, auto fallback, backend/type value sets, response_solver values

- clarify the LC ground-state SCC is opt-in via lc_ground_state (response-only
  LC by default); background text no longer implies full LC-GFN1 by default
- add job.scf(type="rohf") to the Python MRSF example (matches the INI example)
- document type=auto's ground-state fallback for plain energy/grad runs with
  rpa/tda and no excited-state gradient target
- backend accepts native and auto (auto resolves to native)
- list the accepted type aliases the checker canonicalizes
- response_solver values are auto/dense/davidson (no GMRES)

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

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 1ce1860c00

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

karmachoi added a commit that referenced this pull request Jul 16, 2026
…in the value set

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant