qpanda3_runtime.toolbox.tracker.tracking_rules#
Submodules#
Classes#
Default tracking rule - passes data through unchanged. |
|
Quantum task failure tracking rule - records task failure information. |
Package Contents#
- class qpanda3_runtime.toolbox.tracker.tracking_rules.DefaultTrackingRule#
Bases:
qpanda3_runtime.toolbox.tracker.tracking_rule.TrackingRuleDefault tracking rule - passes data through unchanged.
This rule implements the simplest tracking behavior where data is returned unchanged without any processing or transformation.
备注
Use this rule as a baseline or when no special processing is needed.
- property rule_id: str#
Get the unique identifier for this tracking rule.
- 返回:
Rule identifier string.
- 返回类型:
str
- analyze(data: qpanda3_runtime.toolbox.tracker.tracker_trace.TrackerTrace) Any#
Analyze tracker trace data.
- 参数:
data (
TrackerTrace) -- The tracker trace data to analyze.- 返回:
The input data unchanged.
- 返回类型:
Any
备注
This implementation simply returns the input data without modification.
- class qpanda3_runtime.toolbox.tracker.tracking_rules.QTaskFailureRule#
Bases:
qpanda3_runtime.toolbox.tracker.tracking_rule.TrackingRuleQuantum task failure tracking rule - records task failure information.
This rule is designed to track and analyze quantum task failures. It can be extended to provide specialized failure analysis logic.
备注
Currently implements basic pass-through behavior. Extend this class to add custom failure analysis logic.
- property rule_id: str#
Get the unique identifier for this tracking rule.
- 返回:
Rule identifier string.
- 返回类型:
str
- analyze(data: qpanda3_runtime.toolbox.tracker.tracker_trace.TrackerTrace) Any#
Analyze tracker trace data for quantum task failures.
- 参数:
data (
TrackerTrace) -- The tracker trace data to analyze.- 返回:
The input data unchanged.
- 返回类型:
Any
备注
This base implementation returns data unchanged. Override this method to implement custom failure analysis logic.