State tax filing

If your spouse passed away in 2024 then you can file your 2024 tax return as married filing jointly.  If your spouse passed away in 2023 or 2022, you will need to qualified child as a dependent for Surviving Spouse filing status.  If you do not have a child as a dependent then you have to file as Single.