what is the error in this equation
\begin{equation}
\noindent\(\pmb{|\psi \rangle =\alpha \right.| 0\rangle +\beta \right.| 1\rangle }\)
\end{equation}
what is the error in this equation
\begin{equation}
\noindent\(\pmb{|\psi \rangle =\alpha \right.| 0\rangle +\beta \right.| 1\rangle }\)
\end{equation}
I assume this is what you want to do:
\documentclass{article}
\begin{document}
\begin{equation}
\mathbf{|\psi \rangle =\alpha \left|0\right\rangle +\beta \left| 1\right\rangle }
\end{equation}
\end{document}
As @moewe already mentioned:
\noindent\( and \)Also:
\mathbf{...} instead of \pmb\right.| into \left| and \right\rangle \left and \right suggested here is as desired. Look at the uneven spacing of the |s in the output. If I'm not mistaken the \mathbf does nothing for \psi and in the question the bolding applied to the entire equation, not just the \psi (that's why the braces were around the entire expression, not just the \psi).
– moewe
Nov 01 '18 at 10:28
\mathbf only really bolds the 0 and the 1, one may want to consider \bm here...
– moewe
Nov 01 '18 at 10:35
\noindentseems unnecessary and should be removed (not sure if it would cause an error, but that would not surprise me). The\(and\)are not needed because you are in math mode already. Remove them, they can cause all sorts of issues here. You also don't need the\right.s especially since they have no matching\leftcounterpart - they will cause errors. Finally you will need to load\usepackage{amsmath}(if you haven't done that already) to use\pmb. – moewe Nov 01 '18 at 09:54\pmbis poor man's bold and if you zoom into the resulting PDF you can see that the effect is achieved by overlaying several copies of the same symbol with slightly different positions. I'm not sure how this will look printed on paper, but you may want to look into other alternatives. – moewe Nov 01 '18 at 10:04