bloqade.stim.rewrite.set_detector_partial.SetDetectorPartial
← Module overview
class
method
sourcemethod
source
classSetDetectorPartial¶source
bloqade.stim.rewrite.set_detector_partial.SetDetectorPartial
Bases: RewriteRule
Rewrite SetDetector using GetRecIdxFromMeasurement placeholders.
class SetDetectorPartialInstead of computing record indices from analysis results immediately, this injects GetRecIdxFromMeasurement statements that will be resolved post-analysis.
methodrewrite_Statement¶source
bloqade.stim.rewrite.set_detector_partial.SetDetectorPartial.rewrite_Statement
def rewrite_Statement(node: ir.Statement) -> RewriteResultParameters
| Name | Type | Description |
|---|---|---|
node | ir.Statement |
Returns
RewriteResult
methodrewrite_SetDetector¶source
bloqade.stim.rewrite.set_detector_partial.SetDetectorPartial.rewrite_SetDetector
def rewrite_SetDetector(node: SetDetector) -> RewriteResultParameters
| Name | Type | Description |
|---|---|---|
node | SetDetector |
Returns
RewriteResult