Spaces:
Sleeping
Sleeping
Commit History
-
Plugin protocol Phase 5: SDK docs + two example plugins
Yuchen Yuan* PLUGIN_SDK.md — complete plugin developer guide: - .zip layout (manifest.json + handler.py at top level) - Full manifest schema with each field's constraints - run(inputs, params) signature + every recognised return key - Minimum working example (h_counter metric) - Execution environment table (10-min timeout, 1 GB RAM, env strip) - Per-family conventions for source/backend/algorithm/metric/sink - Where plugins live + lifecycle (per-browser, /tmp scoped) - Safety notes (no IBM token leakage, subprocess isolation) - Troubleshooting table * example_plugins/count_gates/ — minimal metric plugin: counts gate types in the upstream circuit, returns summary + scalars. * example_plugins/prefix_x/ — minimal algorithm plugin: prepends an X gate on a chosen qubit, returns new circuit + summary. * example_plugins/*.zip — pre-zipped versions for users who want to download + upload directly without re-zipping. End-to-end verified on live HF Space: both example plugins up…e66189d