PySparQ.pysparq.demo¶
Standalone native simulator experiments: pysparq info|run|gui.
These CPU experiments expose complex amplitudes, phase-sensitive reference errors, sparse support, and actual classical construction/execution times. They do not submit quantum hardware jobs or estimate quantum execution time.
Classes¶
Functions¶
|
|
|
|
|
Run a native experiment and its inverse against independent references. |
|
Execute one RIR JSON document natively (wide registers and QRAM included). |
Module Contents¶
- PySparQ.pysparq.demo.run(config: Experiment) dict[source]¶
Run a native experiment and its inverse against independent references.
System register state is process-global. Use a separate process for each experiment when other code shares the simulator (the GUI does this).
- PySparQ.pysparq.demo.run_rir_document(program_source: str, memory_source: str | None) dict[source]¶
Execute one RIR JSON document natively (wide registers and QRAM included).
program_sourceandmemory_sourceare filesystem paths or inline JSON strings;run_rirperforms the actual native sparse-state execution, so widths beyond 64 bits and wide sparse QRAM queries run on the real backend. The exported record carries provenance, the program digest and every nonzero amplitude keyed by full-width register values.