feat: add supports_flip/flip_axis to SubPattern for Phase B flip gate

This commit is contained in:
2026-07-14 15:27:21 -04:00
parent 841112c6af
commit f12dd7e559
3 changed files with 41 additions and 0 deletions
+4
View File
@@ -49,6 +49,8 @@ class SubPattern:
positive_examples: VME 原题 few-shot 示范。
negative_examples: 反面示例。
distractor_rules: 干扰项构造规则。
supports_flip: 是否支持配对翻转门(Phase B 用,默认 False)。
flip_axis: 翻转轴("before/after" | "first/last"),None 表示不翻转。
"""
name: str
@@ -59,6 +61,8 @@ class SubPattern:
positive_examples: list[dict] = field(default_factory=list)
negative_examples: list[dict] = field(default_factory=list)
distractor_rules: str = ""
supports_flip: bool = False
flip_axis: str | None = None
# ---------------------------------------------------------------------------