quantcore_circuits.live.watch ============================= .. py:module:: quantcore_circuits.live.watch .. autoapi-nested-parse:: ``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 --------- .. autoapisummary:: quantcore_circuits.live.watch.rebuild quantcore_circuits.live.watch.watch Module Contents --------------- .. py:function:: rebuild(source: pathlib.Path, out: pathlib.Path, klive: bool = True, log: collections.abc.Callable[[str], None] = print, chip_overrides: dict | None = None) -> bool .. py:function:: 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