Four-bit input linear quantum computing with liquid crystal (LC) devices was studied using the Deutsch-Jozsa algorithm. A laser beam is split into four paths and passed through a configuration of twisted nematic (TN) LC device/ (λ/2 waveplate)/ TN LC device for computation. In order to minimize the effect of photon loss in the light path, a 4x4 matrix analysis was done for optimization. We fabricated a prototype for four optical-path linear quantum computing. As a result, we obtained changes in the number of photons counting according to Deutsch-Jozsa's algorithm under the extremely weak light state.