You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/sphinx/api/qec/python_realtime_decoding_api.rst
+76-59Lines changed: 76 additions & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,65 +72,82 @@ Configuration API
72
72
73
73
The configuration API enables setting up decoders before circuit execution. Decoders are configured using YAML files or programmatically constructed configuration objects.
74
74
75
-
Configuration Types
76
-
^^^^^^^^^^^^^^^^^^^
77
-
78
-
.. py:class:: cudaq_qec.pymatching_config
79
-
80
-
Configuration for the PyMatching decoder in the real-time decoding system.
81
-
Use this with ``decoder_config.type = "pymatching"``.
82
-
Set ``decoder_config.type`` before passing this object to
83
-
``decoder_config.set_decoder_custom_args``.
84
-
The decoder input matrix must be graphlike: each ``H_sparse`` column can
85
-
contain only one or two detector entries.
86
-
87
-
**Attributes:**
88
-
89
-
.. py:attribute:: error_rate_vec
90
-
:type: Optional[List[float]]
91
-
92
-
Per-error prior probabilities. When provided, the length must match the
93
-
decoder ``block_size`` and each value must be in the range ``(0, 0.5]``.
94
-
95
-
.. py:attribute:: merge_strategy
96
-
:type: Optional[str]
97
-
98
-
PyMatching edge merge strategy. Supported values are ``"disallow"``,
99
-
``"independent"``, ``"smallest_weight"``, ``"keep_original"``, and
100
-
``"replace"``.
101
-
102
-
.. py:class:: cudaq_qec.trt_decoder_config
103
-
104
-
Configuration for TensorRT decoder in real-time decoding system.
105
-
106
-
**Attributes:**
107
-
108
-
.. py:attribute:: onnx_load_path
109
-
:type: Optional[str]
110
-
111
-
Path to ONNX model file. Mutually exclusive with engine_load_path.
112
-
113
-
.. py:attribute:: engine_load_path
114
-
:type: Optional[str]
115
-
116
-
Path to pre-built TensorRT engine file. Mutually exclusive with
0 commit comments