The TSP (Thrift Savings Plan) is similar to a 401K and is a Qualified plan.
Military retirement is considered a Non-Qualified plan. The law does not cover public sector pensions including federal government plans such as the military retirement system.