I’m trying to figure out how to use the pst-optexp package. However I can’t make the \beamsplitter work. Even with the code provided by the documentation (§4.20, p.46 of the English version of the documentation):
\documentclass{standalone}
\usepackage{pst-optexp}
\begin{document}
\begin{pspicture}(3,2)
\beamsplitter[beam](0,1)(2,1)(2,0){BS}
\end{pspicture}
\end{document}
I obtain this strange output:
I use the 5.2 version of the package and I am working with TeX Live 2016. No error is showing up during the compilation.
The only (somehow could be) related comment I have found about this is the one of Christoph here (below the answer)…
Edit
In fact by using the combination latex>dvips>ps2pdf, it works. However I would have liked to use XelateX if possible…

But if anyone has a better idea I am definitely interested :)
– Luc Aug 29 '17 at 14:52