Skip to content

docs: put every public API in the reference, with its arguments - #94

Merged
Sophia Wen (hfwen0502) merged 1 commit into
mainfrom
api-docs-audit
Nov 10, 2026
Merged

Sophia Wen (hfwen0502) merged 1 commit into
mainfrom
api-docs-audit

Conversation

@hfwen0502

Copy link
Copy Markdown
Member

Missing from the API reference. sbd.analysis.caop_variance, sbd.makestring, sbd.from_string and sbd.device_config.print_device_info are public and used by the examples, but had no entry, so the release notes' links to caop_variance did not resolve. Its Args: section also did not parse once rendered, and now lists each argument.

Arguments and return values. TPB_SBD, GDB_SBD, CAOP_SBD, get_device_id, from_strings, from_string, makestring, sort_bitarray, sort_bitarray_array, green_function_from_coefficients, spectral_function, assemble_rdms and let_output_through now describe their arguments and what they return. assemble_rdms and print_device_info move their implementation history into code comments.

__all__. sbd.sbd_solver and sbd.device_config get one, listing what is documented. It leaves out create_sbd_solver, which is functools.partial(solve_sci_batch, ...), and get_device_info. sbd.__all__ drops FCIDump, which creates an empty object nothing uses (LoadFCIDump is the entry point), and a duplicate available_backends. All of these remain importable by name.

Wording. Where a docstring states backend support, "refused" becomes "not supported", and says that it raises ValueError. Returns: lines that began "dict with keys" no longer render as a broken type link.

Checked: the docs build with -W and no warnings, and with -n with no unresolved reference inside the package; the new entries render; every __all__ name resolves; the tests importing these names pass.

🤖 Generated with Claude Code

caop_variance, makestring, from_string and print_device_info are public and used,
but were missing from the API reference, so the release notes' links to
caop_variance did not resolve. caop_variance's Args also did not parse once
rendered. The configuration and packing wrappers, green_function_from_coefficients,
spectral_function, assemble_rdms and let_output_through now describe their
arguments and return values.

sbd_solver and device_config gain an __all__ of what is documented, leaving out
create_sbd_solver (a partial of solve_sci_batch) and get_device_info. sbd.__all__
drops FCIDump, an empty object nothing uses, and a duplicate available_backends.
All remain importable.

"Refused" becomes "not supported" where a docstring states backend support.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hfwen0502
Sophia Wen (hfwen0502) merged commit e9f8593 into main Nov 10, 2026
15 checks passed
@hfwen0502
Sophia Wen (hfwen0502) deleted the api-docs-audit branch November 10, 2026 15:20
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