A Stirling engine is particularly well suited for a submarine because the engine is nearly silent and can use the surrounding sea water as a heat sink to increase efficiency
In 2005, HSwMS Gotland managed to snap several pictures of USS Ronald Reagan during a wargaming exercise in the Pacific Ocean, effectively "sinking" the aircraft carrier
https://en.wikipedia.org/wiki/Gotland-class_submarine
My own opinion is that aircraft carriers are very effective in projecting power around the world during peacetime or low intensity conflicts, but military planners recognize (I hope) that they will be quickly sunk in an all out war and have contingency plans.