The correlated errors in superconducting qubits have been linked to high-energy particle impacts from cosmic rays, but a direct observation has been lacking. Here, the authors measure the quasiparticle bursts and correlated errors and separate the contributions of cosmic-ray muons and γ-rays in a 63-qubit processor.