modified - changed the QFTSandbox and the QuantumState to make it
compatible with a more rigorous interface setup.