Skip to content

[Docs] Add source docstrings for QDP constructor and alias API entries#1404

Merged
400Ping merged 1 commit into
apache:mainfrom
viiccwen:docs/qdp-source-docstrings
Jun 16, 2026
Merged

[Docs] Add source docstrings for QDP constructor and alias API entries#1404
400Ping merged 1 commit into
apache:mainfrom
viiccwen:docs/qdp-source-docstrings

Conversation

@viiccwen

Copy link
Copy Markdown
Contributor

Related Issues

Closes #1348

Changes

  • Bug fix
  • New feature
  • Refactoring
  • Documentation
  • Test
  • CI/CD pipeline
  • Other

Why

QDP Python API reference content is generated from source docstrings. A few
public entries had no source-level documentation for constructor parameters or
alias intent, which left the generated API surface less clear than the source
code can support.

How

Added focused source documentation for:

  • QdpEngine.__init__, including constructor parameters and the unsupported
    backend error.
  • QuantumDataLoader.__init__, including default batching settings and
    validation behavior.
  • QuantumTensor, documenting it as a backward-compatible alias for
    QdpTensor.

Checklist

  • Added or updated unit tests for all changes
  • Added or updated documentation for all changes

@400Ping 400Ping left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@400Ping 400Ping merged commit 28bab6e into apache:main Jun 16, 2026
8 checks passed
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.

[Docs] Add source docstrings for QDP constructor and alias API entries

2 participants