Skip to main content
Have a personal or library account? Click to login
Arbitrary State Creation via Controlled Measurement Cover

Arbitrary State Creation via Controlled Measurement

Open Access
|Jun 2026

Full Article

1.
Introduction

The quantum state preparation is a vital process in quantum informatics, having both theoretical and experimental aspects [1,2]. In many cases, this step is not included in the main algorithm, which assumes access to the already prepared quantum state. However, the initial state creation might be the most crucial in determining the characteristics of the algorithm, such as depth and space, thus governing the effectiveness of the algorithm. The particular initial state preparation is required, for instance, in the HHL-algorithms solving system of linear algebraic equations [3] to encode the known right-hand side of the linear system, in the algorithms of matrix manipulation to create the matrices to be subjected to addition, multiplication [4,5], in quantum machine learning to encode the input data [68], in the least-square linear-regression algorithms [911] working with encoding the large data sets.

The problem of constructing an arbitrary quantum state is closely related to the problem of constructing an arbitrary unitary operator, since any state of a quantum system can be obtained from the ground state of this system by applying the appropriate unitary transformation. This is a very attractive problem due to the fast-developing quantum informatics, including quantum computation and quantum networks. Numerous papers are devoted to constructing arbitrary n-qubit unitary transformations. We refer to Ref. [12] where elementary one- and two-qubit unitary transformations are discussed in detail and the method of constructing an arbitrary n-qubit unitary transformation via multiqubit CNOTs and one-qubit unitary operations is proposed with the estimated depth between Ω(4n) and Θ(n34n). In Ref.[13], the O(4n)-depth algorithm is developed, implementing the Gray code [14] for reordering the basis states. Both algorithms do not involve ancillary qubits, therefore the space of both is O(n). A similar conclusion for the model without ancillae is made in Ref. [15], but, in addition, the authors show that including the O(2n)-qubit ancilla allows to decrease the depth of the algorithm to O(2n). In Ref. [16], including 2O(n)-qubit ancillar and implementing the Grover search algorithm the authors propose O(2n/2)-depth algorithm for constructing an arbitrary n-qubit unitary transformation. Regarding the depth of a circuit creating an arbitrary n-qubit state in [15,17], its depth reduces from O(2n) for the algorithm without ancilla to O(n) for the algorithm with O(2n)-qubit ancilla. In other words, exponentially increasing with n dimensionality of the ancilla leads to the depth of the algorithm linearly increasing with the dimension of the quantum system. This result was confirmed in Ref. [18]. In Ref. [19], the measurement including circuit of O(n2) depth involving O(22n)-qubit ancilla was constructed, and the lower limit Ω(n) for the circuit depth with an arbitrary number of ancilla qubits was found. Another feature of such universal algorithms is that they require utilizing specific unitary transformations with particular rotation parameters determined via classical computation and therefore require classical supplementary calculations. The same remark can be referred to the algorithms constructing an arbitrary quantum state discussed in [2022]. The above mentioned confrontation between the depth of the algorithm and the ancilla dimensionality can be observed in most papers concerning the state-creation problem.

The above mentioned classical calculations establish relations among probability amplitudes of the state under consideration and the set of one-qubit rotation-parameters used in the above state-creation algorithms. According to Ref. [15], the depth and space of such classical algorithm can be both estimated as O(2nn). Therefore, the classical computation takes significant part of the overall state-encoding algorithm. Our algorithm is free of such calculations, which makes some of it similar to the algorithm in Ref. [19]. However, in our case, the number of additional qubits m is defined by the number of decimals in the amplitudes and phases of the state to be encoded and is at most O(n). In addition, the special initial state preparation is required in the algorithm Ref. [19], while we start with the ground states of all the qubits involved in the circuit.

As demonstrated above, elaborating the optimal algorithm for creating an arbitrary quantum state is a subtle problem. Therefore, most state-creation algorithms are usually well suitable for creating certain classes of states. Thus, in [23], the uniformly controlled rotations are used for transforming the input state to the required form. Those algorithms are presented as rather universal ones, and their realization also requires special calculation of needed rotation angles via a classical tool. In [24], the divide-and-conquer algorithm [25] was used to speed up the data loading that was identified with state-creation. Arbitrary state preparation in the Schmidt decomposition form is considered in [26] and is suitable for creating small-scale states. The preparation of quantum states that are uniform superpositions over a subset of basis states is considered in [27,28]. Those algorithms have advantages in characteristics but suffer in the variety of creatable states. The algorithm for preparing the Qudit Dicke states (equal-weight superposition of all states with a fixed number of excited qubits) is presented in [29] and also suffers from restrictions on the family of creatable states. Quantum networks [30] may be effective for high-fidelity preparing, in particular, pure symmetric states. A method for encoding vectors obtained by sampling analytical functions into quantum circuits is proposed in [31]. It has the privilege of reaching high fidelity but needs a particular function whose sampling yields the required vector (state). The protocol incorporating periodic quantum resetting for preparing ground states of frustration-free parent Hamiltonians is studied in [32]. The ground state of the spin-1 Affleck, Kennedy, Lieb and Tasaki (AKLT) model can be prepared using fusion measurements (fusion of small matrix product states through the Bell measurement of a special ancilla) [33]. The algorithm for encoding a matrix of classical data into the block of the unitary matrix is proposed in Ref. [34]. A large variety of quantum states can be created via the adiabatic technique [2,35].

In our paper, we demonstrate the power of measurement in the arbitrary state-creation algorithm. It is already well known that the measurement is an important operation in quantum information theory [36]. It may serve to extract classical information from the quantum system, for instance, in Shor’s [37] and Grover’s [38] algorithms. The measurement in the variational algorithms serves to obtain an ‘intermediate’ result, calculating the loss function for fixed values of optimization parameters in the optimization loop, including classical optimization algorithm [39]. A large variety of algorithms use intermediate measurements to modify the quantum state for further evaluation. Among them, there are teleportation algorithms [40,41], HHL-algorithm for solving linear systems [3], and error mitigation algorithms [42]. Measurements can also be implemented in the algorithms constructing the eigenvalues of non-unitary matrices [43], realizing the perfect state transfer [44], quantum computation based on measurement of certain entangled states [45], long-range quantum communication [46], quantum repeater [47] for creating remote entangled states, quantum algorithms for matrix algebra [5]. A variant of the measurement-based state creation was proposed in Ref. [19].

Below, we present the special algorithm to create an arbitrary n-qubit pure quantum state 1|Ψ̃=j=02n1ãje2πiφ̃j|jS,j=02n1ãj2=1,|\tilde \Psi \rangle = \sum\limits_{j = 0}^{{2^n} - 1} {{{\tilde a}_j}} {e^{2\pi i{{\tilde \varphi }_j}}}|j{\rangle _S},\sum\limits_{j = 0}^{{2^n} - 1} {\tilde a_j^2} = 1, of the system S via one-qubit rotations, Hadamard operators, and set of C-NOTs with multi-qubit control. In Eq. (1), all amplitudes ãj{{\tilde a}_j} and phases φ̃j{{\tilde \varphi }_j} are real numbers with 0ãj1,0φ̃j<10 \le {{\tilde a}_j} \le 1,0 \le {{\tilde \varphi }_j} < 1. The factor 2π is not necessary; it is included in the phases just for convenience. We use the m-decimal encoding (in binary form) of both amplitudes ãj{{\tilde a}_j} and phases φ̃j{{\tilde \varphi }_j}. For this purpose, we involve two m-qubit subsystems. We show that the depth of the circuit is O(2nnm + m2) and the space is O(n + m) qubits, or if n ≫ m, these parameters are O(2nn) and O(n), respectively. We emphasize that the case of independent n and m is valuable because, in practice, probability amplitudes appear as floating-point numbers, either in the form a + ib or ae with real floating-point numbers a, b, and φ. In this case, we can realize the exact encoding of such a quantum state. We consider the second representation, although our algorithm can be adjusted for the first representation as well. We also consider the case when m serves to provide the required fidelity δ of state encoding, which leads to an increase in depth till O(2nn2) (if n ≫ – log2 δ). Then m becomes related to n and m = O(n). This situation appears if we have to approximate the probability amplitudes by floating-point numbers, for instance, if they include radicals. As was already mentioned, an important advantage of our algorithm is that it doesn’t assume any additional classical calculations of one-qubit rotation parameters, except the binary expansion of the amplitudes and phases of the state to be encoded. In other words, it doesn’t require any additional inclusion of classical computations, as well as implementing the Gray code [14] for ordering the basis vectors. The algorithm is finalized with the measurement of the ancilla state aimed at the desired output, thus selecting the required quantum state out of its superposition with some garbage. We shall note that the probability of access to the desired ancilla state (success probability) is 2n+4m(nm), which requires O(2n+4m) runs of the algorithm with the purpose of obtaining the desired ancilla state after measurement. This multiple running can be referred to the increase in the overall depth of the algorithm, which becomes, for nm, O(2nn)O(2n) = O(4nn), keeping the exponential dependence on n. Similar arguments for the case when m provides the desired fidelity δ(n ≫ – log2 δ, m > n/2) yield the depth O(24nn2) while the estimation for the space remains the same.

It is remarkable that the small success probability leading to such an increase in depth can be avoided by replacing the usual measurement of the ancilla state with the so-called controlled measurement [48]. Such measurement not only removes the garbage (like usual measurement) but also removes the necessity of multiple running no matter the value of the success probability, which is the most important property of the controlled measurement. The detailed consideration of controlled measurement is given in Ref. [48], and therefore we do not present its extended description here. Some principal issues will be given below in Section 2.3. The concept of controlled measurement is attractive and yields great advantage, removing the problem of small success probability (supplementing many measurementbased algorithms). Implementing the controlled measurement exhibits the deeper relation between quantum and classical physics. But at the moment, we cannot present its realization in terms of acknowledged classical or quantum operations. Therefore, along with the controlled measurement technique, we also propose an alternative based on usual measurements, although the depth becomes bigger in this case. Including classical calculations is not required in both cases.

The above analysis of the depth and space shows that the space is O(n) in all versions, while the best result for the depth is O(2nn) corresponding to implementing the controlled measurement, which does not improve the appropriate characteristics obtained in other references. Thus, the principal advantage of our algorithm is that it does not include classical calculations and therefore is completely quantum. In addition, the preliminary classical calculations yield approximate values for the rotation parameters, so that, a priori, such algorithms can realize only approximate creation of the desired quantum states. On the contrary, our algorithm allows exact creation of quantum states whose phases and amplitudes are given in the floating-point form, as will be shown in Section 2.

The paper is organized as follows. The general algorithm of arbitrary state creation is proposed in Section 2 with a detailed description of the algorithms for amplitude and phase encoding into the superposition pure quantum state. The characteristics of the algorithm are discussed therein. Basic conclusion are collected in Section 3. The simple example of a particular one-qubit state creation is given in Appendix A.

2.
Arbitrary State Preparation

Let us consider an arbitrary n-qubit quantum state, Eq. (1), which is to be encoded into the state of the quantum system S.

Of course, we cannot encode the exact state, Eq. (1), in general because we must fix the precision used for representations of amplitudes ãj{{\tilde a}_j} and phases φ̃j{{\tilde \varphi }_j}. Therefore, we encode the approximate state prepared as follows. Let us approximate ãj{{\tilde a}_j} and φ̃j{{\tilde \varphi }_j} keeping m decimals in the binary form, i.e., 2ãjk=1mαj(mk)2k=12mk=0m1αjk2k=aj2m,aj=k=0m1αjk2k,φ̃jφj=k=1mβjk2k,\matrix{ {{{\tilde a}_j} \approx \sum\limits_{k = 1}^m {{{{\alpha _{j(m - k)}}} \over {{2^k}}}} = {1 \over {{2^m}}}\sum\limits_{k = 0}^{m - 1} {{\alpha _{jk}}} {2^k} = {{{a_j}} \over {{2^m}}},{a_j} = \sum\limits_{k = 0}^{m - 1} {{\alpha _{jk}}} {2^k},} \hfill \cr {{{\tilde \varphi }_j} \approx {\varphi _j} = \sum\limits_{k = 1}^m {{{{\beta _{jk}}} \over {{2^k}}}} ,} \hfill \cr } where all αij and βjk equal either 0 or 1. This allows us to replace the state given in Eq. (1) with the following approximate one 3|Ψ=G1j=02n1aje2πiφj|jS,G=j=02n1aj2.|\Psi \rangle = {G^{ - 1}}\sum\limits_{j = 0}^{{2^n} - 1} {{a_j}} {e^{2\pi i{\varphi _j}}}|j{\rangle _S},\quad G = \sqrt {\sum\limits_{j = 0}^{{2^n} - 1} {a_j^2} } .

Let us calculate the fidelity between the states |Ψ̃|\tilde \Psi \rangle and |Ψ〉, F=|Ψ̃Ψ|2F = |\langle \tilde \Psi \mid \Psi \rangle {|^2}. We can write aj=ãjεj,φj=φ̃jϵj,G=j=02n1(ãjεj)2{a_j} = {{\tilde a}_j} - {\varepsilon _j},{\varphi _j} = {{\tilde \varphi }_j} - {_j},G = \sqrt {\sum\nolimits_{j = 0}^{{2^n} - 1} {{{\left( {{{\tilde a}_j} - {\varepsilon _j}} \right)}^2}} } , where εj and ϵj are neglected parts of, respectively, ãj{{\tilde a}_j} and φ̃j{{\tilde \varphi }_j}. Then we have 4F=1G2| j=02n1ãj(ãjεj)e2πϵj |2=1G2j=02n1k=02n1(ãj2ãjεj)(ãk2ãkεk)e2πi(ϵjϵk)=1G2j>k>02(ãj2ãk22ãj2akεk+ãjãkεjεk)cos(2π(ϵjϵk))+1G2j=02n1(ãj42ãj3εj+ãj2εj2).\matrix{ {F = {1 \over {{G^2}}}{{\left| {\sum\limits_{j = 0}^{{2^n} - 1} {{{\tilde a}_j}} \left( {{{\tilde a}_j} - {\varepsilon _j}} \right){e^{ - 2\pi {_j}}}} \right|}^2} = {1 \over {{G^2}}}\sum\limits_{j = 0}^{{2^n} - 1} {\sum\limits_{k = 0}^{{2^n} - 1} {\left( {\tilde a_j^2 - {{\tilde a}_j}{\varepsilon _j}} \right)} } \left( {\tilde a_k^2 - {{\tilde a}_k}{\varepsilon _k}} \right){e^{2\pi i\left( {{_j} - {_k}} \right)}} = } \hfill \cr {{1 \over {{G^2}}}\sum\limits_{j > k > 0} 2 \left( {\tilde a_j^2\tilde a_k^2 - 2\tilde a_j^2{a_k}{\varepsilon _k} + {{\tilde a}_j}{{\tilde a}_k}{\varepsilon _j}{\varepsilon _k}} \right)\cos \left( {2\pi \left( {{_j} - {_k}} \right)} \right) + {1 \over {{G^2}}}\sum\limits_{j = 0}^{{2^n} - 1} {\left( {\tilde a_j^4 - 2\tilde a_j^3{\varepsilon _j} + \tilde a_j^2\varepsilon _j^2} \right)} .} \hfill \cr }

We introduce the small parameter ϵ = maxj,k|ϵkϵj|. Then, since ãkεk{{\tilde a}_k} \ge {\varepsilon _k} so that each term in the second line of Eq. (4) is positive, we have 5F1G2j>k>02(ãj2ãk22ãj2akεk+ãjãkεjεk)cos2πϵ+1G2j=02n1(ãj42ãj3εj+ãj2εj2)1G2j=02n1k=02n1(ãj2ãk22ãj2akεk+ãjãkεjεk)cos2πϵ=1G2(12k=02n1akεk+j=02n1k=02n1ãjãkεjεk)cos2πϵ,\matrix{ {F \ge {1 \over {{G^2}}}\sum\limits_{j > k > 0} 2 \left( {\tilde a_j^2\tilde a_k^2 - 2\tilde a_j^2{a_k}{\varepsilon _k} + {{\tilde a}_j}{{\tilde a}_k}{\varepsilon _j}{\varepsilon _k}} \right)\cos 2\pi + {1 \over {{G^2}}}\sum\limits_{j = 0}^{{2^n} - 1} {\left( {\tilde a_j^4 - 2\tilde a_j^3{\varepsilon _j} + \tilde a_j^2\varepsilon _j^2} \right)} \ge } \hfill \cr {{1 \over {{G^2}}}\sum\limits_{j = 0}^{{2^n} - 1} {\sum\limits_{k = 0}^{{2^n} - 1} {\left( {\tilde a_j^2\tilde a_k^2 - 2\tilde a_j^2{a_k}{\varepsilon _k} + {{\tilde a}_j}{{\tilde a}_k}{\varepsilon _j}{\varepsilon _k}} \right)} } \cos 2\pi = {1 \over {{G^2}}}\left( {1 - 2\sum\limits_{k = 0}^{{2^n} - 1} {{a_k}} {\varepsilon _k} + \sum\limits_{j = 0}^{{2^n} - 1} {\sum\limits_{k = 0}^{{2^n} - 1} {{{\tilde a}_j}} } {{\tilde a}_k}{\varepsilon _j}{\varepsilon _k}} \right)\cos 2\pi ,} \hfill \cr } where the normalization given in Eq.(1) is used. Since G2=12j=02n1ãjεj+j=02n1εj2,{G^2} = 1 - 2\sum\limits_{j = 0}^{{2^n} - 1} {{{\tilde a}_j}} {\varepsilon _j} + \sum\limits_{j = 0}^{{2^n} - 1} {\varepsilon _j^2} , we can write F=cos2πϵ(11G2j=02n1k=02n1(δjkãjãk)εjεk)(1(2πϵ)22j=02n1k=02n1(δjkãjãk)εjεk)=F̃,F = \cos 2\pi \left( {1 - {1 \over {{G^2}}}\sum\limits_{j = 0}^{{2^n}} {\sum\limits_{k = 0}^1 {\left( {{\delta _{jk}} - {{\tilde a}_j}{{\tilde a}_k}} \right)} } {\varepsilon _j}{\varepsilon _k}} \right) \approx \left( {1 - {{{{(2\pi )}^2}} \over 2} - \sum\limits_{j = 0}^{{2^n} - 1} {\sum\limits_{k = 0}^{{2^n} - 1} {\left( {{\delta _{jk}} - {{\tilde a}_j}{{\tilde a}_k}} \right)} } {\varepsilon _j}{\varepsilon _k}} \right) = \tilde F, where δjk is the Kronecker symbol and we keep only quadratic terms in εj, ϵ. Let ε = maxj εj = ϵ. Then |F̃1|ε2(2π2+2nj=02n1k=02n1ãjãk)ε2(2π2+2n1),|\tilde F - 1|\; \le {\varepsilon ^2}\left( {2{\pi ^2} + {2^n} - \sum\limits_{j = 0}^{{2^n} - 1} {\sum\limits_{k = 0}^{{2^n} - 1} {{{\tilde a}_j}} } {{\tilde a}_k}} \right) \le {\varepsilon ^2}\left( {2{\pi ^2} + {2^n} - 1} \right), where we use the inequality j=02n1ãj1\sum\nolimits_{j = 0}^{{2^n} - 1} {{{\tilde a}_j}} \ge 1. Therefore, if the required accuracy is |F̃1|<δ|\tilde F - 1| < \delta , then ε<δ2n+2π21<δ2n\varepsilon < \sqrt {{\delta \over {{2^n} + 2{\pi ^2} - 1}}} < \sqrt {{\delta \over {{2^n}}}} . The parameter ε is related to m as follows. If we keep m decimals in the amplitudes aj and phases φj, then ε=j=m+12j=2m\varepsilon = \sum\nolimits_{j = m + 1}^\infty {{2^{ - j}}} = {2^{ - m}}. Now we can relate m to n and δ: 62m<δ2nm>12log2δ2n=12log2δ+n2.\matrix{ {{2^{ - m}} < \sqrt {{\delta \over {{2^n}}}} \Rightarrow } \hfill \cr {m > - {1 \over 2}{{\log }_2}{\delta \over {{2^n}}} = - {1 \over 2}{{\log }_2}\delta + {n \over 2}.} \hfill \cr } which is the desired relation.

However, it is quite possible that the quantum state to be encoded is defined by the amplitudes and phases given in the approximate form with m decimals. Then ãj=aj2m,φ̃j=φj{{\tilde a}_j} = {{{a_j}} \over {{2^m}}},{{\tilde \varphi }_j} = {\varphi _j} and δ = 0. In this case, n and m are independent. Thus, below we consider two equally important cases:

  • n and m are two independent parameters.

  • n and m are related by Eq. (6), or m = O(n).

Below, we discuss the quantum algorithm encoding the approximate state |Ψ〉 using αjk and βjk as parameters in the controlled operations included in the algorithm. To create the state |Ψ〉 given in Eq. (3), we involve the n-qubit subsystem S, which stores the state |Ψ〉 and two auxiliary m-qubit subsystems R and φ responsible for the accuracy of creating, respectively, the amplitudes aj and phases φj in the state-creation algorithm.

We proceed with the ground state of the subsystems S, R, and φ: |Φ0〉 = |0〉S |0〉R|0〉φ, see Figure 1.

Figure 1.

The circuit for creating an arbitrary quantum state, Rφ=k=1mRφk{R_\varphi } = \prod\nolimits_{k = 1}^m {{R_{{\varphi _k}}}} . The measurement of B2 is controlled by the state of B1 (the controlling qubit is marked by the blue dot). This control is off in the case of usual measurement

First, we apply the Hadamard transformations HS = Hn, HR = Hm and Hφ = Hm, H=1/2(1111)H = 1/\sqrt 2 \left( {\matrix{ 1 & 1 \cr 1 & { - 1} \cr } } \right), to each qubit of the subsystems S, R, and φ, respectively, and, in addition, apply the gate 7Rφk=(100e2πi/2k),k=1,,m,{R_{{\varphi _k}}} = \left( {\matrix{ 1 & 0 \cr 0 & {{e^{2\pi i/{2^k}}}} \cr } } \right),\quad k = 1, \ldots ,m, to the kth qubit of the subsystem φ. Thus, we form the operator 8WSRφ(0)=(k=1mRφk)HφHRHS.W_{SR\varphi }^{(0)} = \left( {\prod\limits_{k = 1}^m {{R_{{\varphi _k}}}} } \right){H_\varphi } \otimes {H_R} \otimes {H_S}.

Hereafter, the subscript at the operator indicates the subsystem to which this operator is applied. The subscript at the subsystem indicates its qubit. Applying WSRφ(0)W_{SR\varphi }^{(0)} to the state |Φ0〉 we obtain the state |Φ1〉, see Figure 1: 9|Φ1=WSRφ(0)|Φ0=12(n+2m)/2j=02n1|jS|ΨR|Ψφ\left| {{\Phi _1}} \right\rangle = W_{SR\varphi }^{(0)}\left| {{\Phi _0}} \right\rangle = {1 \over {{2^{(n + 2m)/2}}}}\sum\limits_{j = 0}^{{2^n} - 1} | j{\rangle _S}\left| {{\Psi _R}} \right\rangle \left| {{\Psi _\varphi }} \right\rangle where we denote, for brevity, 10|ΨR=k=02m1|kR,|Ψφ=k=1m(|0φk+e2πi/2k|1φk).\left| {{\Psi _R}} \right\rangle = \sum\limits_{k = 0}^{{2^m} - 1} | k{\rangle _R},\quad \left| {{\Psi _\varphi }} \right\rangle = \prod\limits_{k = 1}^m {\left( {|0{\rangle _{{\varphi _k}}} + {e^{2\pi i/{2^k}}}|1{\rangle _{{\varphi _k}}}} \right)} .

After such preparations, we propose two separate subroutines encoding the amplitudes aj and phases ψj in the superposition state |Ψ〉 of the subsystem S. Therewith, each subroutine includes the additional m-qubit subsystem mentioned above, either R (amplitude encoding) or φ (phase encoding).

2.1.
Amplitude Encoding

First, we encode the integer amplitudes aj in the state |Ψ〉 given in Eq. (3). We perform this encoding by relating aj different basis states from the state |ΨR〉 of the subsystem R to the state |jS. For this purpose, we introduce the 2-qubit ancilla A in the ground state |0〉A, the projectors 11PS(k)=j=02n1αjk|jSSj|,k=0,,m1,P_S^{(k)} = \sum\limits_{j = 0}^{{2^n} - 1} {{\alpha _{jk}}} |j{\rangle _S}_S\langle j|,\quad k = 0, \ldots ,m - 1, and the appropriate controlled operators 12W̃SA1(k)=PS(k)σA1(x)+(ISPS(k))IA1,k=0,,m1,\tilde W_{S{A_1}}^{(k)} = P_S^{(k)} \otimes \sigma _{{A_1}}^{(x)} + \left( {{I_S} - P_S^{(k)}} \right) \otimes {I_{{A_1}}},k = 0, \ldots ,m - 1, where σA1(x)\sigma _{{A_1}}^{(x)} and IA1 are, respectively, the Pauli operator σ(x)=(0110){\sigma ^{(x)}} = \left( {\matrix{ 0 \hfill & 1 \hfill \cr 1 \hfill & 0 \hfill \cr } } \right) and identity operator applied to the 1st qubit of the ancilla A. The operator W̃SA1(k)\tilde W_{S{A_1}}^{(k)} with the fixed k relates the terms αjk|jS in |Φ1〉, j = 0,…, 2n – 1, for which αjk = 1, to the excited state of the ancilla qubit A1, |1〉A1. Now we introduce another set of projectors 13PRA1(k)=|1Rk+1|0Rk+2|0RmRk+1 1|Rk+20|Rm0|1 A1A11|,k=0,,m1,P_{R{A_1}}^{(k)} = |1{\rangle _{{R_{k + 1}}}}|0{\rangle _{{R_{k + 2}}}} \ldots |0{\rangle _{{R_m}{R_{k + 1}}}}{\left\langle {{{\left. 1 \right|}_{{R_{k + 2}}}}\langle 0| \ldots {R_m}\langle 0| \otimes \mid 1} \right\rangle _{{A_1}{A_1}}}\langle 1|,\quad k = 0, \ldots ,m - 1, and the control operators 14VRA(k)=PRA1(k)σA2(x)+(IRA1(k)PRA1(k))IA2,k=0,,m1,V_{RA}^{(k)} = P_{R{A_1}}^{(k)} \otimes \sigma _{{A_2}}^{(x)} + \left( {I_{R{A_1}}^{(k)} - P_{R{A_1}}^{(k)}} \right) \otimes {I_{{A_2}}},\quad k = 0, \ldots ,m - 1, where IRA1(k)I_{R{A_1}}^{(k)} means the identity operator applied to the last mk qubits of the subsystem R and to the ancilla qubit A1, σA2(x)\sigma _{{A_2}}^{(x)} and IA2 are, respectively, the σ(x) and identity operators applied to the 2nd qubit of the ancilla A. Through the excited state of the ancilla qubit A2, |1〉A2, the operator VRA(k)V_{RA}^{(k)} with fixed k relates 2k basis states of R to each such basis state in the sum j=02n1|jS\sum\nolimits_{j = 0}^{{2^n} - 1} {|j{\rangle _S}} in |Φ1〉, for which αjk = 0. The information about the amplitudes to be created (parameters αjk from expansions in Eqs. (2)) is enclosed in the projectors PS(k)P_S^{(k)} given in Eq. (11) and does not require additional calculations via a classical tool. Collecting Eqs. (11)(14) we construct the operator 15WSRA(1)=k=0m1W̃SA1(k)VRA(k)W̃SA1(k).W_{SRA}^{(1)} = \prod\limits_{k = 0}^{m - 1} {\tilde W_{S{A_1}}^{(k)}} V_{RA}^{(k)}\tilde W_{S{A_1}}^{(k)}.

Here, the first from the left operator W̃SA1(k)\tilde W_{S{A_1}}^{(k)} in the triad W̃SA1(k)VRA(k)W̃SA1(k)\tilde W_{S{A_1}}^{(k)}V_{RA}^{(k)}\tilde W_{S{A_1}}^{(k)} returns the ancilla qubit A1 to the ground state |0〉A1 thus preparing this qubit for use by the next triad of operators W̃SA1(k+1)VRA(k+1)W̃SA1(k+1)\tilde W_{S{A_1}}^{(k + 1)}V_{RA}^{(k + 1)}\tilde W_{S{A_1}}^{(k + 1)}. Applying the operator WSRA(1)W_{SRA}^{(1)} to the state |Φ1〉|0〉A we obtain the state |Φ2〉, see Figure 1: 16|Φ2=WSRA(1)|Φ1|0A=12(n+2m)/2j=02n1|jSk=0m1αjkl=02k1|2k+lR|Ψφ|0A1|1A2+|g2.\matrix{ {\left| {{\Phi _2}} \right\rangle = W_{SRA}^{(1)}\left| {{\Phi _1}} \right\rangle |0{\rangle _A} = } \hfill \cr {{1 \over {{2^{(n + 2m)/2}}}}\sum\limits_{j = 0}^{{2^n} - 1} | j{\rangle _S}\sum\limits_{k = 0}^{m - 1} {{\alpha _{jk}}} \sum\limits_{l = 0}^{{2^k} - 1} {{{\left| {{2^k} + l} \right\rangle }_R}} \left| {{\Psi _\varphi }} \right\rangle |0{\rangle _{{A_1}}}|1{\rangle _{{A_2}}} + \left| {{g_2}} \right\rangle .} \hfill \cr }

In Eq. (16), the first part collects the terms with the excited state of A2, while all other terms are collected in the garbage |g2〉 to be removed later. We see that each state |jS is related to k=0m1αjk2k\sum\nolimits_{k = 0}^{m - 1} {{\alpha _{jk}}{2^k}} basis states of the subsystem R.

Thus, the information about the amplitudes of the state |Ψ〉 is encoded into the state |Φ2) through the parameters αjk · Before completing the amplitude encoding, we turn to the phase encoding algorithm.

2.2.
Phase Encoding

The phase encoding subroutine differs from the subroutine encoding the amplitudes aj. To encode the phases φj into the state |Φ2〉 (and eventually into the state |Ψ〉 given in Eq. (3)), we introduce the projectors 17PSφ(j)=|jSSj|k=1m|βjkφkφkβjk|,j=0,,2n1,P_{S\varphi }^{(j)} = |j{\rangle _{SS}}\langle j|\prod\limits_{k = 1}^m {{{\left| {{\beta _{jk}}} \right\rangle }_{{\varphi _k}\;{\varphi _k}}}} \langle {\beta _{jk}}|,\quad j = 0, \ldots ,{2^n} - 1, and the controlled operators 18W̃SφA1(j)=PSφ(j)σA1(x)+(ISφPSφ(j))IA1,j=0,,2n1.\tilde W_{S\varphi {A_1}}^{(j)} = P_{S\varphi }^{(j)} \otimes \sigma _{{A_1}}^{(x)} + \left( {{I_{S\varphi }} - P_{S\varphi }^{(j)}} \right) \otimes {I_{{A_1}}},\quad j = 0, \ldots ,{2^n} - 1.

Here, σA1(x)\sigma _{{A_1}}^{(x)} and IA1 are, respectively, the σ(x) and identity operators applied to the 1st qubit of the ancilla A, while I is the identity operator applied to the subsystem Sφ. The complete information about the phases (parameters βjk) is encoded into the projectors PSφ(j)P_{S\varphi }^{(j)} given in Eq. (17). Now, we construct the operator 19WSφA1(2)=j=02n1W̃SφA1(j)W_{S\varphi {A_1}}^{(2)} = \prod\limits_{j = 0}^{{2^n} - 1} {\tilde W_{S\varphi {A_1}}^{(j)}} and apply it to the state |Φ2⟩, thus obtaining the state |Φ3⟩, see Figure 1, 20|Φ3=WSφA1(2)|Φ2=12(n+2m)/2j=0N1|jSk=0m1αjkl=02k1|2k+lRr=1me2πiβjr/2r|βjrφr|1A1|1A2+|g3.\matrix{ {\left| {{\Phi _3}} \right\rangle = W_{S\varphi {A_1}}^{(2)}\left| {{\Phi _2}} \right\rangle = } \hfill \cr {{1 \over {{2^{(n + 2m)/2}}}}\sum\limits_{j = 0}^{N - 1} | j{\rangle _S}\sum\limits_{k = 0}^{m - 1} {{\alpha _{jk}}} \sum\limits_{l = 0}^{{2^k} - 1} {{{\left| {{2^k} + l} \right\rangle }_R}} \prod\limits_{r = 1}^m {{e^{2\pi i{\beta _{jr}}/{2^r}}}} {{\left| {{\beta _{jr}}} \right\rangle }_{{\varphi _r}}}|1{\rangle _{{A_1}}}|1{\rangle _{{A_2}}} + \left| {{g_3}} \right\rangle .} \hfill \cr }

We see that the operator WSφA1(2)W_{S\varphi {A_1}}^{(2)} serves to create the needed phases expressed in terms of βjr, so that φj=k=1mβjk2k{\varphi _j} = \sum\nolimits_{k = 1}^m {{{{\beta _{jk}}} \over {{2^k}}}} . Next, we identify with each other all states |2k + lR and all states |βjrφk in Eq. (20). To this end, we apply the Hadamard transformations Hr = Hm and Hφ = Hm to each qubit of the subsystems R and φ, i.e., we apply the transformation 21WRφ(3)=HRHφ,W_{R\varphi }^{(3)} = {H_R}{H_\varphi } to the state |Φ3⟩, and select those terms from the first part of Eq. (20) that are marked by the state |0⟩R|0⟩φ|1⟩A1|1⟩A2, collecting other terms from the first part together with the garbage |g3⟩ in the garbage |g4): 22|Φ4=WRφ(3)|Φ3=12(n+4m)/2j=02n1aje2πiφj|jS|0R|0φ|1A1|1A2+|g4.\left| {{\Phi _4}} \right\rangle = W_{R\varphi }^{(3)}\left| {{\Phi _3}} \right\rangle = {1 \over {{2^{(n + 4m)/2}}}}\sum\limits_{j = 0}^{{2^n} - 1} {{a_j}} {e^{2\pi i{\varphi _j}}}|j{\rangle _S}|0{\rangle _R}|0{\rangle _\varphi }|1{\rangle _{{A_1}}}|1{\rangle _{{A_2}}} + \left| {{g_4}} \right\rangle .

Deriving Eq. (22) from Eq. (20), we transform the states of the subsystems R and φ as follows: 23HRk=0m1αjkl=02k1|2k+lR=k=0m1αjkl=02k1|0R+restR=k=0m1αjk2k|0R+restR=aj|0R+restR,Hφr=1me2πiβjr/2r|βjrφr=r=1me2πiβjr/2r|0φr+restφ=r=1me2πiφj|0φr+restφ,\matrix{ {{H_R}\sum\limits_{k = 0}^{m - 1} {{\alpha _{jk}}} \sum\limits_{l = 0}^{{2^k} - 1} {{{\left| {{2^k} + l} \right\rangle }_R}} = \sum\limits_{k = 0}^{m - 1} {{\alpha _{jk}}} \sum\limits_{l = 0}^{{2^k} - 1} | 0{\rangle _R} + \mid {\rm{ res}}{{\rm{t}}_{_R}}{\rm{ }} = \sum\limits_{k = 0}^{m - 1} {{\alpha _{jk}}} {2^k}|0{\rangle _R} + \mid {\rm{res}}{{\rm{t}}_R} = {a_j}|0{\rangle _R} + \mid {\rm{res}}{{\rm{t}}_R},} \hfill \cr {{H_\varphi }\prod\limits_{r = 1}^m {{e^{2\pi i{\beta _{jr}}/{2^r}}}} {{\left| {{\beta _{jr}}} \right\rangle }_{{\varphi _r}}} = \prod\limits_{r = 1}^m {{e^{2\pi i{\beta _{jr}}/{2^r}}}} |0{\rangle _{{\varphi _r}}} + \mid {\rm{ res}}{{\rm{t}}_\varphi } = \prod\limits_{r = 1}^m {{e^{2\pi i{\varphi _j}}}} |0{\rangle _{{\varphi _r}}} + \mid {\rm{ res}}{{\rm{t}}_\varphi },} \hfill \cr } where |rest⟩R collects all terms with |jR, j > 0, so that R⟨rest|0⟩R = 0, and |rest⟩φ collects all terms with |jφ, j > 0, so that φ⟨rest|0⟩φ = 0. We emphasize that such separation of the state |Φ4⟩ into two parts is well defined because the garbage |g4) has no terms with the state |0⟩R|0⟩φ|1⟩A1|1⟩A2 by construction. Thus, all parameters αjk and βjk are collected, respectively, in the amplitudes aj and phases φj both defined in Eq. (2). This step terminates the state encoding up to the normalization G that will be determined below after garbage removal.

2.3.
Garbage Removal

Now we label and remove the garbage. To this end, we introduce the 2-qubit ancilla B in the ground state |0⟩b, the projector 24PRφA=|0R|0φ|1A1|1A2R0|φ0|A11|A21|{P_{R\varphi A}} = |0{\rangle _R}|0{\rangle _\varphi }|1{\rangle _{{A_1}}}|1{\rangle _{{A_2}}}{\,_R}{\left\langle 0 \right|_\varphi }{\left\langle 0 \right|_{{A_1}}}{\left\langle 1 \right|_{_{{A_2}}}}\left\langle 1 \right| and the controlled operator 25WRφAB(4)=PRφAσB1(x)σB2(x)+(IRφAPRφA)IB,W_{R\varphi AB}^{(4)} = {P_{R\varphi A}} \otimes \sigma _{{B_1}}^{(x)}\sigma _{{B_2}}^{(x)} + \left( {{I_{R\varphi A}} - {P_{R\varphi A}}} \right) \otimes {I_B}, where σBi(x)\sigma _{{B_i}}^{(x)}, i = 1,2, are the σ(x)-operators applied to the ith qubit of the ancilla B, while IRφA and IB are the identity operators applied, respectively, to the subsystem RφA and B. Applying the operator WRφAB(4)W_{R\varphi AB}^{(4)} to the state | Φ4⟩|0⟩B we obtain the state |Φ5⟩, see Figure 1, 26|Φ5=WRφAB(4)|Φ4|0B=12(n+4m)/2j=02n1aje2πiφj|jS|0R|0φ|1A1|1A2|1B1|1B2+|g4|0B1|0B2\matrix{ {\left| {{\Phi _5}} \right\rangle = W_{R\varphi AB}^{(4)}\left| {{\Phi _4}} \right\rangle |0{\rangle _B} = } \hfill \cr {{1 \over {{2^{(n + 4m)/2}}}}\sum\limits_{j = 0}^{{2^n} - 1} {{a_j}} {e^{2\pi i{\varphi _j}}}|j{\rangle _S}|0{\rangle _R}|0{\rangle _\varphi }|1{\rangle _{{A_1}}}|1{\rangle _{{A_2}}}|1{\rangle _{{B_1}}}|1{\rangle _{{B_2}}} + \left| {{g_4}} \right\rangle |0{\rangle _{{B_1}}}|0{\rangle _{{B_2}}}} \hfill \cr } thus labeling the useful information and the garbage by, respectively, |1⟩B1|1⟩B2 and |0⟩B1|0⟩B2. Finally, to remove the garbage |g4⟩, we have to perform the measurement of the ancilla B2. By measurement of the one-qubit subsystem B2 we call the operator MB2 that, being applied to the superposition state 27|ΦB2=α|1B2+β|0B2,|α|2+|β|2=1,|\Phi {\rangle _{{B_2}}} = \alpha |1{\rangle _{{B_2}}} + \beta |0{\rangle _{{B_2},}}|\alpha {|^2} + |\beta {|^2} = 1, transfers it to one of the basis states, either |1⟩B2 or |0⟩B2, with the probability, respectively, |α|2 and |β|2: 28MB2|ΦB2={ α|α||1B1,probability |α|2β|β||0B1,probability |β|2. {M_{{B_2}}}|\Phi {\rangle _{{B_2}}} = \left\{ {\matrix{ {{\alpha \over {|\alpha |}}|1{\rangle _{{B_1}}},} \hfill & {{\rm{probability }}|\alpha {|^2}} \hfill \cr {{\beta \over {|\beta |}}|0{\rangle _{{B_1}}},} \hfill & {{\rm{probability }}|\beta {|^2}} \hfill \cr } .} \right.

Thus, applying MB2 to |Φ5⟩ with the purpose of getting the desired output |1⟩B2 we have

29|Φ6=MB2|Φ5=|Ψout|0R|0φ|1A1|1A2|1B1,\left| {{\Phi _6}} \right\rangle = {M_{{B_2}}}\left| {{\Phi _5}} \right\rangle = \left| {{\Psi _{{\rm{out }}}}} \right\rangle |0{\rangle _R}|0{\rangle _\varphi }|1{\rangle _{{A_1}}}|1{\rangle _{{A_2}}}|1{\rangle _{{B_1}}}, 30|Ψout=G1j=02n1aje2πiφj|jS,G=j=02n1aj2,\left| {{\Psi _{{\rm{out }}}}} \right\rangle = {G^{ - 1}}\sum\limits_{j = 0}^{{2^n} - 1} {{a_j}} {e^{2\pi i{\varphi _j}}}|j{\rangle _S},\quad G = \sqrt {\sum\limits_{j = 0}^{{2^n} - 1} {a_j^2} } , 31success probability: p=G22(n+4m).{\rm{ success probability: }}p = {{{G^2}} \over {{2^{(n + 4m)}}}}{\rm{. }}

Here, the normalization G coincides with that in the state |Ψ⟩ given in Eq. (3). It is clear that a single successful measurement is enough to obtain the quantum state |Φ6⟩. However, if, in addition, we need the normalization constant G, then we have to run the algorithm many more times to probabilistically measure the normalization G. In fact, Eq. (31) yields G=p2(n+4m)/2G = \sqrt p {2^{(n + 4m)/2}}. We have to note that the success probability p is generically small and exponentially decreases with an increase in either n or m. This means that, following the above technique, we have to run the algorithm O(2n+4m) times (this number is proportional to the inverse of the success probability) to succeed in the desired result of the measurement of B2, which is not an effective procedure for large n and/or m. Nevertheless, this approach is still acceptable for creating states of small systems with low accuracy. In addition, the probability amplification [49,50] might be possible in this case. Remember that the probability amplification through the multiple running is effective if the success probability is bigger than 1/2 [49] and is not helpful if the success probability is significantly less than 1/2; the amplitude amplification through the Grover algorithm [50] requires the number of runs that is proportional to the inverse of the square root of the success probability, but it also loses effectivity for the small success probability.

However, there is a possible way to overcome the obstacle of small success-probability by taking into consideration the so-called controlled measurement MB2 [48] over the second qubit of the ancilla B via the operator 32WB(5)=|1B1B11|MB2+|0B1B10|IB2,W_B^{(5)}={\vert1\rangle}_{B_1B_1}{\langle1\vert}\otimes M_{B_2}+{\vert0\rangle}_{B_1B_1}{\langle0\vert}\otimes I_{B_2}, where IB2 is the identity operator applied to B2, see the blue control qubit in Fig.1. Thus, applying WB(5)W_B^{(5)} to the state |Φ5⟩ we apply the measurement MB2 only if there is a term with the state |1⟩B1· Since the state of B2 is |1⟩B2 for such terms, then the result of measurement is determined and equals |1⟩B2. After the measurement, the qubit B2 remains in the state |1⟩B2 selecting the appropriate terms from the superposition state. Therefore, we obtain the state |Φ6⟩ given in Eq. (29), including the resulting state |Ψout⟩, Eq. (30), with the single run of the algorithm, no matter the value of the success probability:

33|Φ6=WB(5)|Φ5=|Ψout|0R|0φ|1A1|1A2|1B1.\left| {{\Phi _6}} \right\rangle = W_B^{(5)}\left| {{\Phi _5}} \right\rangle = \left| {{\Psi _{{\rm{out }}}}} \right\rangle |0{\rangle _R}|0{\rangle _\varphi }|1{\rangle _{{A_1}}}|1{\rangle _{{A_2}}}|1{\rangle _{{B_1}}}.

This step concludes the state encoding algorithm. We emphasize that namely the controlled measurement requires the two-qubit ancilla B, the one-qubit ancilla is enough in the case of usual measurement, which is reflected in Figure 1.

2.3.1.
Important Features of Controlled Measurement

In obtaining the state |Ψout), the key role is given to the controlled measurement represented by the operator WB(5)W_B^{(5)}. Let us discuss some features of this operator. First of all, it is not unitary due to the presence of the measurement in its structure. The meaning of this operator is that it switches on the measurement of the state of B2 if only the superposition state includes the state |1 ⟩B1 that holds for the state |Φ5⟩ in Eq. (26). In other words, this operator establishes the quantum control of classical operator, which is a measurement. In addition, since the state |1⟩B1 in |Φ5⟩ is always multiplied by |1⟩B2, then the result of measurement is predicted and yields the excited state of B2. Therefore, all the basis states that do not include |1⟩B2 (i.e., the garbage |g4⟩) will be removed from the superposition state |Φ5⟩. Although at the moment we cannot suggest a variant for the realization of the controlled measurement in terms of known quantum and classical operations, the legality of such operator is proposed by the reality of superposition states. We also note that the controlled operators, where the quantum state governs the quantum operation, are well acknowledged, C-not is the simplest representative of such operators (quantum-quantum control). In addition, the classical states can also control the quantum operators, which is realized, for instance, in quantum teleportation [1,51] (classical-quantum control). Thus, the existence of controlled operators where the quantum state governs the classical operation (quantum-classical control), like operator WB(5)W_B^{(5)}, would be the third and last type of control in the quantum-classical system (classical-classical control is trivial in this context). We emphasize that, although the concept ‘controlled measurement’ includes the term ‘measurement’, it is far from the usual measurement. In particular, unlike the usual measurement, the controlled measurement does not extract any classical information from the system, and this fact highlights the quantum constituent of this operation. Thus, if state |Φ6⟩ in Eq. (29) is obtained via the direct measurement, then we can probabilistically calculate the normalization G. But applying the controlled measurement does not assume multiple runs and consequently cannot supply any probabilistic result. Therefore, we conclude that, unlike the usual measurement, the controlled measurement cannot be considered as a bridge between quantum and classical physics because this is an operation in between quantum and classical theory combining properties of both theories. All the above does not prove the realizability of controlled measurement, but the privilege of this operation stimulates research on its possible realization that would not contradict the basic principles of quantum theory.

2.4.
Characteristics of Algorithm

The depth of the circuit is mainly determined by the operator WSRA(1)W_{SRA}^{(1)}, whose depth is O((2n+1n + m)m), and by the operator WSφA1(2)W_{S\varphi {A_1}}^{(2)}, whose depth is O(2n(n + m)) and can be estimated as O(2nnm + m2). The space is O(n + m).

Now we consider two cases.

  • n and m are independent and nm. Then the depth and space become, respectively, O(2nn) and O(n).

  • n and m are related by Eq. (6). The depth and space become, respectively, O(2n1n(n+δ̃)+14(n+δ̃)2)O\left( {{2^{n - 1}}n(n + \tilde \delta ) + {1 \over 4}{{(n + \tilde \delta )}^2}} \right) and O(32n+δ̃2)O\left( {{3 \over 2}n + {{\tilde \delta } \over 2}} \right), where δ̃=log2δ\tilde \delta = - {\log _2}\tilde \delta . For nδ̃n \gg \tilde \delta , the depth and space can be estimated, respectively, as O(2nn2) and O(n).

Thus, both above characteristics depend on two independent parameters, either n and m or n and δ.

However, the depth of the whole algorithm crucially depends on whether the usual or controlled measurement is applied. In the case of the controlled measurement, the algorithm does not require multiple running so that the depth of the algorithm equals the circuit depth estimated above. On the contrary, the depth of the algorithm implementing the usual ancilla measurement equals the circuit depth multiplied by the number of runs O(2n+4m) required to get the desired state of B2. Consider the two above cases.

  • 1. If n and m are independent and nm, the depth is O(4nn).

  • 2. If n and m are related by Eq. (6) and nδ̃n \gg \tilde \delta , the depth is O(24nn2), this estimation significantly bigger then the estimation in [15]. The space required for the evaluation of the state-creation algorithm does not depend on the type of measurement and equals the circuit space found above, i.e., increases linearly with n.

We have to emphasize that, although the controlled measurement yields doubtless advantage in comparison with the usual one, applying the usual measurement only squares the depth, which is significant but not crucial. In addition, our algorithm is not supplemented with the classical calculations of the parameters of the involved unitary transformations, which is an important advantage.

We give an example of the particular one-qubit state creation in Appendix A.

3.
Conclusions

We propose an algorithm for creating an arbitrary quantum pure superposition state encoding the amplitudes and phases of this state up to a certain precision. This algorithm does not impose any special requirement on the state to be created, and therefore, it is the universal algorithm. It is important that our algorithm does not require additional calculations of the parameters for rotations and controlled operators, and therefore, it does not include supplementary classical computations. The required precision determines the number of qubits in the auxiliary subsystems R and φ and the normalization factor G in Eq. (3). The depth of this algorithm is O(2nnm + m2) (for controlled measurement) or O(22(n+2m)nm + 2n+4mm2) (for usual measurement) thus giving the privilege to the former method and also motivating further studies on the possible realization of the controlled measurement, which is not known at the moment. However, since the depth exponentially depends on n in both cases, the effectiveness of the algorithm does not entirely depend on the realizability of the controlled measurement. The space of the algorithm equals O(n + m) qubits and does not depend on the type of measurement. This algorithm can be used as a subroutine in any quantum algorithm requiring the creation of an initial state, for instance, in the algorithms of matrix manipulations, developed in [5], to encode the input matrices. We remark that the parameters n and m may be either completely independent or linearly related in the case of providing the required fidelity of approximate state creation. In the first case, for mn, the depth is O(2nn) or O(4nn) depending on the controlled or usual measurement is implemented. In the second case, for n ≫ – log2 δ, the depth is O(2nn2) or O(24nn2) depending on the controlled or usual measurement is implemented. The space is O(n) in all considered cases. The proposed algorithm can be effective in creating the initial states for the long calculation codes, for instance, for the codes including set of matrix multiplications, additions, and inversions.

We shall emphasize that the controlled measurement given in Eq. (32) is the crucial step in the state-creation algorithm allowing to avoid the problem of small success probability that appears in the case of implementing the usual measurement. The controlled measurement binds quantum and classical concepts. This operation reduces the state-space of a superposition state, like the classical measurement. However, it does not supply any probabilistic information about the considered state, which is a typical property of a quantum operation. The privilege of such an operation motivates research on its realizability.

DOI: https://doi.org/10.2478/qic-2026-0006 | Journal eISSN: 3106-0544 | Journal ISSN: 1533-7146
Language: English
Page range: 114 - 128
Submitted on: Oct 2, 2025
Accepted on: Jan 3, 2026
Published on: Jun 4, 2026
In partnership with: Paradigm Publishing Services
Publication frequency: 1 issue per year

© 2026 Alexander I. Zenchuk, Wentao Qi, Junde Wu, published by Cerebration Science Publishing Co., Limited
This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License.