Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Commit 7dbafea

Browse files
committed
Added example explanation to quantum-conveyor-belts program and small clarification to prob.md
1 parent 4d050db commit 7dbafea

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

competition/quantum-conveyor-belts/prob.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ ddd: drift(ccc); x(); y(ccc)
5252
```
5353

5454
Before you press any key, you can take a conveyor belt for free to go to station `bbb`.
55+
(This is denoted by `drift(bbb)` being on the `aaa:` line.)
5556
Thus, the very first superposition you reach is the set `{aaa, bbb}`.
5657

5758
If you are in station `aaa`, pressing the `x` key on the conveyor belt

competition/quantum-conveyor-belts/src/main.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,16 @@ fn main() {
419419
seeded_nfa == rebuilt_nfa
420420
);
421421
}
422+
"example" => {
423+
let example_nfa = Nfa::build_from(&[
424+
"aju: drift(bkv); a(bkv, clw); b(clw)".to_string(),
425+
"bkv: drift(dmx); a(bkv); b(bkv)".to_string(),
426+
"clw: drift(); a(eny); b(bkv)".to_string(),
427+
"dmx: drift(); a(); b(eny)".to_string(),
428+
"eny: drift(dmx); a(aju, dmx); b(bkv, clw)".to_string(),
429+
]);
430+
let _ = example_nfa.unreachable_superpositions(0, true);
431+
}
422432
_ => panic!(),
423433
}
424434
}

0 commit comments

Comments
 (0)