Demonstration of a simple entangling optical gate and its use in bell-state analysis.