qpanda3_runtime.toolbox.tracker.tracking_rules#

Submodules#

Classes#

DefaultTrackingRule

Default tracking rule - passes data through unchanged.

QTaskFailureRule

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.TrackingRule

Default tracking rule - passes data through unchanged.

This rule implements the simplest tracking behavior where data is returned unchanged without any processing or transformation.

Notes

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.

Returns:

Rule identifier string.

Return type:

str

analyze(data: qpanda3_runtime.toolbox.tracker.tracker_trace.TrackerTrace) → Any#

Analyze tracker trace data.

Parameters:

data (TrackerTrace) – The tracker trace data to analyze.

Returns:

The input data unchanged.

Return type:

Any

Notes

This implementation simply returns the input data without modification.

class qpanda3_runtime.toolbox.tracker.tracking_rules.QTaskFailureRule#

Bases: qpanda3_runtime.toolbox.tracker.tracking_rule.TrackingRule

Quantum 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.

Notes

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.

Returns:

Rule identifier string.

Return type:

str

analyze(data: qpanda3_runtime.toolbox.tracker.tracker_trace.TrackerTrace) → Any#

Analyze tracker trace data for quantum task failures.

Parameters:

data (TrackerTrace) – The tracker trace data to analyze.

Returns:

The input data unchanged.

Return type:

Any

Notes

This base implementation returns data unchanged. Override this method to implement custom failure analysis logic.