I'm looking for a way to achieve the same output (regarding the alignment of matrix entries) using the physics package - or simply a conformation that will work only with mathtools (like here). Either way, thx in advance.
\documentclass{standalone}
\usepackage{mathtools}
\usepackage{physics}
% workaround found by adding an optional argument to the original code
% (note the xparse package was already loaded with physics)
\DeclareDocumentCommand\pmqty{O{r} m}{\begin{pmatrix*}[#1]#2\end{pmatrix*}} % adjusted
% VS
% \DeclareDocumentCommand\pmqty{m}{\begin{pmatrix}#1\end{pmatrix}} % original
\DeclareDocumentCommand\pmqtyOld{m}{\begin{pmatrix}#1\end{pmatrix}} % for comparison
\begin{document}
$\begin{pmatrix*}[r]
-1 & 3 \\
2 & -4
\end{pmatrix*}$
$\pmqtyOld{
-1 & 3 \\
2 & -4
}$
$\pmqty{
-1 & 3 \\
2 & -4
}$
\end{document}

[ \Pmqty{-1 & 3 \ 2 & -4} ]` ??
– Jhor Apr 25 '20 at 17:05