Quantum trajectory simulations of two-state behavior in an optical cavity containing one atom | Synapse