Issue 2187:IntQubit to work with inner products

I have tried to fix the above issue.But as it says "we will have to add the appropriate methods to the IntQubit class that call the methods of Qubit" but the above does not currently use the methods of Qubit. Is this fine or does it necessarily have to use the methods of Qubit. I hope this was what was to be done. Thanks. Tests work fine.