Unlike classical digital computers in which a bit can represent either 1 or 0 at any time, quantum computers use a two-level system, i.e., a qubit, to implement logical operations based on quantum mechanical laws, which can represent both values at once. Owing to the superposition property of qubits, quantum computers have natural parallel processing advantages and thus have potential to exceed the computational efficiency of classical computers for particular tasks. Quantum logic gates are the generalization of classical logic gates in computational networks. It has been proved that two-qubit quantum gates together with one-qubit quantum gates are adequate for constructing networks with any possible quantum computational property. Directional couplers are the most critical elementsfor constructing the quantum gates. In recent years, photonic quantum technologies have emerged as a promising experimental platform for quantum computing. Single photons have robust noise resistance, long coherence time, high transmission speed and great compatibility with other systems. They can be easily manipulated and encoded in any of several degrees of freedom, for example, polarization, path, spatial mode or time bin. Optical waveguide technology enables the realizing of complex optical schemes comprised of many elements with desired scalability, stability and miniaturization. Femtosecond laser direct writing of waveguide has been adopted as a powerful tool for integrated quantum photonics with characteristics of rapidness, cost-effectiveness, mask-less and single-step process. In particular, it has the ability to build arbitrary three-dimensional circuits directly inside bulk materials, which is impossible to achieve with conventional lithography. In this article we review the femtosecond laser writing and quantum characterization of directional coupler and important one-qubit and two-qubit optical quantum logic gates, such as Hadamard gate, Pauli-X gate, controlled-NOT gate, and controlled-Phase gate. The qubits in these gates are usually encoded through optical paths or polarizations of photons. The key to the realization of polarization-encoded one-qubit gates is to achieve flexible wave-plate operations, which is described in detail. Controlled-NOT gate and controlled-phase gate are the most crucial two-qubit gates in the linear optics computation and sometimes they can be converted into each other by adding some one-qubit gates or special superposition states. Many different kinds of waveguide circuits have been used to implement these two-qubit gates. The outlook and challenges for the femtosecond laser writing of three-qubit gates, such as Toffoli gate and Fredkin gate, are briefly introduced.