Studies Of A Quantum Scheduling Algorithm And On Quantum Error Correction