notes on implementing YM simulation in PSP