| Algorithm 1: Quantum classifier with respect to quantum encoding |
|
Prepare: Sample set X, unlabeled test point and quantum classifier circuit . Input: graph , adjacent matrix 1. for , do encode into with quantum phase encoder. 2. Applying H to entangle the sample states with , so that two-level graph state coupling graph is formed. 3. Resort to the circuit , fordo obtain M classes of weak quantum classifiers . 4. Computing the distances between and Output: The label y that belongs to. |