State tax filing

You will file a non resident MD return  AND  a resident CA return on which you will get a credit for the taxes you pay to MD so you are not taxed twice.   In the TT program, in the MY INFO tab, you will indicate CA is your resident state and that you earned income in MD as well.   Then in the STATE tab you MUST complete the MD return FIRST (even if you will not file it first)  so the proper credit will carry to the CA return.