  Quantum computing holds the potential to solve problems that are practically
unsolvable by classical computers due to its ability to significantly reduce
time complexity. We aim to harness this potential to enhance ray casting, a
pivotal technique in computer graphics for simplifying the rendering of 3D
objects. To perform ray casting in a quantum computer, we need to encode the
defining parameters of primitives into qubits. However, during the current
noisy intermediate-scale quantum (NISQ) era, challenges arise from the limited
number of qubits and the impact of noise when executing multiple gates. Through
logic optimization, we reduced the depth of quantum circuits as well as the
number of gates and qubits. As a result, the event count of correct
measurements from an IBM quantum computer significantly exceeded that of
incorrect measurements.
