sequence function: find-path-between
find the path between the ket, and the given superposition
currently, potentially quite slow! But this is fixable.
|op: friends> . |op: inverse-friends>
|op: friends> . |op: inverse-friends> . |op: friends>
find-path-between(|grid: 1: 1>, |grid: 3: 7>)
|op: E> . |op: E> . |op: E> . |op: E> . |op: SE> . |op: SE>
find (*) #=> find-path-between(|person: George>, |_self>)
find |person: Andrew>
find (|person: Sarah> + |person: David> + |person: Frank>)
find (|person: Emily> + |person: Fred>)
find (|person: Frank> + |person: Emily>)
optimize it with Dijkstra's algorithm
(since current algorithm is horrible!)
make it work with path-ways between sequences too.
finding-a-path-between-early-us-presidents worked example