Summary: The dipole-dipole interaction among excitons is shown to give rise to an intrinsic nonlinearity, which yields a localized mode in a forbidden band, providing a coherent state for quantum computation. Employing this mode, a quantum XOR (exclusive OR) gate is proposed. A block structure of quantum dot arrays is also proposed, to implement quantum circuits comprising the quantum XOR gates for computation.