Detailed Account of Complexity for Implementation of Circuit-Based Quantum Algorithms