
\documentclass[a4paper,12pt]{report}
\usepackage{amsthm,amssymb,amsmath,mathrsfs}
\usepackage{fontspec}
\usepackage{tikz}

\usepackage[arc,all]{xy}
\usepackage[options]{xy}
\usepackage{xepersian}

\settextfont[Scale=1.1]{XB Zar}
\setdigitfont{PGaramond}
\pagestyle{plain}
\begin{document}
\begin{center}
\usetikzlibrary{shapes,arrows,positioning}
\begin{tikzpicture}[
    scale=1,
    axis/.style={very thick, ->, >=stealth'},
    important line/.style={thick},
    dashed line/.style={dashed, thin},
    pile/.style={thick, ->, >=stealth', shorten <=2pt, shorten
    >=2pt},
    every node/.style={color=black}
    ]\label{fig:bicomplex}
\draw[color=gray] (-0.5,-0.5) grid (5.7,5.7);
   \draw[axis] (-0.5,0)  -- (6,0) node(xline)[right]
        {$p$};
    \draw[axis] (0,-0.5) -- (0,6) node(yline)[above] {$q$};
    \fill[red] (3,3) circle (2pt) node[right]{$M_{3,3}$};
     \fill[black] (2.6,3) circle (0.2pt) node[above]{$d'$};
     \fill[black] (3,2.5) circle (0.2pt) node[right]{$d''$};
        \fill[black] (4.6,5) circle (0.2pt) node[above]{$d'$};
     \fill[black] (5,4.5) circle (0.2pt) node[right]{$d''$};
     \draw[pile] (3,3) -- (3,2);
      \draw[pile] (3,3) -- (2,3);
      \fill[red] (2,2) circle (2pt) node[right] {$M_{2,2}$};
      \draw[pile] (2,2) -- (2,1);
      \draw[pile] (2,2) -- (1,2);
       \fill[red] (5,5) circle (2pt) node[right]{$M_{p,q}$};
     \draw[pile] (5,5) -- (5,4) ;
      \draw[pile] (5,5) -- (4,5);
              \end{tikzpicture}
         \end{center} 
\end{document}