How can I reverse a sex change operation?

Very difficult. Apart from the anatomical aspects, the psychological change may be unstable.