Since the underlying structure of a set of quantum states is still an NFTA in AutoQ, we reserve the *.lsta
format for users to describe a set of quantum states with an NFTA. The Constants and Constraints sections remain, but the Extended Dirac section should be replaced with two new sections Root States and Transitions now. (Unary) states in an NFTA can be arbitrary strings (no need to enclose with double quotation marks).
This section is responsible for specifying a set of root states. It should contain only one line starting with "Root States" and ending with a set of root states separated by whitespaces.
This section is responsible for specifying a set of transitions. One transition per line. Notice that the extension name *.lsta
stands for Level-Synchronized (Nondeterministic Finite) Tree Automata which means that each transition is associated with a nonnegative integer denoting a set of choices in AutoQ. A (bottom-up) transition [f,C](q1, q2, ..., qn) -> q
. Each pair of transitions [f1,C1](...) -> q
and [f2,C2](...) -> q
with the same q
must satisfy
We close this section with the following example.
Constants
c0 := 0
Root States aR bR
Transitions
[1,1](aL1, aL1) -> aR
[2,1](qLow, q0) -> aL1
[1,1](bL1, bL1) -> bR
[2,1](q0, qHigh) -> bL1
[c0,1] -> q0
[p1,1] -> qLow
[p2,1] -> qHigh
Constraints
imag(p1) = 0
p1 ^ 2 < 1/8
imag(p2) = 0
p2 ^ 2 > 7/8