Skip to main content
. 2023 May 29;25(6):870. doi: 10.3390/e25060870
Algorithm 1: Quantum classifier with respect to quantum encoding

Prepare: Sample set X, unlabeled test point x^ and quantum classifier circuit QC.

Input: graph G=(V,E), adjacent matrix Γ

1. for xiX1jN, do

encode xi into |xi 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 QC,

for 1jM do

obtain M classes of weak quantum classifiers hj.

4. Computing the distances between |x^ and |xi

Output: The label y that |x^ belongs to.