Add basic QUBIT type class, plus a couple utility methods