stanza.cli

Stanza CLI - Command-line interface for Stanza experiment framework.

Module Contents

Functions

NameDescription
cliStanza - Build tune up sequences for quantum computers fast.
initInitialize a new timestamped experiment session directory.
statusShow current active session information.
_get_config_fileGet path to live plot config file.
_read_configRead live plot config, return empty dict if not found.
_write_configWrite live plot config.
live_plotManage live plotting.
enable_live_plotEnable live plotting configuration.
disable_live_plotDisable live plotting configuration.
live_plot_statusShow live plotting configuration.
mainEntry point for CLI.

API

1stanza.cli.cli() -> None

Stanza - Build tune up sequences for quantum computers fast.

Easy to code. Easy to run.

1stanza.cli.init(
2 path: pathlib.Path | None, name: str | None
3) -> None

Initialize a new timestamped experiment session directory.

Creates a directory like: 20251020100010_data/

All experiment data from routines will be logged inside this directory.

Examples:

stanza init

stanza init —name my_experiment

stanza init —path /data/experiments

1stanza.cli.status() -> None

Show current active session information.

1stanza.cli._get_config_file() -> pathlib.Path

Get path to live plot config file.

1stanza.cli._read_config() -> dict[str, typing.Any]

Read live plot config, return empty dict if not found.

1stanza.cli._write_config(config: dict[str, typing.Any]) -> None

Write live plot config.

1stanza.cli.live_plot() -> None

Manage live plotting.

1stanza.cli.enable_live_plot(
2 backend: str, port: int
3) -> None

Enable live plotting configuration.

1stanza.cli.disable_live_plot() -> None

Disable live plotting configuration.

1stanza.cli.live_plot_status() -> None

Show live plotting configuration.

1stanza.cli.main() -> None

Entry point for CLI.