Resource Efficient Design Of Quantum Circuits For Cryptanalysis And Scientific Computing Applications