AngouriMath
TryReadTerm(AngouriMath.Entity,AngouriMath.Entity,System.Collections.Generic.List{System.Collections.Generic.KeyValuePair{AngouriMath.Functions.Quantum.Ket,AngouriMath.Entity}})
Method (no overloads)
Summary
One term: exactly one ket among its multiplicative factors, and everything else is
the amplitude. Two kets in a product would be a tensor product of states rather
than a term of one, and is not read here.
the amplitude. Two kets in a product would be a tensor product of states rather
than a term of one, and is not read here.
Remarks
Sums are handled here rather than above it because an amplitude may be carried in
from outside:(|00> + |01>) / sqrt(2) reaches this as a quotient whose
dividend is a sum, and reading the sum only at the top would refuse it -- which is
exactly how every normalised state in the tests failed to parse at first.
from outside:
dividend is a sum, and reading the sum only at the top would refuse it -- which is
exactly how every normalised state in the tests failed to parse at first.
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1953 pages online