Computer simulation of a quantum-well optical correlator