Consider a ship in space that is attempting to stealthily travel between two locations. I hypothesize that it could use the collapse of a wavefunction to tell if it's been detected by using a particle like an electron that would begin in a superposed state and be exposed to the space outside. If it collapsed to any classical state, the electron would then interact with the ship--for example, by traveling through a circuit--to trigger an alarm.
Could the collapse of a quantum state serve as a useful means of determining whether the ship has been detected in transit? I would expect that in space--especially between two distant galaxies--the probability of an object being observed in the quantum sense due to natural processes to be relatively low given the low matter density. Provided that detection by intelligent life or other automata is possible, is there a way for such a system to use the wave function collapse to determine whether it has indeed been detected?