1 Introduction

The quantum computational complexity was recently proposed by Susskind et al. [1,2,3,4,5] for the first time. They connected the black hole interior with the quantum computational complexity, which was defined as the minimal number of elementary operations (also named quantum gates) on constructing the boundary quantum state from a reference quantum state [4, 5]. This is a remarkable progress on understanding black hole interior. After that, the quantum complexity has been extensively investigated [6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]. The gravitational action with null boundaries was proposed and discussed in detail in Ref. [8], and the connection between the second law of thermodynamics with the quantum complexity was investigated in Ref. [19].

Stanford and Susskind first related the complexity \(\mathcal C\) with the spatial volume V of the Einstein–Rosen bridge which connects two boundaries as [30]

$$\begin{aligned} \mathcal C\sim \frac{V}{GL}, \end{aligned}$$
(1)

where G is the Newton constant and L is a length scale that should be chosen to be either the Anti-de Sitter (AdS) radius or the radius of the black hole horizon. This conjecture, named Complexity-Volume (CV) duality, has a lot of nice features and it has been tested in the shock wave geometries [5]. It is worthwhile noting that the length scale L should be chosen according to the explicit situation. The subsequent Complexity-Action (CA) duality does not involve any ambiguous quantities and preserves all the good features of the CV duality [5]. The CA duality relates the quantum complexity to the action of the black hole in the Wheeler–DeWitt (WDW) patch:

$$\begin{aligned} \mathcal C=\frac{A}{\pi \hbar }. \end{aligned}$$
(2)

The authors of Ref. [15] revisited the connection between the thermodynamical volume of the black hole and the action growth rate in the WDW patch at late time approximation. The UV divergence of the action in that region was investigated in Refs. [10, 17]. It was pointed out by Lloyd that the quantum complexity growth rate is bounded by [31]

$$\begin{aligned} \frac{\mathrm{{d}} \mathcal C}{\mathrm{{d}}t}\le \frac{2E}{\pi \hbar }, \end{aligned}$$
(3)

where E is the average energy of the quantum state relating to the ground state. If the CA duality is correct, the action growth rates of the black holes in the WDW patch will also be bounded. This was tested by computing the action growth rate. And some concrete forms of the action growth rate of the AdS black holes in the WDW patch at the late time approximation were proposed [4, 5].

However, the authors of Ref. [32] found that the above bound will be violated for both small and large charged static AdS black holes, so they proposed a new bound

$$\begin{aligned} \frac{\mathrm{{d}}A}{\mathrm{{d}}t}\le (M-\varOmega _+J-\mu _+Q)-(M-\varOmega _-J-\mu _-Q), \end{aligned}$$
(4)

where \(\varOmega \) and \(\mu \) denote, respectively, the angular velocity and chemical potential of the black holes, and the parameters M, J, and Q are the black hole mass, angular momentum, and charge, respectively. The subscript \(+\) (−) denotes the quantities evaluated at the outer (inner) horizon. They conjectured that all stationary AdS black holes could saturate this bound for gravity theories without higher derivative terms of curvature. As a test, the action growth rates of D-dimensional Reissner–Nordström–AdS black holes, Kerr–AdS black holes, rotating and charged BTZ black holes in general relativity (GR), as well as the charged Gauss–Bonnet–AdS black holes have been calculated. This conjecture was generalized to a more compact form in Ref. [20]. It was shown that the difference of the generalized enthalpy between the two corresponding horizons decides the action growth rate [20] and strong energy conditions of the matter outside the horizon of the black holes can ensure the validity of the complexity growth rate bound [18]. The action growth rates of the charged black holes with a single horizon were also studied in Ref. [24]. The Lloyd bounds of the action growth rates of black holes in Born–Infeld gravity and in f(R) gravity were also tested in Refs. [22, 23] by considering the contributions from the null surface and the joints. They found that the Lloyd bounds for charged black holes will usually be violated in both Born–Infeld gravity and f(R) gravity. Besides, the action growth rates based on the CA conjecture were also studied in massive gravity and higher derivative theories in Refs. [33, 34]. In this paper, we only focus on the conjecture (4) rather than the Lloyd bound, because the conjecture (4) is based on the violation of the Lloyd bound.

This paper is organized as follows. In Sect. 2, we first verify the KN case in GR. In Sect. 3 we calculate the action growth rate of the neutral and charged black holes in higher dimensional massive gravity within the WDW patch at the late time approximation, and study the influence of the massive graviton terms. Besides, whether the parameter k, which denotes the topology of the black hole horizon, will affect the action growth rate is studied. In Sect. 4 the action growth rate of the black holes in f(R) gravity is studied, for the cases of neutral, charged, and KN black holes. Finally, the conclusions are given in Sect. 5.

2 Action growth rate of Kerr–Newman black holes in GR

Before dealing with massive gravity and f(R) gravity, we start with the KN black holes in GR. The action is given by

$$\begin{aligned} \mathcal A= & {} \mathcal A_\mathrm{bk}+\mathcal A_\mathrm{bd}\nonumber \\= & {} \frac{1}{16 \pi G}\int _M \mathrm{{d}}^4x\sqrt{-g}\left( R-2 \varLambda -G F_{\mu \nu } F^{\mu \nu } \right) \nonumber \\&+\frac{1}{8 \pi G}\int _{\partial M}\mathrm{{d}}^3x\sqrt{-h}K, \end{aligned}$$
(5)

where \(\mathcal A_\mathrm{bk}\) and \(\mathcal A_\mathrm{bd}\) denote the actions of the bulk and boundary terms, respectively, and h is the induced metric of the hypersurface and K is the trace of the extrinsic curvature. The solutions of the metric and the electric potential are given in Refs. [35, 36]:

$$\begin{aligned} \mathrm{{d}}s^2= & {} -\left( \frac{\triangle _r}{\rho ^2}-\frac{\triangle _\theta \sin ^2\theta }{\rho ^2}a^2\right) \mathrm{{d}}t^2 +\frac{\rho ^2}{\triangle _r}\mathrm{{d}}r^2 +\frac{\rho ^2}{\triangle _\theta }\mathrm{{d}}\theta ^2\nonumber \\&+2\frac{a\triangle _r \sin ^2\theta -a(r^2+a^2)\triangle _\theta \sin ^2 \theta }{\rho ^2\varXi }\mathrm{{d}}t\mathrm{{d}}\phi \nonumber \\&+\frac{\sin ^2\theta }{\rho ^2\varXi ^2} \left[ (r^2+a^2)^2\triangle _\theta -a^2\triangle _r \sin ^2\theta \right] \mathrm{{d}}\phi ^2,\end{aligned}$$
(6)
$$\begin{aligned} A= & {} -\frac{qr}{\rho ^2}\mathrm{{d}}t+\frac{ qra \sin ^2\theta }{\varXi \rho ^2}\mathrm{{d}}\phi . \end{aligned}$$
(7)

Here we adopt the conventions of Ref. [37]. The metric functions are given by

$$\begin{aligned} \triangle _r= & {} \left( a^2+r^2\right) \left( 1+\frac{r^2}{l^2}\right) -2 Gmr+Gq^2,\nonumber \\ \triangle _{\theta }= & {} 1-\frac{a^2 \cos ^2\theta }{l^2}, \quad \rho ^2=a^2 \cos ^2\theta +r^2,\nonumber \\ \varXi= & {} 1-\frac{a^2}{l^2}, \end{aligned}$$
(8)

where a is the rotational parameter. Note that this solution is valid only for \(a^2<l^2\). The thermodynamical quantities are [37]

$$\begin{aligned} M= & {} \frac{m}{\varXi ^2},~J=\frac{a m}{\varXi ^2},~Q=\frac{q}{\varXi },\nonumber \\ \mu _{\pm }= & {} \frac{q r_{\pm }}{\left( r_{\pm }{}^2+a^2\right) },~\varOmega _{\pm }=\frac{a \varXi }{r_{\pm }{}^2+a^2}. \end{aligned}$$
(9)

Solving \(\triangle _r(r_{\pm })=0\), we can get

$$\begin{aligned} m= & {} \frac{\left( r_-+r_+\right) \left( a^2+l^2+r_-^2+r_+^2\right) }{2 G l^2},\nonumber \\ q^2= & {} \frac{r_- r_+ \left( l^2+r_-^2+r_+^2+r_- r_+\right) }{G l^2}\nonumber \\+ & {} a^2 \frac{\left( r_- r_+-l^2\right) }{G l^2}. \end{aligned}$$
(10)

The determinant of this metric is

$$\begin{aligned} \sqrt{-g}=\frac{\sin \theta }{\varXi }\rho ^2. \end{aligned}$$
(11)

The Ricci scalar R and the field strength \(F^2\) can be calculated straightforwardly as

$$\begin{aligned} R= & {} -\frac{12}{l^2},\nonumber \\ F^2= & {} -4 q^2\Big (\frac{ a^4 \cos (4 \theta )+3 a^4+4 a^2 \left( a^2-6 r^2\right) \cos (2 \theta )}{\left( a^2 \cos (2 \theta )+a^2+2 r^2\right) ^4}\nonumber \\&+\frac{8 r^4-24 a^2 r^2}{\left( a^2 \cos (2 \theta )+a^2+2 r^2\right) ^4}\Big ). \end{aligned}$$
(12)

Then we can get the action growth rate of the Einstein–Maxwell part

$$\begin{aligned} \frac{\mathrm{d}\mathcal A_\mathrm{bk}}{\mathrm{d}t}= & {} \frac{2\pi }{16 \pi G}\int _{r_-}^{r_+}\int _0^\pi \sqrt{-g}\left( R-2\varLambda -G F_{\mu \nu }F^{\mu \nu }\right) \mathrm{{d}}\theta \mathrm{{d}}r\nonumber \\= & {} \frac{1}{2} (r_+-r_-) \Bigg (\frac{l^2 q^2 \left( a^2-r_- r_+\right) }{\left( a^2- l^2\right) \left( a^2+r_-^2\right) \left( a^2+r_+^2\right) }\nonumber \\&+\frac{a^2+r_-^2+r_-r_++r_+^2}{G (a^2 - l^2)}\Bigg ). \end{aligned}$$
(13)

Note that we integrate the action from the inner horizon \(r_-\) to the outer horizon \(r_+\) because other regions of the WDW patch do not contribute to the action growth rate at late time approximation. The contribution of the region outside the horizon is independent on time and that of the region behind the past horizon shrinks exponentially to zero [5]. The trace of the extrinsic curvature K can be gotten as

$$\begin{aligned} K= & {} \frac{1}{\sqrt{-g}}\partial _r\left( \frac{\sqrt{-g}}{\rho } \sqrt{\triangle _r}\right) \nonumber \\= & {} \frac{ r \sqrt{\triangle _r}}{ \rho ^3 }+\frac{\partial _r \triangle _r}{2\rho \sqrt{\triangle _r}}. \end{aligned}$$
(14)

So the contribution from the boundary term will be

$$\begin{aligned} \frac{\mathrm{d}\mathcal A_\mathrm{bd}}{\mathrm{d}t}= & {} \frac{\partial _r \triangle r}{4 G \varXi } \bigg |^{r_+}_{r_-}\nonumber \\= & {} \left( r_+-r_-\right) \frac{ a^2+l^2+2 \left( r_-^2+r_+ r_-+r_+^2\right) }{2 G \left( l^2-a^2\right) }, \end{aligned}$$
(15)

where we have used \(\triangle _r (r_{\pm })=0\), and the angle part has been integrated. In the end, we can get the action growth rate of a KN AdS black hole in GR

$$\begin{aligned} \frac{\mathrm{d}\mathcal A}{\mathrm{d}t}= & {} \left( r_+-r_-\right) \Bigg (\frac{ a^4 \left( 2 l^2+r_-^2+r_+^2\right) }{2 G \left( l^2-a^2\right) \left( a^2+r_-^2\right) \left( a^2+r_+^2\right) }\nonumber \\&+\frac{a^2 \left( l^2 \left( r_--r_+\right) {}^2+\left( r_-^2+r_+^2\right) {}^2\right) }{2 G \left( l^2-a^2\right) \left( a^2+r_-^2\right) \left( a^2+r_+^2\right) }\nonumber \\&+\frac{2 r_-^2 r_+^2 \left( l^2+r_-^2+r_+^2+r_- r_+\right) }{2 G \left( l^2-a^2\right) \left( a^2+r_-^2\right) \left( a^2+r_+^2\right) }\Bigg ). \end{aligned}$$
(16)

With the help of the thermodynamic quantities (9), we can rewrite it in the following form:

$$\begin{aligned} \frac{\mathrm{d}\mathcal A}{\mathrm{d}t}=\left( M-\varOmega _+J - \mu _+Q\right) -\left( M- \varOmega _-J- \mu _-Q\right) . \end{aligned}$$
(17)

Clearly, this is just the action growth rate of a KN AdS black hole in GR speculated in Ref. [32].

3 Action growth rate of black holes in massive gravity

We first give a brief review of the black hole solutions in \((n+2)\)-dimensional massive gravity [38,39,40,41,42]. The action is given by [43, 44]

$$\begin{aligned} \mathcal A= & {} \mathcal A_\mathrm{bk}+\mathcal A_\mathrm{bd}\nonumber \\= & {} \frac{1}{16 \pi G}\int _M \mathrm{{d}}^{n+2}x\sqrt{-g}\Bigg (R+\frac{(n+1) n}{l^2}-G F^2\nonumber \\&+m^2 {\sum _{i=1}^4 c_i \mathcal {U}_i(g,\hat{f})}\Bigg )+\frac{1}{8\pi G}\int _{\partial M} \mathrm{{d}}^{n+1}x\sqrt{-h}K,\nonumber \\ \end{aligned}$$
(18)

where g, \(\hat{f}\), and m are, respectively, the spacetime metric, the reference metric, and the mass of the graviton. The coefficients \(c_i\) are negative constants if one requires \(m^2>0\) [44], and \(\mathcal {U}_i\) are defined by the following symmetric polynomials:

$$\begin{aligned} \mathcal {U}_1= & {} [\mathcal {K}], \nonumber \\ \mathcal {U}_2= & {} [\mathcal {K}]^2-[\mathcal {K}^2], \nonumber \\ \mathcal {U}_3= & {} [\mathcal {K}]^3-3[\mathcal {K}][\mathcal {K}^2]+2[\mathcal {K}^3], \nonumber \\ \mathcal {U}_4= & {} [\mathcal {K}]^4-6[\mathcal {K}^2][\mathcal {K}]^2+8[\mathcal {K}^3][\mathcal {K}] +3[\mathcal {K}^2]^2-6[\mathcal {K}^4],\nonumber \\ \end{aligned}$$
(19)

where [X] denotes the trace of the matrix X. The matrix \(\mathcal {K}^\mu _{~~\nu }\) is defined as \(\mathcal {K}^\mu _{~~\nu }=\sqrt{g^{\mu \alpha }\hat{f}_{\alpha \nu }}\). Varying action (18) with respect to the metric \(g_{\mu \nu }\) and the gauge field \(A_\mu \) we can get the field equations:

$$\begin{aligned}&R_{\mu \nu }-\frac{1}{2}Rg_{\mu \nu }-\frac{1}{2l^2}{n(n+1)}g_{\mu \nu }+m^2\chi _{\mu \nu }\nonumber \\&\quad =2G \left( F_{\mu \sigma }F_\nu ^{\sigma }-\frac{1}{4} g_{\mu \nu }F^2\right) , \nonumber \\&\quad \nabla _\mu F^{\mu \nu }=0, \end{aligned}$$
(20)

where the mass term \(\chi _{\mu \nu }\) is given by

$$\begin{aligned} \chi _{\mu \nu }=- & {} \frac{c_1}{2}\big (\mathcal {U}_1g_{\mu \nu }-\mathcal {K}_{\mu \nu }\big )\nonumber \\&-\frac{c_2}{2}\big (\mathcal {U}_2g_{\mu \nu }-2\mathcal {U}_1\mathcal {K}_{\mu \nu }+2\mathcal {K}^2_{\mu \nu }\big )\nonumber \\&-\frac{c_3}{2}\big (\mathcal {U}_3g_{\mu \nu }-3\mathcal U_2\mathcal K_{\mu \nu } +6\mathcal U_1\mathcal K^2_{\mu \nu }-6\mathcal K^3_{\mu \nu }\big )\nonumber \\&-\frac{c_4}{2}\big (\mathcal U_4g_{\mu \nu }-4\mathcal U_3\mathcal K_{\mu \nu }+12\mathcal U_2\mathcal K^2_{\mu \nu }\nonumber \\&-24\mathcal U_1\mathcal K^3_{\mu \nu }+24\mathcal K^4_{\mu \nu }\big ). \end{aligned}$$
(21)

The solution for a static black hole is [44]:

$$\begin{aligned} \mathrm{{d}}s^2= & {} -f(r)\mathrm{{d}}t^2+f^{-1}(r)\mathrm{{d}}r^2+r^2\hat{h}_{ij}\mathrm{{d}}x^i \mathrm{{d}}x^j\nonumber \\&(i,j=1,2,3,\cdots ,n) , \end{aligned}$$
(22)
$$\begin{aligned} \hat{f}_{\mu \nu }= & {} \text {diag}(0,0,\hat{h}_{ij}), \end{aligned}$$
(23)
$$\begin{aligned} A_\mu= & {} (A_t,0,0,\cdots ,0), \end{aligned}$$
(24)

where \(\hat{h}_{ij}\) is the induced metric of the hypersurface space. The explicit forms of f(r) and \(A_t\) are [44]

$$\begin{aligned} f(r)= & {} k+\frac{r^2}{l^2}-\frac{2G m_0}{r^{n-1}}+\frac{2G q^2}{n(n-1)r^{2(n-1)}}\nonumber \\&+\frac{c_1m^2}{n}r+c_2m^2+\frac{(n-1)c_3m^2}{r} \nonumber \\&+\frac{(n-1)(n-2)c_4m^2}{r^2},\end{aligned}$$
(25)
$$\begin{aligned} A_t= & {} \frac{q}{(n-1)r^{n-1}} - \frac{q}{(n-1)r_+^{n-1}}, \end{aligned}$$
(26)

where \(k=-1,0,1\) denotes the topology of the black hole horizon, corresponding to hyperbolic, Ricci flat, or spherical, respectively. The physical mass M and charge Q of the black hole are given by

$$\begin{aligned} M= & {} \frac{nV_n}{8\pi }m_0, \end{aligned}$$
(27)
$$\begin{aligned} Q= & {} \frac{V_n}{4\pi }q, \end{aligned}$$
(28)

where \(V_n\) is the volume of the n-dimensional space that depends on the topology of the black hole horizon. The PV criticality and the Van der Waals like behavior of the massive gravity black holes have been investigated in Refs. [45,46,47,48,49,50,51,52].

Next we will investigate the effects of the mass of the graviton, the dimension of spacetime, and the topology of the black hole horizon on the action growth rates for both the neutral and the charged massive black holes.

3.1 Action growth rate of the neutral black holes in higher dimensional massive gravity

For neutral black holes, there is no Maxwell field part in the action. With the metric (22), we can calculate the Ricci scalar R for the neutral black holes:

$$\begin{aligned} R=- & {} \frac{(n+1) (n+2)}{l^2}-\frac{c_1 m^2 (n+1)}{r}-\frac{c_2 m^2 n (n-1)}{r^2} \nonumber \\- & {} \frac{c_3 m^2 (n-1)^2 (n-2)}{r^3}\nonumber \\- & {} \frac{c_4 m^2 (n-1) (n-2)^2 (n-3)}{r^4}. \end{aligned}$$
(29)

Following Refs. [5, 32], the action growth rate of the bulk action in the WDW patch in the late time approximation limit is

$$\begin{aligned} \frac{\mathrm{d} \mathcal A_\mathrm{bk}}{\mathrm{d}t}= & {} \frac{V_n}{16\pi G} \int _{0 }^{r_h} r^n \Big (R+\frac{(n+1) n}{l^2}\nonumber \\&+m^2 {\sum _{i=1}^4 c_i \mathcal {U}_i(g,f)}\Big ) \, \mathrm{{d}}r\nonumber \\= & {} \frac{V_n}{16\pi G}\Bigg (-m^2\frac{c_1}{n}r_h^n+m^2c_3(n-1)r_h^{n-2}\nonumber \\&+2m^2c_4(n-1)(n-2)r_h^{n-3}-\frac{2}{l^2}r^{n+1} \Bigg ), \end{aligned}$$
(30)

where \(r_h\) denotes the horizon radius. Next, let us turn to the YGH boundary term. The trace of the extrinsic curvature with the metric (22) is

$$\begin{aligned} K= & {} \frac{1}{r^n}\partial _r(r^n\sqrt{f})\nonumber \\= & {} \frac{n}{r}\sqrt{f}+\frac{f'}{2\sqrt{f}}, \end{aligned}$$
(31)

where the prime denotes the derivative with respect to r. So the action growth rate of the surface term in the WDW patch is

$$\begin{aligned} \frac{\mathrm{d}\mathcal A_\mathrm{bd}}{\mathrm{d}t}= & {} \frac{V_n}{8\pi G}\bigg [r^n\sqrt{f}(\frac{n}{r}\sqrt{f}+\frac{f'}{2\sqrt{f}})\bigg ]^{r_h}_0\nonumber \\= & {} \frac{V_n}{8\pi G}\bigg (nr_h^{n-1}k+\frac{n+1}{l^2}r_h^{n+1}\nonumber \\&+\,(1+\frac{1}{2n})c_1m^2r_h^n+nc_2m^2r_h^{n-1}\nonumber \\&+\,(n-\frac{1}{2})(n-1)c_3m^2r_h^{n-2}\nonumber \\&+\,(n-1)^2(n-2)c_4m^2r_h^{n-3} \bigg ). \end{aligned}$$
(32)

Then we can get the total action growth rate of the higher dimensional massive neutral black holes in the WDW patch in the late time approximation limit:

$$\begin{aligned} \frac{\mathrm{d}\mathcal A}{\mathrm{d}t}= & {} \frac{\mathrm{d} \mathcal A_\mathrm{bk}}{\mathrm{d}t}+\frac{\mathrm{d}\mathcal A_\mathrm{bd}}{\mathrm{d}t}\nonumber \\= & {} \frac{n V_n}{8\pi G}\bigg (k r_h^{n-1}+\frac{r_h^{n+1}}{l^2}+\frac{1}{n}c_1m^2r_h^n\nonumber \\&+\,c_2m^2r_h^{n-1}+(n-1)c_3 m^2r_h^{n-2}\nonumber \\&+\,(n-1)(n-2)c_4m^2r_h^{n-3} \bigg ). \end{aligned}$$
(33)

Solving \(f(r_h)=0\), we get

$$\begin{aligned} m_0= & {} \frac{1}{2G}\Big (kr_h^{n-1}+\frac{r_h^{n+1}}{l^2}+\frac{1}{n}c_1m^2r_h^{n}\nonumber \\&+\,c_2m^2r_h^{n-1}+(n-1)c_3m^2r_h^{n-2}\nonumber \\&+\,(n-1)(n-2)c_4m^2r_h^{n-3}\Big ). \end{aligned}$$
(34)

Combining with Eq. (27), we can get the same result as Refs. [32, 33]:

$$\begin{aligned} \frac{\mathrm{d}\mathcal A}{\mathrm{d}t}=2M. \end{aligned}$$
(35)

If the CA conjecture is correct, then we will get

$$\begin{aligned} \frac{\mathrm{d}\mathcal C}{\mathrm{d}t}=\frac{2M}{\pi \hbar }. \end{aligned}$$
(36)

The result is independent of the spacetime dimension, the mass of graviton, and the topology of the black hole. If a neutral stationary AdS black hole in massive gravity has the same mass as the black hole in GR, they will have the same growth rate of complexity. So we conclude that a neutral massive black hole will also be the fastest computer.

3.2 Action growth rate of the charged black holes in higher dimensional massive gravity

For the case of a charged black hole, the field strength of the electromagnetic field turns out to be

$$\begin{aligned} F^2=-2 q^2 r^{-2 n}, \end{aligned}$$
(37)

and the parameters \(m_0\) and q can be solved from \(f(r_\pm )=0\),

$$\begin{aligned} m_0= & {} \frac{r_+r_-^{2n-1}}{2G(r_+r_-^n-r_-r_+^n)} \bigg (k+\frac{r_-^2}{l^2}+\frac{c_1}{n}m^2r_{-}+c_2m^2\nonumber \\&+(n-1)c_3m^2\frac{1}{r_-}+(n-1)(n-2)c_4 m^2\frac{1}{r_-^2}\bigg )\nonumber \\&-\frac{r_+^{2n-1}r_-}{2G(r_+r_-^n-r_-r_+^n)} \bigg (k+\frac{r_+^2}{l^2}+\frac{c_1}{n}m^2r_{+}+c_2m^2\nonumber \\&+(n-1)c_3m^2\frac{1}{r_+}+(n-1)(n-2)c_4 m^2\frac{1}{r_+^2}\bigg ),\nonumber \\ q^2= & {} \frac{(n-1)}{2G}\bigg (n k {r}_-^{n-1} {r}_+^{n-1}+\frac{n \left( {r}_-^{2n}{r}_+^{n-1}-{r}_-^{n-1}{r}_+^{2n}\right) }{l^2 \left( {r}_-^{n-1}- {r}_+^{n-1}\right) }\nonumber \\&-\frac{c_1m^2(r_-^{n}-r_+^n)}{r_-^{1-n}-r_+^{1-n}} +n c_2 m^2 {r}_+^{n-1}{r}_-^{n-1}\nonumber \\&+\frac{nc_3m^2(r_-^{n-2}-r_+^{n-2})}{r_+^{1-n}-r_-^{1-n}}\nonumber \\&+ \frac{(n-1)(n-2)c_4m^2(r_-^{n-3}-r_+^{n-3})}{r_+^{1-n}-r_-^{1-n}}\bigg ). \end{aligned}$$
(38)

The bulk action growth rate of the charged massive black hole within the WDW patch in the late time approximation limit can be calculated straightforwardly:

$$\begin{aligned} \frac{\mathrm{d}\mathcal A_\mathrm{bk}}{\mathrm{d}t}= & {} \frac{ V_n}{8\pi G}\bigg [k\left( {r}_+^{n-1}-{r}_-^{n-1}\right) +\frac{c_1}{2 n}m^2 \left( {r}_+^n-{r}_-^n\right) \nonumber \\&+c_2 m^2 \left( {r}_+^{n-1}-{r}_-^{n-1}\right) \nonumber \\&+\frac{3 (n-1)c_3}{2 } m^2 \left( {r}_+^{n-2}- {r}_-^{n-2}\right) \nonumber \\&+2 c_4 m^2 (n-2) (n-1) \left( {r}_+^{n-3}-{r}_-^{n-3}\right) \bigg ]. \end{aligned}$$
(39)

Besides, the contribution from the YGH surface term within the WDW patch is

$$\begin{aligned} \frac{\mathrm{d}\mathcal A_\mathrm{bd}}{\mathrm{d}t}= & {} \frac{V_n}{16\pi G}\Big [2k (n-1) \left( {r}_+^{n-1}-{r}_-^{n-1}\right) \nonumber \\&+\,c_1 m^2 \frac{(2 n-1)}{n} \left( {r}_+^n-{r}_-^n\right) \nonumber \\&+\, 2c_2 m^2 (n-1) \left( {r}_+^{n-1}-{r}_-^{n-1}\right) \nonumber \\&+\,c_3 m^2 (n-1) (2 n-3) \left( {r}_+^{n-2}-{r}_-^{n-2}\right) \nonumber \\&+\,2c_4 m^2 (n-2)^2 (n-1) \left( {r}_+^{n-3}-{r}_-^{n-3}\right) \Big ]. \end{aligned}$$
(40)

Therefore, the total action growth rate of the charged massive black holes in the WDW patch in the late time approximation limit is

$$\begin{aligned} \frac{\mathrm{d}\mathcal A}{\mathrm{d}t}= & {} \frac{\mathrm{d}\mathcal A_\mathrm{bk}}{\mathrm{d}t}+\frac{\mathrm{d}\mathcal A_\mathrm{bd}}{\mathrm{d}t}\nonumber \\= & {} \frac{4\pi }{(n-1)V_n}Q^2\left( \frac{1}{r_-^{n-1}}-\frac{1}{r_+^{n-1}}\right) \nonumber \\= & {} \mu _- Q-\mu _+ Q, \end{aligned}$$
(41)

where we have used the charge of the black hole (28), and the chemical potential is defined as follows:

$$\begin{aligned} \mu _{\pm } =\frac{q}{(n-1) r_{\pm }^{n-1}}. \end{aligned}$$
(42)

From Eq. (41), we can see that, no matter what value k takes, the result is consistent with that of Ref. [32]. In other words, the topology of the charged black hole horizon will not affect the quantum complexity growth rate. However, as the authors of [33] showed, when the mass M and charge Q of the massive gravity black holes are the same as that of the black holes in GR, the complexity of the charged black holes in massive gravity theory will grow faster than that of the charged black holes in GR. The reason is as follows. If we define the quantities in GR with a hat, then we will get

$$\begin{aligned} \hat{f}(r)-f(r)= & {} - m^2\Big (\frac{c_1}{n}r+c_2+\frac{(n-1)c_3}{r}\nonumber \\&+\frac{(n-1)(n-2)c_4}{r^2}\Big )>0, \end{aligned}$$
(43)

for negative parameters \(c_i\), which will ensure the positivity of the mass square of graviton. So we have the following relations:

$$\begin{aligned} r_-<\hat{r}_- \quad \text {and}\quad r_+>\hat{r}_+. \end{aligned}$$
(44)

Having

$$\begin{aligned} \frac{\mathrm{d}\mathcal C}{\mathrm{d}t}=\frac{2\kappa ^2}{V_n}Q^2\left( \frac{1}{r_-^{n-1}}-\frac{1}{r_+^{n-1}} \right) , \end{aligned}$$
(45)

and

$$\begin{aligned} \frac{\mathrm{d}\hat{\mathcal C}}{\mathrm{d}t}=\frac{2\kappa ^2}{V_n}Q^2\left( \frac{1}{\hat{r}_-^{n-1}}-\frac{1}{\hat{r}_+^{n-1}} \right) , \end{aligned}$$
(46)

one has

$$\begin{aligned} \frac{\mathrm{d}\mathcal C}{\mathrm{d}t}>\frac{\mathrm{d}\hat{\mathcal C}}{\mathrm{d}t}. \end{aligned}$$
(47)

So, charged black holes in massive gravity are faster computers than charged black holes in GR, though the bound (4) is not exceeded.

4 Action growth rate of black holes in f(R) gravity

The action for f(R)-Maxwell gravity is

$$\begin{aligned} \mathcal A= & {} \mathcal A_\mathrm{bk}+\mathcal A_\mathrm{bd}\nonumber \\= & {} \frac{1}{16\pi G}\int _M \mathrm{{d}}^4x\sqrt{-g}\left[ R +f (R)-GF^2\right] \nonumber \\&+\frac{1}{8\pi G}\int _{\partial M}\mathrm{{d}}^3x\sqrt{-h}\left[ \left( 1+ f'(R) \right) K\right] , \end{aligned}$$
(48)

where the prime denotes the derivative with respect to R, and the YGH surface term is different from that of in GR [53]. The static black hole solution was found in Ref. [54]. The authors assumed the following metric form:

$$\begin{aligned} \mathrm{{d}}s^2=-N(r)\mathrm{{d}}t^2+\frac{\mathrm{{d}}r^2}{N(r)}+r^2\mathrm{{d}}\varOmega _2^2, \end{aligned}$$
(49)

with the metric function given by

$$\begin{aligned} N(r)=1-\frac{2Gm}{r}+\frac{Gq^2}{(1+f'(R_0))r^2}-\frac{R_0}{12}r^2. \end{aligned}$$
(50)

Here the parameters m and q are related to the physical mass and charge,

$$\begin{aligned} M= & {} (1+f'(R_0))m,\nonumber \\ Q= & {} \frac{q}{\sqrt{1+f'(R_0)}}. \end{aligned}$$
(51)

According to Ref. [55], \(R_0\) is the constant scalar curvature

$$\begin{aligned} R_0=\frac{2f(R_0)}{f'(R_0)-1}=4\varLambda =-\frac{12}{l^2}, \end{aligned}$$
(52)

where \(\varLambda \) is the cosmology constant and l is the AdS radius. Note that, in order to get constant curvature, the trace of the energy-momentum tensor of the Maxwell field should be zero, in other words, the spacetime should be four dimensional [55]. The other solutions and thermodynamical qualities for f(R) gravity black holes have also been investigated in Refs. [56,57,58,59,60,61,62,63,64,65]. The authors of [32] conjectured that only the stationary black holes in gravity theories without higher derivative terms of curvature can saturate Eq. (4). So what will the situation be in f(R) gravity?

4.1 Action growth rate of the neutral black holes in f(R) gravity

In this section we will calculate the action growth rate of a static neutral black hole in f(R) gravity within the WDW patch in the late time approximation limit.

We can get the mass parameter from \(N(r_h)=0\):

$$\begin{aligned} m=\frac{1}{2G}\left( r_h+\frac{r_h^3}{l^2}\right) . \end{aligned}$$
(53)

The contribution from the bulk action is

$$\begin{aligned} \frac{\mathrm{d}\mathcal A_{bk}}{\mathrm{d}t}= & {} \frac{4 \pi }{16 \pi G}\int _{0}^{ r_h} r^2 (f(R_0)+R_0) \, \mathrm{{d}}r\nonumber \\= & {} -\frac{1+f'(R_0)}{2G l^2}r_h^2. \end{aligned}$$
(54)

The extrinsic curvature with the metric (49) is

$$\begin{aligned} K=\frac{2}{r}\sqrt{N}+\frac{N'}{2\sqrt{N}}, \end{aligned}$$
(55)

so the action growth rate of the YGH surface term in the WDW patch in the late time approximation limit is

$$\begin{aligned} \frac{\mathrm{d}\mathcal A_\mathrm{bd}}{\mathrm{d}t}= & {} \frac{4\pi }{8\pi G}r^2(1+f'(R_0))\sqrt{N} K|^{r_h}_0\nonumber \\= & {} \frac{1+f'(R_0)}{2G}(2r_h+\frac{3}{l^2}r_h^3). \end{aligned}$$
(56)

Thus the total action growth rate will be

$$\begin{aligned} \frac{\mathrm{d}\mathcal A}{\mathrm{d}t}= & {} \frac{\mathrm{d}\mathcal A_\mathrm{bk}}{\mathrm{d}t}+\frac{\mathrm{d}\mathcal A_\mathrm{bd}}{\mathrm{d}t}\nonumber \\= & {} 2(1+f'(R_0))m\nonumber \\= & {} 2M, \end{aligned}$$
(57)

where we have used Eqs. (51) and (53). The interesting thing is that, in f(R) gravity theory, the action growth rate Eq. (4) can also be saturated. That is to say, the higher derivative term of curvature in this theory does not change the action growth rate, so the neutral black holes in f(R) gravity will still be the fastest computer. This result has been observed in Refs. [23, 34].

4.2 Action growth rate of charged black holes in f(R) gravity

The electromagnetic field strength is

$$\begin{aligned} F^2=-\frac{2 q^2}{r^4}. \end{aligned}$$
(58)

The parameters of the mass and charge in the function N(r) can be solved from \(N(r_{\pm })=0\):

$$\begin{aligned} m= & {} \frac{\left( r_-+r_+\right) \left( l^2+r_-^2+r_+^2\right) }{2 G l^2},\end{aligned}$$
(59)
$$\begin{aligned} q^2= & {} \frac{r_- r_+ \left( 1 +f'(R_0)\right) \left( l^2+r_-^2+r_+^2+r_- r_+\right) }{G l^2}. \end{aligned}$$
(60)

Then the bulk action growth rate of a charged black hole in f(R) gravity within the WDW patch in the late time approximation limit can be calculated:

$$\begin{aligned} \frac{\mathrm{d}\mathcal A_\mathrm{bk}}{\mathrm{d}t}= & {} \frac{\left( r_-^3-r_+^3\right) \left( 1+f'(R_0)\right) }{2 G l^2}\nonumber \\&+\frac{1}{2} q^2 \left( \frac{1}{r_-}-\frac{1}{r_+}\right) . \end{aligned}$$
(61)

And the contribution from the YGH surface term is

$$\begin{aligned} \frac{\mathrm{d}\mathcal A_\mathrm{bd}}{\mathrm{d}t}= & {} (1+f'(R_0)) \left( r_+-r_-\right) \nonumber \\&\times \frac{ 2 l^2+3 \left( r_-^2+r_+ r_-+r_+^2\right) }{2 G l^2}\nonumber \\&-\frac{q^2 \left( r_+-r_-\right) }{2 r_- r_+}. \end{aligned}$$
(62)

Then we can get the total action growth rate,

$$\begin{aligned} \frac{\mathrm{d}\mathcal A}{\mathrm{d}t}= & {} \frac{\mathrm{d}\mathcal A_\mathrm{bk}}{\mathrm{d}t}+\frac{\mathrm{d}\mathcal A_\mathrm{bd}}{\mathrm{d}t}\nonumber \\= & {} \frac{\left( r_+-r_-\right) \left( 1+f'(R_0)\right) \left( l^2+r_-^2+r_+^2+r_-r_+\right) }{G l^2}\nonumber \\= & {} \mu _- Q-\mu _+ Q, \end{aligned}$$
(63)

where the chemical potentials at the inner and outer horizon are \(\mu _{\pm }=\frac{q\sqrt{1+f'(R_0)} }{r_{\pm }}\). Clearly, the action growth rate of the static charged black holes in f(R) gravity can also saturate Eq. (4). It means that the higher order derivative of the curvature term does not reduce the action growth rate of black holes within the WDW patch in the late time approximation limit. Though the contributions from the null surfaces and the joints were considered in Ref. [23], the result is the same as ours.

4.3 Action growth rate of Kerr–Newman black holes in f(R) gravity

The KN solution for a constant curvature black hole in f(R) gravity was found in Ref. [58]:

$$\begin{aligned} \mathrm{{d}}s^2=- & {} \left( \frac{\triangle _r}{\rho ^2\varXi ^2}-\frac{\triangle _\theta \sin ^2\theta }{\rho ^2\varXi ^2}a^2\right) \mathrm{{d}}t^2\nonumber \\+ & {} 2\frac{a\triangle _r \sin ^2\theta -a(r^2+a^2)\triangle _\theta \sin ^2\theta }{\rho ^2\varXi ^2}\mathrm{{d}}t\mathrm{{d}}\phi \nonumber \\+ & {} \frac{\rho ^2}{\triangle _r}\mathrm{{d}}r^2 +\frac{\rho ^2}{\triangle _\theta }\mathrm{{d}}\theta ^2\nonumber \\+ & {} \frac{\sin ^2\theta }{\rho ^2\varXi ^2} \left[ (r^2+a^2)^2\triangle _\theta -a^2\triangle _r\sin ^2\theta \right] \mathrm{{d}}\phi ^2, \end{aligned}$$
(64)

where a is the rotating parameter and

$$\begin{aligned} \triangle _r= & {} \left( a^2+r^2\right) \left( 1-\frac{R_0}{12}r^2\right) +\frac{Gq^2}{1 +f'(R_0)}-2 Gmr,\nonumber \\ \triangle _{\theta }= & {} 1+\frac{ R_0}{12} a^2 \cos ^2\theta ,\nonumber \\ \varXi= & {} 1+\frac{ R_0}{12}a^2,\nonumber \\ \rho ^2= & {} r^2 +a^2 \cos ^2\theta . \end{aligned}$$
(65)

Here we take the value of the Ricci scalar \(R_0\) as a constant which is the same as Eq. (52). We can solve the mass parameter m and electric charge parameter q from \(\triangle _r(r_{\pm })=0\),

$$\begin{aligned} m= & {} \frac{\left( r_-+r_+\right) \left( a^2+l^2+r_-^2+r_+^2\right) }{2 G l^2},\nonumber \\ q^2= & {} \frac{\left( 1 +f'(R_0)\right) }{G l^2} \Big (a^2 \left( r_- r_+-l^2\right) \nonumber \\&+r_- r_+\left( l^2+r_-^2+r_- r_++r_+^2\right) \Big ). \end{aligned}$$
(66)

The electromagnetic field is described by

$$\begin{aligned} A=- & {} \frac{qr}{\rho ^2}\left( \frac{\mathrm{d}t}{\varXi }-a\sin ^2\theta \frac{\mathrm{d}\phi }{\varXi }\right) ,\nonumber \\ F=- & {} \frac{q(r^2-a^2\cos ^2\theta )}{\rho ^4} \left( \frac{\mathrm{d}t}{\varXi }-a\sin ^2\theta \frac{\mathrm{d}\phi }{\varXi }\right) \wedge \mathrm{{d}}r\nonumber \\- & {} \frac{2qra\cos \theta \sin \theta }{\rho ^4}\mathrm{{d}}\theta \wedge \left( a\frac{\mathrm{d}t}{\varXi }-(r^2+a^2)\frac{\mathrm{d}\phi }{\varXi }\right) . \end{aligned}$$
(67)

The action growth rate of the bulk part can be calculated:

$$\begin{aligned} \frac{\mathrm{d}\mathcal A_{bk}}{\mathrm{d}t}= & {} \left( 1+f'(R_0)\right) l^2\left( r_--r_+\right) \frac{a^2+r_-^2+r_+^2+r_- r_+}{2 G \left( l^2-a^2\right) ^2}\nonumber \\&-\frac{l^4 q^2 \left( r_+-r_-\right) \left( a^2-r_- r_+\right) }{2 \left( l^2-a^2\right) ^2 \left( a^2+r_-^2\right) \left( a^2+r_+^2\right) }. \end{aligned}$$
(68)

For the boundary term, we take the same procedure as in GR. Using the condition \(\triangle _r(r_\pm )=0\), we have

$$\begin{aligned} \frac{\mathrm{d}\mathcal A_{bd}}{\mathrm{d}t}=&\frac{\left( 1 + f'(R_0)\right) l^2 \left( r_+-r_-\right) }{2 G \left( l^2-a^2\right) ^2}\nonumber \\&\times \left( a^2+l^2+2\left( r_-^2+r_+ r_-+r_+^2\right) \right) . \end{aligned}$$
(69)

The angular velocity \(\varOmega \), electric potential \(\mu \), physical mass M, charge Q, and angular momentum J are [58]

$$\begin{aligned} \varOmega _{\pm }= & {} \frac{a}{a^2+r_{\pm }^2},\nonumber \\ \mu _{\pm }= & {} \frac{qr_{\pm }}{\varXi (a^2+r_{\pm }^2)},\nonumber \\ M= & {} (1+f'(R_0))\frac{m}{\varXi },\nonumber \\ Q= & {} \frac{q}{\varXi },\nonumber \\ J= & {} (1+f'(R_0))\frac{am}{\varXi ^2}. \end{aligned}$$
(70)

With the help of these quantities, we finally obtain

$$\begin{aligned} \frac{\mathrm{d}\mathcal A}{\mathrm{d}t}=\left( M- \varOmega _+J- \mu _+Q\right) -\left( M- \varOmega _-J- \mu _-Q\right) . \end{aligned}$$
(71)

So we confirmed the conjecture of Ref. [32].

In the limit \(a\rightarrow 0\), the KN black hole recovers to the charged black hole which can be seen from the metrics (6 7) and (64). The angular velocity and angular momentum will also approach zero. Therefore, the action growth rate can recover to the charged black hole case. Furthermore, in the neutral limit, \(Q\rightarrow 0\), the inner horizon will disappear, i.e., \(r_-\rightarrow 0\). In this case, the term \(\mu _+Q\) approaches zero and the term \(\mu _- Q\) approaches 2M, so the action growth rate approaches 2M, which recovers to the neutral case. These analyses are valid not only for GR but also for massive gravity and f(R) gravity.

What we have done shows that all the action growth rates of neutral, charged, and KN black holes in f(R) gravity can saturate the conjecture (4), because what we have investigated is the case of constant curvature. From the action (48) we can see that the higher derivative term, i.e., the f(R) term, only contributes to the cosmology constant for the constant curvature case. In other words, the higher derivative term has no contribution to the action growth rate. Though the boundary term is changed, the result still can saturate the bound (4). As for the other higher derivative cases, the results may be different, and this is an interesting question to investigate.

5 Conclusion and discussion

The action of a stationary AdS black hole within the WDW patch has been related to the quantum complexity of a holographic state. Following the procedure in Ref. [32], we calculated the action growth rate of the static and stationary AdS black holes in massive gravity and f(R) gravity within the WDW patch at the late time approximation.

For massive gravity, we found that the action growth rate of the black hole does not depend on the parameter k. That is to say, no matter what the topology of the black hole is, the action growth rate will saturate the bound (4). The action growth rate equals 2M for a neutral static AdS black hole, and it is the difference value of \(M-\mu Q\) at the inner and outer horizons for a charged static AdS black hole. Though the structure of the growth rate does not change, the effect of the massive graviton terms will slow down the growth rate for the charged static AdS black holes in massive gravity which has the same mass and charge as the black holes in GR. But the massive graviton terms do not have effect on the neutral static AdS black holes. These results are consistent with that of Ref. [33].

For the f(R) gravity, we found that the bound (4) of the action growth rate does not change for neutral, charged, and KN AdS black holes. Because the f(R) term for the case of constant curvature only contributes to the action a cosmology constant term, so the results are expected. Our results checked the conjecture proposed in Ref. [32] and showed more abundant features on the action growth rate as well as the quantum complexity. For other higher derivative gravities, this conjecture should be checked in detail.

Though the topology of the spacetime studied in this paper has no influence on the action growth rate, the result may be different for other nontrivial topologically black hole spacetime. It is well known that there are many interesting effects of the nontrivial topology in black hole spacetime. For example, black holes with topologically nontrivial \(S^2\)-cycle have the same conserved charge at infinity as the Breckenridge–Myers–Peet–Vafa (BMPV) black hole but greater entropy than the BMPV black hole [66, 67]. As the action of the WDW patch of the black hole is dual to the quantum complexity of the quantum state, to study the influence of the nontrivial topology on the action growth rate will be a further test on the CA duality. And this may lead to a deeper understanding of the black hole interior. However, the spacetime of the black hole with nontrivial topology found in Refs. [66, 67] is asymptotically flat, and we have no idea of the dual quantum state of the flat spacetime, and hence of the quantum complexity. The solutions found in Ref. [66] can be generalized to six dimensions, and the spacetime is asymptotically \(AdS_3\times S^3\), however, the CFT dual of the bubbling geometry is still unknown [68, 69]. Anyway, this would be an interesting direction.

Besides, the black hole interior has also been a mystery, we hope that we can learn more about this from the view point of quantum complexity.