Photonic Ship - Task 4 "Hadamard"

• Apply Hadamard when pressing key "H".
• If in state |0> or |1>, the new state is |+> or |->, respectively.
• When entering |+> or |->, create a copy of ship and place it on the other screen.
• When in |+> or |->, our photonic ship is in superposition. We call it "quantum mode".
• When in quantum mode, make sure that the ships do not move.
• When in |+> or |-> and press "H", the new state is |0> or |1>, respectively. The mode is "classic".


Restart the game