Methods and systems for polylogarithmic-depth controlled-NOT gate implementation in quantum circuits and computers