Skip to main content
. 2023 May 29;25(6):870. doi: 10.3390/e25060870
Algorithm 2: Boosted quantum classifier with T cycles

Input: Quantum training dataset (|xi,yi)X×Y;

weak learning algorithm Lqw;

integer T of iterative cycle;

form sample state vector |x˜ and ancilla vector |φ˜

Initialize the weight of graph

w1,n=D1(n)=12N for n=1,,N, and w^1,n

for 1tT, do

1. Construct cluster states |h(t)C and |ha(t)C

2. Compute mixed state ρCt to obtain pt

3. Apply Lqw to provide pt, return ht:X[0,1].

4. Obtain the error εt of ht.

5. Update weights vector wt+1

Output: the H(x) of graph state |G.