Under the terms of quantum entanglement, when two photons are entangled, they spin in the opposite directions. Although both obey a wave function, it is basically the same function and not two separate ones.