算法展示目录

oracq.applications.gallery

Algorithm gallery: each entry provides a small runnable example and its readout instructions.

class oracq.applications.gallery.GalleryCase(name, family, operation, readout, opened=None)[源代码]

基类:object

A single demo entry in the algorithm gallery.

变量:
  • name (str) -- Entry name, unique within the gallery.

  • family (str) -- Algorithm family, matching a module name of oracq.algorithms.

  • operation (oracq.infrastructure.builder.Operation) -- The complete Operation used for the demo.

  • readout (str) -- Readout instructions describing the expected measurement outcome or decision rule.

  • opened (oracq.infrastructure.builder.Operation | None) -- The open Operation before binding; provided only by entries demonstrating oracle binding, otherwise None.

name
family
operation
readout
opened = None

Return small demo cases; no backend is run, no files are read or written, and no external data is requested.

返回:

The gallery of demo entries, each with a complete Operation, its algorithm family and readout instructions.

返回类型:

tuple[GalleryCase, ...]