All-optical logic gates including AND, XOR, and NOT gates, as well as a half-adder, are realized based on two-dimensional lithium niobate photonic crystal (PhC) circuits with PhC micro-cavities. The proposed all-optical devices have an extinction rat