Added Qubit algo