CHSH violation simulation for entangled photons with a rotated quarter-wave plate