WIP - Quantit and Qubit

The scripts have been tested carefully by Chuan and he has verified that they performs well. But the scripting has been done in a hurry so I appreciate any comments on the code for improvement.