A heart computed tomography (CT) scan uses X-rays to create detailed images of your heart. The test can help doctors evaluate the structure and function of the heart and the surrounding blood vessels.