1 Introduction

In the era of big data and cloud computing, data can bring much convenience to human life, but personal information leakage will be particularly prominent. Therefore, how to effectively ensure information security is of great significance.

Classical cryptography has always been a popular choice, but it will face the threat of breakthrough in polynomial time with the emergence of quantum algorithm [1, 2]. Quantum cryptography has been proved to be unconditionally secure on insecure channels, and its security is guaranteed by quantum mechanics such as Heisenberg uncertainty principle and non-cloning theorem. Hence, more and more attention has been paid to quantum cryptography by industry and academia. In 1993, Bennett et al.[3] initiated the quantum teleportation (QT) protocol, which is to transfer an unknown state. Later, Lo [4] designed a simple protocol for transmitting a known state utilizing the same quantum resource as in QT but without Bell measurement and with lesser classical communication. Such protocol is called remote state preparation (RSP) [4, 5]. The shortcomings of RSP are: (a) all information of the prepared state is disclosed to the preparer and (b) unit success probability cannot be reached in general. In 2007, Xia et al. [6] proposed a new protocol called joint remote state preparation (JRSP). In JRSP, there are several preparers, each of them is allowed to know only part of the information of the prepared state so that no subsets of them are able to infer the state, thus resolving the shortcoming (a). Moreover, by using feed-forward measurement [7] (i.e., measuring in sequence, and the future measurement basis depends on the previous measurement results), JRSP can always be successful [8,9,10], thus resolving the shortcoming (b).

In the realistic environment, quantum control of global task is often needed. This can be achieved by adding a supervisor who has the right to decide at the last minute to complete a task after careful consideration of all relevant situations. Controlled teleportation [11, 12], controlled RSP [13,14,15,16,17,18], controlled quantum dialogue [19], controlled remote implementation of partially unknown quantum operation [20, 21], etc. have been investigated in detail. In order to be able to control in a quantum way, the supervisor must share beforehand with the preparers as well as with the receiver a quantum resource served as a quantum channel which is generally considered to be maximally entangled for best performance. For instance, a maximally entangled quantum channel leads to unit success probability together with feed-forward measurement strategy [8,9,10]. However, due to the influence of noise, the decoherence effects will cause the maximally entangled states to evolve into partially entangled states. In addition, literature [22] proposed a possible solution to cope with an outside attack by using a partially entangled resource whose identifying parameters are kept confidential from any outsider. Based on the above reasons, some scholars use partially entangled quantum resources as quantum channels to design quantum information transmission protocols [23,24,25]. Usually, the parameters of the partially entangled resource are assumed to be known by the receiver [23, 24], who can use this knowledge to recover the desired state from his/her collapsed state. The cost of recovery process is the mandatory requirement of auxiliary qubits, auxiliary two qubit gates as well as measurements on auxiliary qubits, and the total probability of success is always less than 1. If the knowledge of the parameters of the partially entangled quantum channel is transferred from the receiver to the supervisor who executes optimal POVM (positive operator-valued measure) measurements on his/her qubits to guide the receiver to recover the desired state without consuming any auxiliary resources, then there is always a finite probability of failure when an ambiguous measurement output is obtained [25]. Fortunately, in 2017, Peng et al. [26] proposed a perfect protocol for multi-hop controlled QT of arbitrary single-qubit state by using an appropriate class of partially entangled quantum resources as channels. In this protocol, instead of POVM measurement, each supervisor can reconstruct the desired state by performing a rotation operation and projection measurement instead of POVM measurement; thus, the defects are overcome mentioned above. Ref. [26] gives us an enlightenment: for an intended task, there may be appropriate resources via which the performance of the task would be the best. Are there any partially entangled quantum resources to be served as channel for perfect controlled JRSP of arbitrary multi-qubit states? In this paper, we will answer the above question, that is, how to generate such partially entangled quantum resources and how to use them to implement controlled JRSP perfectly. An added interesting feature is that the implementation is independent of the entanglement degree of the shared partially entangled quantum channels, which is different from all previous controlled JRSP protocols.

The rest of this paper is organized as follows. In Sect. 2, we construct a quantum circuit to prepare partially entangled state for our quantum tasks. In Sects. 3 and 4, we explore how to realize the controlled JRSP for arbitrary two- and three-qubit states, respectively. By parity of reasoning, we present the controlled JRSP protocol for arbitrary multi-qubit states and give the precise construction methods of multi-qubit measurement basis about real parameter and complex parameter in Sect. 5. Finally, some discussion and summary are given in Sect. 6.

2 The partially entangled quantum channel

In order to accomplish our quantum tasks, we employ the following four-qubit partially entangled state as quantum channel

$$\begin{aligned} |Q\rangle _{1234}=\frac{1}{\sqrt{2}}(|0000\rangle + \cos \theta |1110\rangle +\sin \theta |1111\rangle )_{1234}, \end{aligned}$$
(1)

where \(\theta \in [0,\pi /2]\). This state is characterized by the angle \(\theta \) whose value is only known by the supervisor. The entanglement among qubit 1, qubit 2 and qubit 3 is always independent of parameter \(\theta \). However, parameter \(\theta \) influences the entanglement between qubit 4 and the others. Obviously, if parameter \(\theta \) satisfies its value of sine with 0, the qubit of the supervisor is totally disentangled from the other ones. Besides this case, the state (1) possesses some degree of entanglement between the qubit of the supervisor and the remaining qubit group, justifying him/her as "quantum" controller. In particular, for the value of the angle which the sine is equal to \(\pm 1\), the degree of entanglement is maximal. Of importance is the fact that the value of \(\theta \) is consciously assigned only to the supervisor. This obviously enhances the security level. Even if the qubits of the supervisor and the receiver are unexpectedly captured by the eavesdropper–a malicious enemy, the eavesdropper cannot determine the correct recovery actions because he/she has no information about the angle.

Now we proceed to constructing a quantum circuit that generates the state \(|Q\rangle _{1234}\) from the initial separable state \(|0000\rangle _{1234}\) as shown in Fig. 1.

Fig. 1
figure 1

Quantum circuit for preparing \(|Q\rangle _{1234}\)

In Fig. 1, the circuit is read from left to right and each single line denotes a qubit. This quantum circuit contains a single-qubit Hadamard gate \(H=\frac{1}{\sqrt{2}}(|0\rangle \langle 0|+|1\rangle \langle 0|+ |0\rangle \langle 1|-|1\rangle \langle 1|)\), the two-qubit controlled-Not gate (CNOT) \({\mathscr {C}}|i,j\rangle =|i,i\oplus j\rangle \) (\(\oplus \) is an addition about modulo 2) and the rotation gate

$$\begin{aligned} R_y(\theta )=\left( \begin{array}{cc} \cos (\theta /2) &{} -\sin (\theta /2) \\ \sin (\theta /2) &{} \cos (\theta /2) \\ \end{array} \right) \end{aligned}$$

with \(\theta \) the angle of rotation around y-axis. The Hadamard gate and the first three CNOTs transform the input state \(|0000\rangle _{1234}\) to the well-known four-qubit GHZ state \(|GHZ\rangle _{1234}=\frac{1}{\sqrt{2}}(|0000\rangle +|1111\rangle )_{1234}\). After the subsequent \(R_y(-\theta )\), CNOT and \(R_y(\theta )\) gates, \(|GHZ\rangle _{1234}\) can be transformed to the desired four-qubit partially entangled state \(|Q\rangle _{1234}\), expressed as (1). In this paper, we are interested in parameter \(\theta \in (0, \pi /2)\) for which the state \(|Q\rangle _{1234}\) is partially entangled with entanglement degree \(|sin\theta |\) quantified by the concurrence.

3 Controlled JRSP for arbitrary two-qubit states

Suppose that the state to be prepared for a remote party, called the receiver Bob, has the form

$$\begin{aligned} |\phi \rangle _2=a_0e^{i\alpha _0}|00\rangle +a_1e^{i\alpha _1}|01\rangle + a_2e^{i\alpha _2}|10\rangle +a_3e^{i\alpha _3}|11\rangle , \end{aligned}$$
(2)

where real numbers \(\alpha _j\in [0,2\pi )\) (\(j=0,1,2,3\)) and real numbers \(a_j\) (\(j=0,1,2,3\)) satisfy \(\sum ^3_{j=0}a^2_j=1\). The values of \(a_0,a_1,a_2\) and \(a_3\) are given to Alice\(_1\), while that of \(\alpha _0, \alpha _1, \alpha _2\) and \(\alpha _3\) to Alice\(_2\), who serve as the two preparers. Clearly, no one of the two preparers alone is able to infer \(|\phi \rangle _2\). Let Charlie be the supervisor who, as Bob, knows nothing about \(|\phi \rangle _2\). Quantum channel is composed of the following two partially entangled states

$$\begin{aligned} \begin{aligned} |Q\rangle _{A_1A'_1B_1C_1}&=\frac{1}{\sqrt{2}}(|0000\rangle +\cos \theta _1|1110\rangle +\sin \theta _1|1111\rangle )_{A_1A'_1B_1C_1},&\\ |Q\rangle _{A_2A'_2B_2C_2}&=\frac{1}{\sqrt{2}}(|0000\rangle +\cos \theta _2|1110\rangle +\sin \theta _2|1111\rangle )_{A_2A'_2B_2C_2},&\\ \end{aligned}\end{aligned}$$
(3)

where the real numbers \(\theta _1,\theta _2\in [0,\pi /2]\) whose values we let only the supervisor Charlie (not the receiver Bob) know. Without loss of generality, qubits \((A_1,A_2)\) belong to Alice\(_1\), while qubits \((A'_1,A'_2)\), \((B_1,B_2)\) and \((C_1,C_2)\) are hold by Alice\(_2\), Bob and Charlie, respectively.

Step 1 For remotely preparing arbitrary two-qubit state (2), Alice\(_1\) would perform the special measurement basis \(\{|\xi _k\rangle |k=0,1,2,3\}\) on qubits \((A_1,A_2)\), which are given by

$$\begin{aligned} \left( \begin{array}{c} |\xi _0\rangle \\ |\xi _1\rangle \\ |\xi _2\rangle \\ |\xi _3\rangle \\ \end{array}\right) =\left( \begin{array}{cccc} a_0 &{} a_1 &{} a_2 &{} a_3 \\ a_1 &{} -a_0 &{} a_3 &{} -a_2 \\ a_2 &{} -a_3 &{} -a_0 &{} a_1 \\ a_3 &{} a_2 &{} -a_1 &{} -a_0 \\ \end{array}\right) \left( \begin{array}{c} |00\rangle \\ |01\rangle \\ |10\rangle \\ |11\rangle \\ \end{array} \right) . \end{aligned}$$
(4)

She but no one else can do that since \(a_0, a_1, a_2\) and \(a_3\) are known only to her. Under this basis, the whole quantum system \(|Q\rangle _{A_1A'_1B_1C_1} \otimes |Q\rangle _{A_2A'_2B_2C_2}\) consisting of the eight qubits can be expressed as

$$\begin{aligned} \begin{aligned}&|Q\rangle _{A_1A'_1B_1C_1} \otimes |Q\rangle _{A_2A'_2B_2C_2}&\\&\quad =\frac{1}{2}|\xi _0\rangle _{A_1A_2}\left( \sum \limits _{i,j}|P_{\varepsilon ^i_1}P_{\varepsilon ^j_2} |\varepsilon ^i_1\rangle _{C_1}|\varepsilon ^j_2\rangle _{C_2}\right. \\&\qquad (a_0|0000\rangle +(-1)^j a_1|0011\rangle +(-1)^i a_2|1100\rangle +(-1)^{i+j}a_3|1111\rangle )_{A'_1B_1A'_2B_2}\\&\qquad +\frac{1}{2}|\xi _1\rangle _{A_1A_2}\left( \sum \limits _{i,j}|P_{\varepsilon ^i_1}P_{\varepsilon ^j_2} |\varepsilon ^i_1\rangle _{C_1}|\varepsilon ^j_2\rangle _{C_2}\right. \\&\qquad (a_1|0000\rangle +(-1)^{j+1} a_0|0011\rangle +(-1)^{i} a_3|1100\rangle +(-1)^{i+j+1}a_2|1111\rangle )_{A'_1B_1A'_2B_2}\\&\qquad +\frac{1}{2}|\xi _2\rangle _{A_1A_2}\left( \sum \limits _{i,j}|P_{\varepsilon ^i_1}P_{\varepsilon ^j_2} |\varepsilon ^i_1\rangle _{C_1}|\varepsilon ^j_2\rangle _{C_2}\right. \\&\qquad (a_2|0000\rangle +(-1)^{j+1} a_3|0011\rangle +(-1)^{i+1} a_0|1100\rangle +(-1)^{i+j}a_1|1111\rangle )_{A'_1B_1A'_2B_2}\\&\qquad +\frac{1}{2}|\xi _3\rangle _{A_1A_2}\left( \sum \limits _{i,j}|P_{\varepsilon ^i_1}P_{\varepsilon ^j_2} |\varepsilon ^i_1\rangle _{C_1}|\varepsilon ^j_2\rangle _{C_2}\right. \\&\qquad (a_3|0000\rangle +(-1)^{j} a_2|0011\rangle +(-1)^{i+1} a_1|1100\rangle +(-1)^{i+j+1}a_0|1111\rangle )_{A'_1B_1A'_2B_2},\\ \end{aligned}\nonumber \\ \end{aligned}$$
(5)

where \(i, j\in \{+,-\}, (-1)^+=(-1)^0, (-1)^-=(-1)^1\). \(P_{\varepsilon ^\pm _1},P_{\varepsilon ^\pm _2}, |\varepsilon ^\pm _1\rangle \) and \(|\varepsilon ^\pm _2\rangle \) are given by

$$\begin{aligned} P_{\varepsilon ^\pm _j}=\sqrt{\frac{1}{2}(1\pm \cos \theta _j)}, \end{aligned}$$
(6)

and

$$\begin{aligned} |\varepsilon ^\pm _j\rangle =\frac{1\pm \cos \theta _j}{\sqrt{2(1\pm \cos \theta _j)}}|0\rangle \pm \frac{\sin \theta _j}{\sqrt{2(1\pm \cos \theta _j)}}|1\rangle , j \in \{1, 2\}. \end{aligned}$$
(7)

As followed from Eq. (4), when performing the projective measurement \(\{|\xi _k\rangle |k=0,1,2,3\}\) on qubits \((A_1,A_2)\) Alice\(_1\) obtains a state \(|\xi _k\rangle _{A_1A_2}\) randomly with an equal probability of 1/4 and then informs Alice\(_2\), Bob and Charlie of k which corresponds the measurement result \(|\xi _k\rangle \) via classical channel.

Step 2 Just after announcement of Alice\(_1\) about her outcome k, Alice\(_2\) starts to measure her two qubits \(A'_1\) and \(A'_2\) in a delicately chosen basis which is important to achieve unit success probability without adding the local operations. That is to say, Alice\(_2\) not only uses the set \(\{\alpha _0,\alpha _1,\alpha _2,\alpha _3\}\), what was given to her a priori, but should also take into account Alice\(_1\)’s measurement outcome in terms of k. Specifically, the basis \(\{|\eta ^{(k)}_m\rangle |m=0,1,2,3\}\) (\(k=0,1,2,3\)) for Alice\(_2\)’s measurement can be described as

$$\begin{aligned} \left( \begin{array}{c} |\eta ^{(k)}_0\rangle \\ |\eta ^{(k)}_1\rangle \\ |\eta ^{(k)}_2\rangle \\ |\eta ^{(k)}_3\rangle \\ \end{array}\right) =\frac{1}{2}{\mathscr {G}}^{(k)}(\alpha ) \left( \begin{array}{c} |00\rangle \\ |01\rangle \\ |10\rangle \\ |11\rangle \\ \end{array} \right) \end{aligned}$$
(8)

with

$$\begin{aligned} {\mathscr {G}}^{(0)}(\alpha )&={\mathscr {G}}(\alpha _0,\alpha _1,\alpha _2,\alpha _3)&\\&=\left( \begin{array}{cccc} e^{-i\alpha _0} &{} e^{-i\alpha _1} &{} e^{-i\alpha _2} &{} e^{-i\alpha _3} \\ e^{-i\alpha _0} &{} -e^{-i\alpha _1} &{} e^{-i\alpha _2} &{} -e^{-i\alpha _3} \\ e^{-i\alpha _0} &{} -e^{-i\alpha _1} &{} -e^{-i\alpha _2} &{} e^{-i\alpha _3} \\ e^{-i\alpha _0} &{} e^{-i\alpha _1} &{} -e^{-i\alpha _2} &{} -e^{-i\alpha _3} \\ \end{array} \right) ,&\\ {\mathscr {G}}^{(1)}(\alpha )&={\mathscr {G}}(\alpha _1,\alpha _0,\alpha _3,\alpha _2),\\ {\mathscr {G}}^{(2)}(\alpha )&={\mathscr {G}}(\alpha _2,\alpha _3,\alpha _0,\alpha _1),\\ {\mathscr {G}}^{(3)}(\alpha )&={\mathscr {G}}(\alpha _3,\alpha _2,\alpha _1,\alpha _0). \end{aligned}$$

Of course, Alice\(_2\) can do such actions since only Alice\(_2\) knows \(\alpha _0, \alpha _1, \alpha _2\) and \(\alpha _3\). For each specific k, the states \(\{|\eta ^{(k)}_m\rangle |m=0,1,2,3\}\) comprise a complete set of orthonormal basis in a four-dimensional Hilbert space. The method of using this basis to measure is named feed-forward measurement strategy. Without loss of generality, if Alice\(_1\)’s measurement outcome is \(|\xi _1\rangle _{A_1A_2}\), i.e., \(k=1\), then the corresponding collapsed state of qubits \((A'_1, B_1, C_1, A'_2, B_2, C_2)\) could be presented as follows

$$\begin{aligned} \begin{aligned}&_{A_1A_2}\langle \xi _1|Q\rangle _{A_1A'_1B_1C_1}\otimes |Q\rangle _{A_2A'_2B_2C_2}&\\&=\frac{1}{4}|\xi _1\rangle _{A_1A_2} (|\eta ^{(1)}_0\rangle _{A'_1A'_2}|\gamma _0\rangle +|\eta ^{(1)}_1\rangle _{A'_1A'_2}|\gamma _1\rangle +|\eta ^{(1)}_2\rangle _{A'_1A'_2}|\gamma _2\rangle +|\eta ^{(1)}_3\rangle _{A'_1A'_2}|\gamma _3\rangle ),\\ \end{aligned}\nonumber \\ \end{aligned}$$
(9)

here \(i, j\in \{+, -\}, (-1)^i, (-1)^j\) defines as before,

$$\begin{aligned} \begin{aligned}&|\gamma _0\rangle =\sum \limits _{i,j}P_{\varepsilon ^i_1}P_{\varepsilon ^j_2}|\varepsilon ^i_1\rangle _{C_1}|\varepsilon ^j_2\rangle _{C_2} (a_1e^{i\alpha _1}|00\rangle +(-1)^{j+1}a_0e^{i\alpha _0}|01\rangle \\&\qquad +(-1)^{i} a_3e^{i\alpha _3}|10\rangle +(-1)^{i+j+1}a_2e^{i\alpha _2}|11\rangle )_{B_1B_2},\\&|\gamma _1\rangle =\sum \limits _{i,j}P_{\varepsilon ^i_1}P_{\varepsilon ^j_2}|\varepsilon ^i_1\rangle _{C_1}|\varepsilon ^j_2\rangle _{C_2} (a_1e^{i\alpha _1}|00\rangle +(-1)^{j} a_0e^{i\alpha _0}|01\rangle \\&\qquad +(-1)^i a_3e^{i\alpha _3}|10\rangle +(-1)^{i+j}a_2e^{i\alpha _2}|11\rangle )_{B_1B_2},\\&|\gamma _2\rangle =\sum \limits _{i,j}P_{\varepsilon ^i_1}P_{\varepsilon ^j_2} |\varepsilon ^i_1\rangle _{C_1}|\varepsilon ^j_2\rangle _{C_2} (a_1e^{i\alpha _1}|00\rangle +(-1)^{j} a_0e^{i\alpha _0}|01\rangle \\&\qquad +(-1)^{i+1} a_3e^{i\alpha _3}|10\rangle +(-1)^{i+j+1}a_2e^{i\alpha _2}|11\rangle )_{B_1B_2},\\&|\gamma _3\rangle =\sum \limits _{i,j}P_{\varepsilon ^i_1}P_{\varepsilon ^j_2}|\varepsilon ^i_1\rangle _{C_1}|\varepsilon ^j_2\rangle _{C_2} (a_1e^{i\alpha _1}|00\rangle +(-1)^{j+1} a_0e^{i\alpha _0}|01\rangle \\&\qquad +(-1)^{i+1} a_3e^{i\alpha _3}|10\rangle +(-1)^{i+j}a_2e^{i\alpha _2}|11\rangle )_{B_1B_2}. \end{aligned} \end{aligned}$$

Step 3 Alice\(_2\) implements the projective measurement \(\{|\eta ^{(1)}_m\rangle |m=0,1,2,3\}\) on qubits \((A'_1,A'_2)\) and informs Bob and Charlie of m which corresponds the measurement result \(|\eta ^{(1)}_m\rangle \) via classical channel. At this stage of the protocol, although having heard both the results k and m, Bob is not yet in the position to get the target state. The deciding role is now played by the supervisor Charlie, who should carefully review the overall situation concerning the real necessity of carrying out the task. If there are any adverse problems, she decides to stop or postpone the task and do nothing. Otherwise, if everything is favorable, she decides to proceed toward completion of the task by appropriately manipulating her qubits. After hearing the measurement information from Alice\(_1\) and Alice\(_2\), Charlie measures the qubits \(C_1\) and \(C_2\) via the basis \(\{|\varepsilon ^\pm _1\rangle \}\) and \(\{|\varepsilon ^\pm _2\rangle \}\), respectively, and then, he publicly broadcasts his measurement outcomes via classical channel. Note that here Charlie’s measurement is a simple projective one, so it is a complete measurement, as opposed to incomplete POVM measurement [21]. It’s also worth mentioning that Charlie is the only one who knows the values of \(\theta _1\) and \(\theta _2\) so no unauthorized parties are able to correctly manipulate qubits \(C_1\) and \(C_2\) even when they capture that qubits. This is a striking advantage of using partially entangled resources rather than the maximally entangled one (in the latter case \(\theta =\pi /2\) which is known to everybody).

After receiving the measurement information, Bob just denotes \(k=2k_1+k_2,\;m=2m_1+m_2\;(k_1,k_2,m_1,m_2 \in \{0,1\})\). Obviously, this is the binary representation of k and m. Then, he reconstruct the target state expressed as Eq. (2) by using corresponding unitary operations as follows

$$\begin{aligned} (\sigma _x\otimes I)^{k_1}(I\otimes \sigma _x)^{k_2}(\sigma _z \otimes I)^{i\oplus m_1\oplus k_1}(I \otimes \sigma _z)^{j\oplus m_1 \oplus m_2\oplus k_1\oplus k_2}, \end{aligned}$$
(10)

here \(I=|0\rangle \langle 0|+ |1\rangle \langle 1|\), \(\sigma _x=|0\rangle \langle 1|+|1\rangle \langle 0|\) and \(\sigma _z= |0\rangle \langle 0|-|1\rangle \langle 1|\) are the Pauli operations, and \(\sigma _z^+=\sigma _z^0,\;\sigma _z^-=\sigma _z^1\).

From Eq. (4), there are four measurement results of Alice\(_1\). For the other three measurement outputs of Alice\(_1\), the desired quantum state can also be prepared by the same method.

Step 4 Now consider the probability of success of this scheme. From Eq. (5), there are four measurement results of Alice\(_2\), Alice\(_2\) obtains the outcome \(|\eta _m^{(1)}\rangle _{A'_1A'_2}\) with an equal probability of 1/4. For each \(|\eta _m^{(1)}\rangle _{A'_1A'_2}\), there are four Charlie’s measurement outcomes \(|\varepsilon _1^+\rangle _{C_1}|\varepsilon _2^+\rangle _{C_2}\), \(|\varepsilon _1^+\rangle _{C_1}|\varepsilon _2^-\rangle _{C_2}\), \(|\varepsilon _1^-\rangle _{C_1}|\varepsilon _2^+\rangle _{C_2}\) and \(|\varepsilon _1^-\rangle _{C_1}|\varepsilon _2^-\rangle _{C_2}\) with corresponding probability \(P_{\varepsilon ^+_1}P_{\varepsilon ^+_2}\), \(P_{\varepsilon ^+_1}P_{\varepsilon ^-_2}\), \(P_{\varepsilon ^-_1}P_{\varepsilon ^+_2}\) and \(P_{\varepsilon ^-_1}P_{\varepsilon ^-_2}\), respectively. Obviously, for any joint measurement of Alice\(_1\), Alice\(_2\) and Charlie, Bob can always take corresponding transformations to recover the arbitrary two-qubit state. The successful probability is always viewed as an important factor for remote state preparation, and the total probability of this scheme can be calculated as

$$\begin{aligned}\begin{aligned} p&=\left[ \left( \left( \frac{P_{\varepsilon ^+_1}P_{\varepsilon ^+_2}}{4}\right) ^2+ \left( \frac{P_{\varepsilon ^+_1}P_{\varepsilon ^-_2}}{4}\right) ^2+ \left( \frac{P_{\varepsilon ^-_1}P_{\varepsilon ^+_2}}{4}\right) ^2+ \left( \frac{P_{\varepsilon ^-_1}P_{\varepsilon ^-_2}}{4}\right) ^2\right) \times 4\right] \times 4&\\&=(P_{\varepsilon ^+_1}P_{\varepsilon ^+_2})^2+ (P_{\varepsilon ^+_1}P_{\varepsilon ^-_2})^2+ (P_{\varepsilon ^-_1}P_{\varepsilon ^+_2})^2+ (P_{\varepsilon ^-_1}P_{\varepsilon ^-_2})^2&\\&=(P_{\varepsilon ^+_1}^2+P_{\varepsilon ^-_1}^2) (P_{\varepsilon ^+_2}^2+P_{\varepsilon ^-_2}^2)&\\&=1.&\\ \end{aligned} \end{aligned}$$

From the above discussions, unit successful probability of this controlled JRSP scheme is achieved for whatever entanglement degree of quantum channel, an amazing and obviously superior to all previous protocols. Here the deterministic feature is produced by three factors at the same time: (a) the feed-forward measurement strategy adapted by the preparers, (b) the knowledge of \(\theta \) by the supervisor (not receiver) and (c) the use of the partially entangled states \(|Q\rangle _{A_1A'_1B_1C_1}\) and \(|Q\rangle _{A_2A'_2B_2C_2}\) as the quantum channel. Since not only \(p=1\) but also no additional resources/operations are required at all, our controlled JRSP is perfect.

4 Controlled JRSP for arbitrary three-qubit states

The arbitrary three-qubit states can be written as

$$\begin{aligned} \begin{aligned} |\phi \rangle _3&=a_0e^{i\alpha _0}|000\rangle +a_1e^{i\alpha _1}|001\rangle +a_2e^{i\alpha _2}|010\rangle +a_3e^{i\alpha _3}|011\rangle \\&\quad +a_4e^{i\alpha _4}|100\rangle +a_5e^{i\alpha _5}|101\rangle +a_6e^{i\alpha _6}|110\rangle +a_7e^{i\alpha _7}|111\rangle ,\\ \end{aligned}\end{aligned}$$
(11)

where the real numbers \(\alpha _j\in [0,2\pi )\), \(a_j\) (\(j=0,1,\cdots ,7\)) satisfy \(\sum ^7_{j=1}a^2_j=1\). The sender Alice\(_1\) only knows \(a_j\) (\(j=0,1,\cdots ,7\)), while the sender Alice\(_2\) only knows \(\alpha _j\in [0,2\pi )\) (\(j=0,1,\cdots ,7\)). Neither the receiver Bob nor the supervisor Charlie knows anything about \(|\phi \rangle _3\). Clearly, no one of the two senders alone can help Bob to reconstruct the original state \(|\phi \rangle _3\) in Eq. (11). Quantum channel is composed of the following three partially entangled states

$$\begin{aligned} \begin{aligned} |Q\rangle _{A_1A'_1B_1C_1}&=\frac{1}{\sqrt{2}}(|0000\rangle +\cos \theta _1|1110\rangle +\sin \theta _1|1111\rangle )_{A_1A'_1B_1C_1},&\\ |Q\rangle _{A_2A'_2B_2C_2}&=\frac{1}{\sqrt{2}}(|0000\rangle +\cos \theta _2|1110\rangle +\sin \theta _2|1111\rangle )_{A_2A'_2B_2C_2},&\\ |Q\rangle _{A_3A'_3B_3C_3}&=\frac{1}{\sqrt{2}}(|0000\rangle +\cos \theta _3|1110\rangle +\sin \theta _3|1111\rangle )_{A_3A'_3B_3C_3}.&\\ \end{aligned}\end{aligned}$$
(12)

In the above equation, the real numbers \(\theta _j\in [0,\pi /2]\) (\(j=1,2,3\)) are known only to the supervisor Charlie. The initial state of the total system including qubits \(A_i, ~A'_i, ~ B_i,~ C_i~(i=1, 2, 3)\) can be given by

$$\begin{aligned} |{\mathscr {Q}}\rangle =|Q\rangle _{A_1A'_1B_1C_1}\otimes |Q\rangle _{A_2A'_2B_2C_2}\otimes |Q\rangle _{A_3A'_3B_3C_3}. \end{aligned}$$
(13)

In this case, Alice\(_1\), Alice\(_2\), Bob and Charlie have qubits \((A_1, A_2, A_3)\), \((A'_1, A'_2, A'_3)\), \((B_1, B_2, B_3)\) and \((C_1, C_2, C_3)\), respectively. The detailed execution steps are as follows.

Step 1 For performing controlled JRSP of arbitrary three-qubit states, Alice\(_1\) needs to perform a projective measurement on her qubits \((A_1,A_2,A_3)\) with the three-qubit mutually orthogonal measurement basis \(\{|\xi _k\rangle |k=0,1,\cdots ,7\}\). The special measurement basis is given by

$$\begin{aligned} \left( \begin{array}{c} |\xi _0\rangle \\ |\xi _1\rangle \\ |\xi _2\rangle \\ |\xi _3\rangle \\ |\xi _4\rangle \\ |\xi _5\rangle \\ |\xi _6\rangle \\ |\xi _7\rangle \\ \end{array}\right) =\left( \begin{array}{cccccccc} a_0 &{} a_1 &{} a_2 &{} a_3 &{} a_4 &{} a_5 &{} a_6 &{} a_7\\ a_1 &{} -a_0 &{} a_3 &{} -a_2 &{} a_5 &{} -a_4 &{} -a_7 &{} a_6\\ a_2 &{} -a_3 &{} -a_0 &{} a_1 &{} a_6 &{} a_7 &{} -a_4 &{} -a_5\\ a_3 &{} a_2 &{} -a_1 &{} -a_0 &{} a_7 &{} -a_6 &{} a_5 &{} -a_4\\ a_4 &{} -a_5 &{} -a_6 &{} -a_7 &{} -a_0 &{} a_1 &{} a_2 &{} a_3\\ a_5 &{} a_4 &{} -a_7 &{} a_6 &{} -a_1 &{} -a_0 &{} -a_3 &{} a_2\\ a_6 &{} a_7 &{} a_4 &{} -a_5 &{} -a_2 &{} a_3 &{} -a_0 &{} -a_1\\ a_7 &{} -a_6 &{} a_5 &{} a_4 &{} -a_3 &{} -a_2 &{} a_1 &{} -a_0\\ \end{array}\right) \ ad \left( \begin{array}{c} |000\rangle \\ |001\rangle \\ |010\rangle \\ |011\rangle \\ |100\rangle \\ |101\rangle \\ |110\rangle \\ |111\rangle \\ \end{array} \right) . \end{aligned}$$
(14)

There may be eight measurement outcomes on qubits \((A_1,A_2,A_3)\). After Alice\(_1\) measured the states of these qubits, the quantum channel \(|{\mathscr {Q}}\rangle \) has collapsed to

$$\begin{aligned} |{\mathscr {Q}}^{(k)}\rangle _{A'_1B_1C_1A'_2B_2C_2A'_3B_3C_3}={_{A_1A_2A_3}}\langle \xi _k|{\mathscr {Q}}\rangle ~~ (k=0,1,\cdots ,7). \end{aligned}$$

Then, via classical channel, Alice\(_1\) sends the message k to Alice\(_2\), Bob and Charlie about her the projective measurement outcome \(|\xi _k\rangle \).

Step 2 By using feed-forward measurement, Alice\(_2\) utilizes Alice\(_1\)’s measurement message k and the set \(\{\alpha _0,\alpha _1,\cdots ,\) \(\alpha _7\}\) to construct the corresponding measurement basis \(\{|\eta ^{(k)}_m\rangle |m=0,1,\cdots ,7\}\) (\(k=0,1,\cdots ,\) 7), which is given by

$$\begin{aligned} \left( \begin{array}{c} |\eta ^{(k)}_0\rangle \\ |\eta ^{(k)}_1\rangle \\ \vdots \\ |\eta ^{(k)}_7\rangle \\ \end{array} \right) =\frac{1}{2\sqrt{2}}{\mathscr {W}}^{(k)}(\alpha ) \left( \begin{array}{c} |000\rangle \\ |001\rangle \\ \vdots \\ |111\rangle \\ \end{array} \right) , \end{aligned}$$
(15)

where

$$\begin{aligned} {\mathscr {W}}^{(0)}(\alpha )&={\mathscr {W}}(\alpha _0,\alpha _1,\alpha _2, \alpha _3,\alpha _4,\alpha _5,\alpha _6,\alpha _7)&\\&=\left( \begin{array}{cccccccc} e^{-i\alpha _0} &{} e^{-i\alpha _1} &{} e^{-i\alpha _2} &{} e^{-i\alpha _3} &{} e^{-i\alpha _4} &{} e^{-i\alpha _5} &{} e^{-i\alpha _6} &{} e^{-i\alpha _7}\\ e^{-i\alpha _0} &{} -e^{-i\alpha _1} &{} e^{-i\alpha _2} &{} -e^{-i\alpha _3} &{} e^{-i\alpha _4} &{} -e^{-i\alpha _5} &{} -e^{-i\alpha _6} &{} e^{-i\alpha _7}\\ e^{-i\alpha _0} &{} -e^{-i\alpha _1} &{} -e^{-i\alpha _2} &{} e^{-i\alpha _3} &{} e^{-i\alpha _4} &{} e^{-i\alpha _5} &{} -e^{-i\alpha _6} &{} -e^{-i\alpha _7}\\ e^{-i\alpha _0} &{} e^{-i\alpha _1} &{} -e^{-i\alpha _2} &{} -e^{-i\alpha _3} &{} e^{-i\alpha _4} &{} -e^{-i\alpha _5} &{} e^{-i\alpha _6} &{} -e^{-i\alpha _7}\\ e^{-i\alpha _0} &{} -e^{-i\alpha _1} &{} -e^{-i\alpha _2} &{} -e^{-i\alpha _3} &{} -e^{-i\alpha _4} &{} e^{-i\alpha _5} &{} e^{-i\alpha _6} &{} e^{-i\alpha _7}\\ e^{-i\alpha _0} &{} e^{-i\alpha _1} &{} -e^{-i\alpha _2} &{} e^{-i\alpha _3} &{} -e^{-i\alpha _4} &{} -e^{-i\alpha _5} &{} -e^{-i\alpha _6} &{} e^{-i\alpha _7}\\ e^{-i\alpha _0} &{} e^{-i\alpha _1} &{} e^{-i\alpha _2} &{} -e^{-i\alpha _3} &{} -e^{-i\alpha _4} &{} e^{-i\alpha _5} &{} -e^{-i\alpha _6} &{} -e^{-i\alpha _7}\\ e^{-i\alpha _0} &{} -e^{-i\alpha _1} &{} e^{-i\alpha _2} &{} e^{-i\alpha _3} &{} -e^{-i\alpha _4} &{} -e^{-i\alpha _5} &{} e^{-i\alpha _6} &{} -e^{-i\alpha _7}\\ \end{array} \right) ,&\\ {\mathscr {W}}^{(1)}(\alpha )&={\mathscr {W}}(\alpha _1,\alpha _0,\alpha _3, \alpha _2,\alpha _5,\alpha _4,\alpha _7,\alpha _6),\\ {\mathscr {W}}^{(2)}(\alpha )&={\mathscr {W}}(\alpha _2, \alpha _3,\alpha _0,\alpha _1,\alpha _6,\alpha _7,\alpha _4,\alpha _5),\\ {\mathscr {W}}^{(3)}(\alpha )&={\mathscr {W}}(\alpha _3, \alpha _2,\alpha _1,\alpha _0,\alpha _7,\alpha _6,\alpha _5,\alpha _4),\\ {\mathscr {W}}^{(4)}(\alpha )&={\mathscr {W}}(\alpha _4,\alpha _5,\alpha _6,\alpha _7, \alpha _0,\alpha _1,\alpha _2,\alpha _3),\\ {\mathscr {W}}^{(5)}(\alpha )&={\mathscr {W}}(\alpha _5,\alpha _4,\alpha _7,\alpha _6, \alpha _1,\alpha _0,\alpha _3,\alpha _2),\\ {\mathscr {W}}^{(6)}(\alpha )&={\mathscr {W}}(\alpha _6,\alpha _7,\alpha _4,\alpha _5, \alpha _2,\alpha _3,\alpha _0,\alpha _1),\\ {\mathscr {W}}^{(7)}(\alpha )&={\mathscr {W}}(\alpha _7,\alpha _6,\alpha _5,\alpha _4, \alpha _3,\alpha _2,\alpha _1,\alpha _0).\\ \end{aligned}$$

After hearing Alice\(_1\)’s outcome k, Alice\(_2\) performs a three-qubit measurement on qubits \((A'_1, A'_2, A'_3)\) with the basis \(\{|\eta ^{(k)}_m\rangle |m=0,1,\cdots ,7\}\) and informs Bob and Charlie of the measurement results. According to their priori agreement, a cbit message m corresponds to the measurement result \(|\eta ^{(k)}_m\rangle \). Then, the quantum state of the remaining six qubits \(B_1,B_2,B_3,C_1,C_2\) and \(C_3\) will collapse into the following state

$$\begin{aligned} |{\mathscr {Q}}^{(k)}_m\rangle _{B_1C_1B_2C_2B_3C_3}={_{A'_1A'_2A'_3}}\langle \eta ^{(k)}_m|{_{A_1A_2A_3}}\langle \xi _k|{\mathscr {Q}}\rangle ~~ (m=0,1,\cdots ,7). \end{aligned}$$

Step 3 After Charlie obtains the messages k and m, he needs to measure the qubits \((C_1,C_2,C_3)\) in terms of the basis \(\{|\varepsilon ^{\pm }_j\rangle \}\), respectively. That is to say,

$$\begin{aligned} |{\mathscr {Q}}^{(k)}_m\rangle _{B_1C_1B_2C_2B_3C_3}=\frac{1}{8}\sum |\varepsilon _{1}^{\pm }\rangle _{C_{1}}|\varepsilon _{2}^{\pm }\rangle _{C_{2}}|\varepsilon _{3}^{\pm }\rangle _{C_{3}}|{\mathscr {Q}}^{\pm \pm \pm }\rangle _{B_{1}B_{2}B_{3}}, \end{aligned}$$
(16)

where \(|{\mathscr {Q}}^{\pm \pm \pm }\rangle _{B_{1}B_{2}B_{3}}\) is a combination of computable basis \(\{|ijk\rangle : i,j,k=0,1,2\}\) that the coefficients of measurement basis \(|\varepsilon ^\pm _j\rangle \) (\(j=1,2,3\)) in Eq. (7) depend on the messages km and the parameters \(\cos \theta _j, \sin \theta _j\) of the jth quantum channel.

Without loss of generality, assume that Alice\(_1\)’s measurement result is \(|\xi _2\rangle \) and Alice\(_2\)’s measurement outcome is \(|\eta _5^{(2)}\rangle \), then the quantum state of the remaining qubits can be described as

$$\begin{aligned} \begin{aligned}&|{\mathscr {Q}}^{(2)}_5\rangle _{B_1C_1B_2C_2B_3C_3}\\&\quad ={_{A'_1A'_2A'_3}}\langle \eta ^{(2)}_5|{_{A_1A_2A_3}}\langle \xi _2|{\mathscr {Q}}\rangle&\\&\quad =\frac{1}{8}\sum _{|\zeta _{C_j}\rangle =|\varepsilon ^{\pm }_j\rangle _{C_j}} P_{\varepsilon _1}P_{\varepsilon _2}P_{\varepsilon _3}|\zeta _{C_1}\rangle \otimes |\zeta _{C_2}\rangle \otimes |\zeta _{C_3}\rangle&\\&\quad ~~~\otimes [a_2e^{i\alpha _2}|000\rangle -(-1)^{\langle \varepsilon ^-_3|\zeta _{C_3}\rangle } a_3e^{i\alpha _3}|001\rangle +(-1)^{\langle \varepsilon ^-_2|\zeta _{C_2}\rangle } a_0e^{i\alpha _0}|010\rangle&\\&\quad ~~~+(-1)^{\langle \varepsilon ^-_2|\zeta _{C_2}\rangle }(-1)^{\langle \varepsilon ^-_3|\zeta _{C_3}\rangle } a_1e^{i\alpha _1}|011\rangle -(-1)^{\langle \varepsilon ^-_1|\zeta _{C_1}\rangle } a_6e^{i\alpha _6}|100\rangle&\\&\quad ~~~-(-1)^{\langle \varepsilon ^-_1|\zeta _{C_1}\rangle }(-1)^{\langle \varepsilon ^-_3|\zeta _{C_3}\rangle } a_7e^{i\alpha _7}|101\rangle +(-1)^{\langle \varepsilon ^-_1|\zeta _{C_1}\rangle } (-1)^{\langle \varepsilon ^-_2|\zeta _{C_2}\rangle }a_4e^{i\alpha _4}|110\rangle&\\&\quad ~~~-(-1)^{\langle \varepsilon ^-_1|\zeta _{C_2}\rangle } (-1)^{\langle \varepsilon ^-_2|\zeta _{C_2}\rangle } (-1)^{\langle \varepsilon ^-_3|\zeta _{C_3}\rangle }a_5e^{i\alpha _5}|111\rangle ]_{B_1B_2B_3},&\\ \end{aligned} \end{aligned}$$
(17)

Here, the state \(|\zeta _{C_j}\rangle \) (\(j=1,2,3\)) represents the measurement result of the qubit \(C_j\), and \(P_{\varepsilon _j}\) are given by

$$\begin{aligned} P_{\varepsilon _j}=\left\{ \begin{array}{ll} P_{\varepsilon ^+_j}, &{} |\zeta _{C_j}\rangle =|\varepsilon ^+_j\rangle _{C_j}; \\ P_{\varepsilon ^-_j}, &{} |\zeta _{C_j}\rangle =|\varepsilon ^-_j\rangle _{C_j}. \end{array} \right. \end{aligned}$$

Charlie performs the single-qubit measurement on qubits \(C_1\), \(C_2\) and \(C_3\), respectively, and announces the measurement results to Bob via classical channel.

Step 4 According to the classical information from Alice\(_1\), Alice\(_2\) and Charlie, Bob needs to take corresponding unitary transformations \(U^{(k)}_m\) (\(k,m\in \{0,1,\cdots ,7\}\)) to restore the initial state in Eq. (11). Suppose that the measurement results of qubits \((A_1,A_2,A_3)\), \((A'_1,A'_2,A'_3)\) and \((C_1,C_2,C_3)\) are \(|\xi _2\rangle \), \(|\eta ^{(2)}_5\rangle \), \(|\zeta _{C_1}\rangle \), \(|\zeta _{C_2}\rangle \) and \(|\zeta _{C_3}\rangle \), respectively, then the unitary transformation \(U^{(2)}_5\) Bob needs to take is expressed as

$$\begin{aligned} \begin{aligned} U^{(2)}_5&=|010\rangle \langle 000| -(-1)^{\langle \varepsilon ^-_3|\zeta _{C_3}\rangle }|011\rangle \langle 001|+(-1)^{\langle \varepsilon ^-_2|\zeta _{C_2}\rangle } |000\rangle \langle 010|&\\&~~~+(-1)^{\langle \varepsilon ^-_2|\zeta _{C_2}\rangle }(-1)^{\langle \varepsilon ^-_3|\zeta _{C_3}\rangle } |001\rangle \langle 011| -(-1)^{\langle \varepsilon ^-_1|\zeta _{C_1}\rangle } |110\rangle \langle 100|&\\&~~~-(-1)^{\langle \varepsilon ^-_1|\zeta _{C_1}\rangle }(-1)^{\langle \varepsilon ^-_3|\zeta _{C_3}\rangle } |111\rangle \langle 101| +(-1)^{\langle \varepsilon ^-_1|\zeta _{C_1}\rangle } (-1)^{\langle \varepsilon ^-_2|\zeta _{C_2}\rangle }|100\rangle \langle 110|&\\&~~~-(-1)^{\langle \varepsilon ^-_1|\zeta _{C_1}\rangle } (-1)^{\langle \varepsilon ^-_2|\zeta _{C_2}\rangle } (-1)^{\langle \varepsilon ^-_3|\zeta _{C_3}\rangle }|101\rangle \langle 111|.&\\ \end{aligned} \end{aligned}$$

As for the other measurement results of Alice\(_1\), Alice\(_2\) and Charlie, we can use the similar method to implement the controlled JRSP protocol for arbitrary three-qubit states.

From the above discussions, it can be seen that for any measurement outcome, Bob can always use the corresponding unitary transformation on qubits \((B_1,B_2,B_3)\) to reconstruct the initial state. Therefore, our scheme can be used to determinately prepare arbitrary three qubit states, and the successful probability can reach up to 100%.

5 Controlled JRSP for arbitrary n-qubit states

For the convenience of discussion, we give a recursive method of constructing a new kind of matrix from a given matrix: let \({\mathscr {W}}(\beta _1,\beta _2,\cdots ,\beta _{2^n})\) be a matrix composed of \(2^n\) column vectors \(\beta _1,\beta _2,\cdots ,\beta _{2^n}\), we use recursive method to construct \(2^{n-1}\) new matrices.

Recursive method of constructing matrices (RMCM)

  1. (I)

    When \(n=1\), we exchange \(\beta _1\) and \(\beta _2\) in \({\mathscr {W}}^{(1)}(\beta _1,\beta _2)={\mathscr {W}}(\beta _1,\beta _2)\) to obtain a new matrix \({\mathscr {W}}^{(2)}(\beta _2,\beta _1)\).

  2. (II)

    When \(n=2\), we first divide the vectors \(\beta _1,\beta _2,\beta _3\) and \(\beta _4\) in \({\mathscr {W}}^{(1)}(\beta _1,\beta _2,\beta _3,\beta _4) ={\mathscr {W}}(\beta _1,\beta _2,\beta _3,\beta _4)\) into two groups and obtain the matrix \({\mathscr {W}}((\beta _1,\beta _2), (\beta _3,\beta _4))\). Secondly, we obtain matrix \({\mathscr {W}}((\beta _3,\beta _4)\), \((\beta _1,\beta _2))={\mathscr {W}}^{(3)}(\beta _3,\beta _4,\beta _1,\beta _2)\) by exchanging \((\beta _1,\beta _2)\) and \((\beta _3,\beta _4)\). Finally, for each group in \({\mathscr {W}}((\beta _1,\beta _2)\), \((\beta _3,\beta _4))\) and \({\mathscr {W}}((\beta _3,\beta _4)\), \((\beta _1,\beta _2))\), we get \({\mathscr {W}}^{(2)}(\beta _2,\beta _1,\beta _4,\beta _3)\) and \({\mathscr {W}}^{(4)}(\beta _4, \beta _3,\beta _2,\beta _1)\) by using the method in (I). That is, we have

    $$\begin{aligned}&{\mathscr {W}}^{(1)}(\beta _1,\beta _2,\beta _3,\beta _4), {\mathscr {W}}^{(2)}(\beta _2,\beta _1,\beta _4,\beta _3),\\&\quad {\mathscr {W}}^{(3)}(\beta _3,\beta _4,\beta _1,\beta _2), {\mathscr {W}}^{(4)}(\beta _4,\beta _3,\beta _2,\beta _1), \end{aligned}$$

    which is exactly the \(2^2\) matrices we need.

  3. (III)

    when \(n=k+1\), we divide the vectors \(\beta _1,\beta _2,\cdots , \beta _{2^{k+1}}\) in \({\mathscr {W}}^{(1)}(\beta _1,\beta _2,\cdots , \beta _{2^{k+1}}) ={\mathscr {W}}(\beta _1,\beta _2,\cdots \), \(\beta _{2^{k+1}})\) into two groups and obtain the matrix \({\mathscr {W}}((\beta _1,\beta _2,\cdots ,\beta _{2^k}), (\beta _{2^k+1},\beta _{2^k+2},\cdots ,\beta _{2^{k+1}}))\), then exchange \((\beta _1,\beta _2,\cdots , \beta _{2^k})\) and \((\beta _{2^k+1},\beta _{2^k+2},\cdots ,\beta _{2^{k+1}})\) to get the matrix

    $$\begin{aligned}&{\mathscr {W}}^{(2^k+1)} (\beta _{2^k+1},\beta _{2^k+2},\cdots ,\beta _{2^{k+1}}, \beta _1,\beta _2,\cdots ,\beta _{2^k})\\&\quad ={\mathscr {W}} ((\beta _{2^k+1},\beta _{2^k+2}, \cdots ,\beta _{2^{k+1}}), (\beta _1,\beta _2,\cdots ,\beta _{2^k})). \end{aligned}$$

    For each group in \({\mathscr {W}} ((\beta _1,\beta _2,\cdots ,\beta _{2^k}), (\beta _{2^k+1},\beta _{2^k+2},\cdots ,\beta _{2^{k+1}}))\) and \({\mathscr {W}} ((\beta _{2^k+1},\beta _{2^k+2},\cdots ,\beta _{2^{k+1}}), (\beta _1\), \(\beta _2,\cdots ,\beta _{2^k}))\), we can obtain the \(2^{k+1}\) desired matrices

    $$\begin{aligned}&{\mathscr {W}}^{(1)}(\beta _1,\beta _2,\beta _3,\beta _4,\cdots ,\beta _{2^{k+1}}),\\&\quad {\mathscr {W}}^{(2)}(\beta _2,\beta _1,\beta _4,\beta _3,\cdots ,\beta _{2^{k+1}},\beta _{2^{k+1}-1}),\\&\quad \cdots \\&\quad {\mathscr {W}}^{(2^{k+1})}(\beta _{2^{k+1}},\beta _{2^{k+1}-1},\cdots ,\beta _2,\beta _1) \end{aligned}$$

    by using the technique in case \(n=k\).

Now turn to our quantum task: we will extend the controlled JRSP protocols of preparing arbitrary two- and three-qubit states to arbitrary multi-qubit states. The n-qubit state can be written as

$$\begin{aligned} |\phi \rangle _n=\sum ^{2^n-1}_{x=0}a_xe^{i\alpha _x}|d_n\cdots d_2d_1\rangle , ~~d_j\in \{0,1\}, x=\sum ^n_{j=1}d_j\cdot 2^{j-1}, \end{aligned}$$
(18)

here the real numbers \(a_x\) (\(x=0,1,\cdots , 2^n-1\)) satisfy the condition \(\sum ^{2^n-1}_{x=0}a^2_x=1\), and the real numbers \(\alpha _x\in [0,2\pi )\). The sender Alice\(_1\) only knows \(a_x\) (\(x=0,1,\cdots , 2^n-1\)), while the sender Alice\(_2\) only knows \(\alpha _x\in [0,2\pi )\) (\(x=0,1,\cdots ,2^n-1\)). Neither the receiver Bob nor the supervisor Charlie knows anything about \(|\phi \rangle _n\).

In this case, for preparing arbitrary n-qubit states, we need to employ the following n partially entangled states

$$\begin{aligned} |{\mathscr {Q}}\rangle _{A_jA'_jB_jC_j}=&\frac{1}{\sqrt{2}}(|0000\rangle +\cos \theta _j|1110\rangle \nonumber \\&+\sin \theta _j|1111\rangle )_{A_jA'_jB_jC_j}, ~~j=1,2,\cdots ,n \end{aligned}$$
(19)

as quantum channel, where \(\theta _j\in [0,\pi /2]\) (\(j=1,2,\cdots ,n\)) whose values are known only to the supervisor Charlie. The qubits \(A_j, A'_j, B_j\) and \(C_j\) belong to the sender Alice\(_1\), Alice\(_2\), the receiver Bob and the supervisor Charlie, respectively. The controlled JRSP procedure is composed of the following four steps.

Step 1 According to her own information \(a_x\) (\(x=0,1,\cdots ,2^n-1\)), Alice\(_1\) needs to construct the special basis \(\{|\xi _k\rangle |k=0,1,\cdots ,2^n-1\}\) to measure her qubits \(A_j\)(\(j=0,1,\cdots ,2^n-1\)):

$$\begin{aligned}{}[|\xi _j\rangle ]^T=[|\xi _0\rangle ,|\xi _1\rangle ,\cdots ,|\xi _{2^n-1}\rangle ]^T =U^n_n[|\lambda \rangle ]^T, \end{aligned}$$
(20)

where \([|\lambda \rangle ]=[|0\cdots 00\rangle ,|0\cdots 01\rangle ,\cdots , |1\cdots 11\rangle ]\). In Ref.[23], the concrete construction processes of \(2^n\times 2^n\) matrix \(U^n_n\) can be elaborated as follow: First, set the elements of 1th and \((2^{n-1}+1)\)th rows together with the 1th and \((2^{n-1}+1)\)th columns as (14); Second, if \(n\ge 2\), set \(U^n_n(i,j)=U^{n-1}_{n-1}(i,j)\), here \(2\le i, j\le 2^{n-1}\). The \(U^n_n(i,j)\) represents the element in the ith row and the jth column of the matrix \(U^n_n\); Third, according to the special properties of the unitary matrix, set \(\sum ^{2^n}_{i=1}U^n_n(i,j)\cdot U^n_n(i,k)=0\), here \(2\le j\le 2^{n-1}\), \(k=1, 2^{n-1}+1\). Then we can obtain the elements from 2nd column to \(2^{n-1}\)th of the matrix \(U^n_n\); Finally, based on the equation \(\sum ^{2^n}_{j=1}U^n_n(i,j)\cdot U^n_n(l,j)=0 (2\le i\le 2^n, l=1, 2^{n-1}+1, i\ne l)\), the elements from \((2^{n-1}+2)\)th column to \(2^n\)th column can be derived. Hence, from the above steps the whole elements of the matrix \(U^n_n\) can be obtained.

$$\begin{aligned} U^n_n =\left( \begin{array}{cccccccc} a_0 &{} a_1 &{} \cdots &{} a_{2^{n-1}-1} &{} a_{2^{n-1}} &{} a_{2^{n-1}+1} &{} \cdots &{} a_{2^n-1}\\ a_1 &{} \ddots &{} \cdots &{} \cdots &{} a_{2^{n-1}+1} &{} \cdots &{} \cdots &{} \cdots \\ \vdots &{} \vdots &{} \ddots &{} \cdots &{} \cdots &{} \cdots &{} \cdots &{} \cdots \\ a_{2^{n-1}-1} &{} \vdots &{} \vdots &{} \ddots &{} a_{2^n-1} &{} \cdots &{} \cdots &{} \cdots \\ a_{2^{n-1}} &{} -a_{2^{n-1}+1} &{} \vdots &{} -a_{2^n-1} &{} -a_0 &{} a_1 &{} \cdots &{} a_{2^{n-1}-1}\\ a_{2^{n-1}+1} &{} \vdots &{} \vdots &{} \vdots &{} -a_1 &{} \ddots &{} \cdots &{} \cdots \\ \vdots &{} \vdots &{} \vdots &{} \vdots &{} \vdots &{} \vdots &{} \ddots &{} \cdots \\ a_{2^n-1} &{} \vdots &{} \vdots &{} \vdots &{} -a_{2^{n-1}-1} &{} \vdots &{} \vdots &{} \ddots \\ \end{array} \right) . \end{aligned}$$
(21)

Actually, when \(n=1\), we can obtain

$$\begin{aligned} U^1_1=\left( \begin{array}{cc} a_0 &{} a_1\\ a_1 &{} -a_0\\ \end{array} \right) , \end{aligned}$$

and when \(n\ge 2\), we can use the above method to obtain the matrix \(U^n_n\).

Step 2 By using information \(\alpha _j\) (\(j=0,1,\cdots ,2^n-1\)) and Alice\(_1\)’s measurement outcome k, Alice\(_2\) should construct a special basis \(\{|\eta ^{(k)}_m\rangle | m=0,1,\cdots ,2^n-1\}\) to measure her particle \(A'_j\) (\(j=0,1,\cdots ,2^n-1\)).

$$\begin{aligned}{}[|\eta ^{(k)}_m\rangle ]^T=[|\eta ^{(k)}_0\rangle ,|\eta ^{(k)}_1\rangle ,\cdots , |\eta ^{(k)}_{2^n-1}\rangle ]^T=\frac{1}{\sqrt{2^n}}{\mathscr {W}}^{(k)}_{2^n}(\alpha )[|\lambda \rangle ]^T, \end{aligned}$$
(22)

where the construction process of the matrix \({\mathscr {W}}^{(1)}_{2^n}(\alpha )\) can described as follows by using the matrix \(U^n_n\): replaces column 1, column 2, \(\cdots \), column \(2^n\) of the matrix \(U^n_n\) with \(e^{-i\alpha _0}\Gamma \), \(e^{-i\alpha _1}\Gamma \), \(\cdots \), \(e^{-i\alpha _{2^n-1}}\Gamma \), respectively, here \(\Gamma \) is a \(2^n\times 1\) matrix \((1,1,\cdots ,1)^T\), i.e., \(\Gamma =(1,1,\cdots ,1)^T\). And then the sign (positive or negative sign) of each element in \({\mathscr {W}}^{(1)}_{2^n}(\alpha )\) is exactly the same as that of the corresponding element in \(U^n_n\). Obviously, \({\mathscr {W}}^{(1)}_{2^n}(\alpha )\) depends on \(\alpha _0,\alpha _1,\cdots , \alpha _{2^n-1}\); thus, \({\mathscr {W}}^{(1)}_{2^n}(\alpha )\) can be denoted as \({\mathscr {W}}^{(1)}_{2^n}(\alpha _0,\alpha _1,\cdots ,\alpha _{2^n-1})\). Based on \({\mathscr {W}}^{(1)}_{2^n}(\alpha _0,\alpha _1,\cdots , \alpha _{2^n-1})\), we can obtain \({\mathscr {W}}^{(2)}_{2^n}(\alpha ),{\mathscr {W}}^{(3)}_{2^n}(\alpha ),\cdots ,\) \({\mathscr {W}}^{(2^n-1)}_{2^n}(\alpha )\) by using the above RMCM.

It is worth mentioning that for a fixed k, \(\{|\eta ^{(k)}_m\rangle |m=0,1,\cdots ,2^n-1\}\) is a set of completely orthogonal bases in Hilbert space \(C^{2^{n}}\).

Step 3 After Charlie hears the information from Alice\(_1\) and Alice\(_2\), he needs to implement measurement basis \(|\varepsilon ^\pm _j\rangle \) in Eq. (7) on qubit \(C_j\) one by one and announces his measurement results to Bob in a classic channel subsequently. Thus, the quantum state of the whole system can be written as

$$\begin{aligned} \begin{aligned} |{\mathscr {Q}}\rangle _\mathrm{total}&=|{\mathscr {Q}}\rangle _{A_1A'_1B_1C_1}\otimes |{\mathscr {Q}}\rangle _{A_2A'_2B_2C_2}\otimes \cdots \otimes |{\mathscr {Q}}\rangle _{A_nA'_nB_nC_n}&\\&=\sum _{|\zeta _{C_j}\rangle =|\varepsilon ^{\pm }_j \rangle _{C_j}}\sum _{m,k=0,1,\cdots ,2^n-1}\frac{1}{2^n} \prod _{j=1}^nP_{\varepsilon _j}|\xi _k\rangle _{A_1A_2\cdots A_n}|\eta ^{(k)}_m\rangle _{A'_1A'_2\cdots A'_n}&\\&~~~\otimes |\zeta _{C_1}\rangle \otimes |\zeta _{C_2}\rangle \otimes \cdots \otimes |\zeta _{C_n}\rangle \otimes |T^{(k)}_m\rangle _{B_1B_2\cdots B_n},&\end{aligned} \end{aligned}$$
(23)

where the state \(|\zeta _{C_j}\rangle \) (\(j=1,2,\cdots ,n\)) represents the measurement result of the qubit \(C_j\), and \(P_{\varepsilon _j}\) are given by

$$\begin{aligned} P_{\varepsilon _j}=\left\{ \begin{array}{ll} P_{\varepsilon ^+_j}, &{} |\zeta _{C_j}\rangle =|\varepsilon ^+_j\rangle _{C_j}; \\ P_{\varepsilon ^-_j}, &{} |\zeta _{C_j}\rangle =|\varepsilon ^-_j\rangle _{C_j}, \end{array} \right. \end{aligned}$$

here \(|\varepsilon ^\pm _j\rangle \) is related to the parameters of the jth quantum channel. And the value of probability parameter \(P_{\varepsilon _j}\) depends on the measurement result of qubit \(C_j\).

Step 4 After hearing all the measurement results from Alice\(_1\), Alice\(_2\) and Charlie, Bob needs to recover the initial state in Eq. (18) by adopting corresponding Pauli operations \(\sigma _x\) and \(\sigma _z\) that depends on the different value of n and measurement results. Definitely, the recover operator can be seen in Eq. (10) for \(n=2\).

It is worth emphasizing that our schemes are applicable to the controlled JRSP protocol for arbitrary multi-qubit states with the successful probability of 100%.

6 Discussion and conclusion

In Sects. 35, the total success probability for each scheme is 100% for whatever entanglement degree of the shared resource in terms of the quantum state \(|{\mathscr {Q}}\rangle \), that is, our protocols are deterministic. It is commonly thought that the quality of a protocol scales with the degree of the shared entanglement. But, quite counter-intuitively, there exist kinds of information-theoretic tasks for which less entanglement turns out to be more useful [27,28,29]. Coming back to our problem, one may ask: “How if the receiver Bob (not the supervisor Charlie) knows \(\theta _j\) ?” In this case Charlie measures his qubits in the basis \(\{|\pm \rangle =(|0\rangle \pm |1\rangle )/\sqrt{2}\}\). It is not difficult to verify that then Bob can still recover the target state by sacrificing additional resource and operations, yet always succeed he cannot.

In the controlled JRSP scheme proposed in this paper, we mainly apply entangled resources, projective measurements and multi-qubit unitary transformations. From Sect. 2, we can see that the entanglement resources we employ can be generated by unitary operators. It has been proved that arbitrary multi-qubit unitary operations can be composed of single-qubit unitary transformations and two-qubit CNOT gates in quantum information [30]. Meanwhile, the single-qubit unitary operations and two-qubit CNOT gates can be realized in different physical experiments, such as the linear optics [31, 32], ion traps [33, 34] and cavity QED system [35]. Consequently, the entangled resources and multi-qubit unitary operations used in our schemes might be implemented in physical experiments. Moreover, it can be seen that single-qubit projective measurements and two-qubit projective measurements can be realized experimentally in practice [36, 37]. Additionally, the multi-qubit projective measurement basis, similar to Eqs. (4, 13, 19) in this paper, is available for the previous RSP proposals [38,39,40], and the measurement basis in Eqs. (6), (15) and (21) are special cases in Eqs. (4), (13) and (20), respectively. Hence, our protocols might be realizable physically in near future.

In summary, we first construct the quantum circuit to output the state \(|Q\rangle \) of Eq. (1). Next we have forward perfect schemes for controlled JRSP of arbitrary two- and three-qubit states and extended them to prepare arbitrary multi-qubit states via the quantum channel in terms of a suitable chosen non-maximally entangled resource \(|Q\rangle \), whose entangled degree is determined by parameters \(\theta _j\). For each controlled JRSP scheme, we have given the specific measurement basis performed by the two senders and the supervisor, and also the unitary transformations needed to restore the initial states by the receiver. Traditionally, the receiver is allowed to know the values of some \(\theta _j\) and he/she can recover his/her qubits to be in the desired state after hearing all the measurement outcomes. However, the receiver needs to pay for additional quantum resources, quantum operations and quantum measurements, yet the performance can only be probabilistic with the total success probability depending sensitively on some \(\theta _j\). In our schemes, we let the supervisor (instead of the receiver) know these \(\theta _j\). If so, the supervisor is able to do projective (not POVM) measurements on his/her qubits in the right basis determined by \(\theta _j\), so that the receiver needs a proper unitary transformation to faithfully obtain the target state without consuming anything else. Another crucial merit is that, combined with feed-forward measurements by the two preparers, the total success probability of each of our protocols is always 1, independent of the entanglement degree of the quantum channel. Although entanglement is necessary, any amount (even tiny) of it does equally well in our protocols. This feature is very interesting and amazing in exploring entanglement, especially partial entanglement, to complete global quantum tasks through local operation and classical communication.