Simulating a measurement-induced phase transition for trapped-ion circuits