Faithful type-directed Pauli answer parsing #
The exact question type is retained. Only the answer shape is shared by types with identical formats. Counts are checked before any field table is allocated; in particular the full Pauli count stays binary. The degree is supplied in unary (and is the fixed constant one in the introspection application).
Equations
- MIPRE.QLD.PauliAnswerProgram.shape (MIPRE.QLD.Ty.point W) = 0
- MIPRE.QLD.PauliAnswerProgram.shape (MIPRE.QLD.Ty.aline W) = 1
- MIPRE.QLD.PauliAnswerProgram.shape (MIPRE.QLD.Ty.dline W) = 2
- MIPRE.QLD.PauliAnswerProgram.shape (MIPRE.QLD.Ty.pauli W) = 3
- MIPRE.QLD.PauliAnswerProgram.shape (MIPRE.QLD.Ty.pairB W) = 4
- MIPRE.QLD.PauliAnswerProgram.shape MIPRE.QLD.Ty.pair = 5
- MIPRE.QLD.PauliAnswerProgram.shape (MIPRE.QLD.Ty.con i) = 6
- MIPRE.QLD.PauliAnswerProgram.shape (MIPRE.QLD.Ty.var j) = 4
Instances For
Equations
- MIPRE.QLD.PauliAnswerProgram.count (MIPRE.QLD.Ty.point W) m d = 1
- MIPRE.QLD.PauliAnswerProgram.count (MIPRE.QLD.Ty.aline W) m d = d + 1
- MIPRE.QLD.PauliAnswerProgram.count (MIPRE.QLD.Ty.dline W) m d = m * d + 1
- MIPRE.QLD.PauliAnswerProgram.count (MIPRE.QLD.Ty.pauli W) m d = 2 ^ m
- MIPRE.QLD.PauliAnswerProgram.count (MIPRE.QLD.Ty.pairB W) m d = 1
- MIPRE.QLD.PauliAnswerProgram.count (MIPRE.QLD.Ty.var j) m d = 1
- MIPRE.QLD.PauliAnswerProgram.count MIPRE.QLD.Ty.pair m d = 2
- MIPRE.QLD.PauliAnswerProgram.count (MIPRE.QLD.Ty.con i) m d = 3
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[reducible, inline]
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
theorem
MIPRE.QLD.PauliAnswerProgram.countProg_apply
(T : Ty)
(m k d : Cost.Unary)
(bs : Cost.BitStr)
:
theorem
MIPRE.QLD.PauliAnswerProgram.widthProg_length
(T : Ty)
(m k d : Cost.Unary)
(bs : Cost.BitStr)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
theorem
MIPRE.QLD.PauliAnswerProgram.parser_flatten
(T : Ty)
(m k d : Cost.Unary)
(rows : List Cost.BitStr)
(hk : 0 < width T (List.length k))
(hn : rows.length = count T (List.length m) (List.length d))
(hw : ∀ row ∈ rows, List.length row = width T (List.length k))
:
Every canonical payload is returned exactly, including the unit-width bit rows.