Beamforming Optimization for Intelligent Reflecting Surface with Discrete Phase Shifts | Synapse