Apple has doubled its market value in just two years to become the first $US2 trillion US company, as the tech sector surges.