Quantum information processing (QIP) relies on delicate superposition states that are sensitive to interactions with environment. The quantum gates are imperfect and the use of quantum error correction coding (QECC) is essential to enable the fault-tolerant computing and to deal with quantum errors. The most critical gate, CNOT-gate, has been implemented as a probabilistic device by using integrated optics. CNOT-gates from linear optics provide only probabilistic outcomes and as such are not suitable for large-scale computation. In this paper, we show that arbitrary set of universal quantum gates and gates from Clifford group, needed in QECC, can be implemented based on cavity quantum electrodynamics (CQED). We further show that encoders/decoders for quantum LDPC codes can be implemented based on Hadamard and CNOT gates using CQED. Finally, we perform simulations and evaluate performance of several classes of quantum LDPC codes suitable for implementation in CQED technology.