| Algorithm 2: Boosted quantum classifier with T cycles |
|
Input: Quantum training dataset ; weak learning algorithm ; integer T of iterative cycle; form sample state vector and ancilla vector Initialize the weight of graph for , and for, do 1. Construct cluster states and 2. Compute mixed state to obtain 3. Apply to provide , return . 4. Obtain the error of . 5. Update weights vector Output: the of graph state . |