I want to unlock my iPhone 5s from virgin mobile?

I bought an iPhone 5s from virgin mobile and I know that virgin runs of sprints network and that it is a CDMA carrier but my iPhone uses a sim card and I want to know is there any way that I can unlock my phone and use it for t-mobile or any other company.

Use a code.

It should be already unlocked.

If you do so, you will be limited to 2G data (no 3G or LTE), and no MMS. SIri and iMessage will only function over wiFi.