1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# SPDX-License-Identifier: AGPL-3.0-only
"""Type stubs for the Kshana Python bindings (PyO3 / maturin).
Kshana is an open hybrid quantum/classical PNT performance simulator. The Python
surface runs a TOML scenario string and returns the result document; see
docs/PYTHON_API.md for a quickstart.
"""
:
"""A scenario run result."""
"""The result document as a JSON string."""
"""The chart as a standalone SVG string."""
"""A short human-readable summary line."""
"""The result document parsed into a dict (figures of merit, time series,
provenance, ...). Wrap numeric lists with ``numpy.asarray(...)`` for arrays."""
...
"""Run a scenario (TOML string); return the result document as JSON. Raises
``ValueError`` if the scenario is invalid."""
"""Run a scenario; return ``(json, svg, summary)``."""
"""Run a scenario; return a typed :class:`RunOutput` with ``.json``/``.svg``/
``.summary``/``.data()``. Raises ``ValueError`` if invalid."""
"""The available scenario kinds and their metadata (name, description, required
and optional fields)."""
"""Validate a scenario TOML string without raising: a list of error messages,
empty if valid. Executes the scenario, so it surfaces parse, config, and
runtime errors."""
"""The scenario kinds and metadata as a JSON-array string (see
:func:`scenario_kinds` for the parsed form)."""
"""Run a scenario; on failure return the structured error *kind* tag
(``invalid_input``/``non_convergence``/``unsupported``/``io_error``) instead of
raising. Returns ``None`` on success."""
"""The engine version (the crate version)."""