follow this guide(i just googled it)
after jailbreaking, you should have cydia installed. Go to cydia and search for ultrasnow. Ultrasnow will let you unlock your phone. Make sure you have your tmobile chip in there and everything should be ok.