PySparQ.pysparq

PySparQ 类型存根 - 从 _core 模块重新导出所有公共 API。

Submodules

Classes

StatePrinter

Reusable state formatter with configurable default mode.

Functions

StatePrint(→ str)

Return a formatted string representation of a SparseState.

print(→ None)

Print a SparseState to stdout in Detail mode.

test_import(→ None)

测试 PySparQ 导入是否正常工作。

to_string(→ str)

Return a formatted string representation of a SparseState (alias for StatePrint).

Package Contents

class PySparQ.pysparq.StatePrinter(mode: int | pysparq._core.StatePrintDisplay = 1, precision: int = 0)[源代码]

Reusable state formatter with configurable default mode.

mode: int[源代码]
precision: int[源代码]
PySparQ.pysparq.StatePrint(state: pysparq._core.SparseState, mode: int | pysparq._core.StatePrintDisplay = 1, precision: int = 0) str[源代码]

Return a formatted string representation of a SparseState.

PySparQ.pysparq.print(state: pysparq._core.SparseState, mode: int | pysparq._core.StatePrintDisplay = 1, precision: int = 0) None[源代码]

Print a SparseState to stdout in Detail mode.

PySparQ.pysparq.test_import() None[源代码]

测试 PySparQ 导入是否正常工作。

PySparQ.pysparq.to_string(state: pysparq._core.SparseState, mode: int | pysparq._core.StatePrintDisplay = 1, precision: int = 0) str[源代码]

Return a formatted string representation of a SparseState (alias for StatePrint).