quantcore_circuits.live.watch

qcc watch: rebuild on change → write OAS → reload in KLayout via klive.

Polling (no extra dependency): design.json/design.py plus any extra files are checked every interval seconds; a change is rebuilt after debounce seconds of quiet. A failed build prints the error and leaves the last good layout in KLayout. KQC library caching keeps rebuilds of unchanged cells cheap, so the loop stays well under the 2 s target for chip-sized designs.

Functions

rebuild(source, out[, klive, log, chip_overrides]) → bool

watch(source[, out, extra, interval, debounce, klive, ...]) → None

Module Contents

quantcore_circuits.live.watch.rebuild(source: pathlib.Path, out: pathlib.Path, klive: bool = True, log: collections.abc.Callable[[str], None] = print, chip_overrides: dict | None = None) → bool
quantcore_circuits.live.watch.watch(source: str | pathlib.Path, out: str | pathlib.Path | None = None, extra: list[str | pathlib.Path] | None = None, interval: float = 0.25, debounce: float = 0.2, klive: bool = True, max_builds: int | None = None, log: collections.abc.Callable[[str], None] = print, chip_overrides: dict | None = None) → None