I have a matrix
\documentclass{standalone}
\usepackage{amsmath}
$
P=
\begin{pmatrix}
0 & \gamma & \gamma & \gamma \\
0 & -2\tau -\gamma & 0& 0 \\
0 & 0 & -2\tau-\gamma & 0\\
0&0&0&-2\tai-\gamma
\end{pmatrix}
$
Which looks like. It has some submatrices we can identify.
\documentclass{standalone}
\usepackage{amsmath}
$
P =
\begin{pmatrix}
%
\begin{pmatrix} 0 \end{pmatrix} &
\begin{pmatrix} \gamma & \gamma & \gamma\end{pmatrix} \\
%
%
\begin{pmatrix} 0\\ 0\\ 0 \end{pmatrix} &
\begin{pmatrix}-2\tau -\gamma & 0& 0\\
0 & -2\tau -\gamma & 0\\
0 & 0 & -2\tau -\gamma
\end{pmatrix}
\end{pmatrix}
$
But the columns don't line up between the submatrices, and the parentheses overlap. Fixing the parentheses should be easy by just adding a bit more space between lines, but I haven't found a good way to control the columns.
I'm looking for a good option to fix this. I'd prefer to stick to \pmatrix
if possible. Is it possible to use pmatrix so that the columns align?