How a Plucky Swedish Sub Took Out a US Carrier All on Its Own
https://www.popularmechanics.com/military/navy-ships/a19784775/gotland-class-sub-ronald-reagan-war-games/
In a real fight that Swedish sub would have never made it out of harbor.
And even if it did, it’s full load of torpedoes would not sink a carrier.