\documentclass{article}
\usepackage{physics}
\begin{document}
\fboxsep=0pt
This is some \fbox{$\ev*{\hat{O}_P}$} and then some.
\end{document}
There seems to be extra spacing added before the left angle bracket as opposed to the space after the right angle bracket when using \ev*.
Is there anything I can do to fix it if I want to continue using this command from the physics package?
By fix, I mean I want the spacing of the right angle bracket on both sides.
Edit: I realized it does not happen with the non-starred version of the command, \ev{\hat{O}_P} gives the correct spacing on both sides. And that the problem seems to carry over to other starred commands like \ket*{x} and \bra*{x} where additional space is added to the left of the output.

This is some \fbox{$\langle\hat{O}_P\rangle$} and then some., the spacing will be equal. – Oct 01 '18 at 05:10evcommand. I'm hoping for some patch I could implement to the command. – ksgj1 Oct 01 '18 at 05:23braketpackage and try\fbox{$\braket{\hat{O}_P}$}. – Oct 01 '18 at 09:06