Quantum Dot Cellular Automata is one of the popular alternatives of CMOS technology. QCA technology has higher clock speed upto tetra hertz range, lesser area then CMOS and unlike charge dissipation QCA technology is based on charge confinement. In this paper we had proposed an algorithm for data flow in QCA circuits. The algorithm is based on potential energy of the dots of a QCA cell. With this algorithm the operation of any QCA based complex design can be evaluated using potential energy calculation. In this paper at first we had proposed the operation of basic QCA majority voter using this proposed algorithm. We have further evaluated the working principle of QCA tile structure based on the proposed algorithm.