suai.ru/our-contacts |
quantum machine learning |
assigned to one of the pair of answers
ψY Y
ψ= ψY N .
ψNY
ψNN
We set the initial state to a uniform distribution ψij = 1/2.
Second, for a context, (A, B) where A represents the first attribute and B represents the second, we constructed two projectors: one projector, PA(Y ) for answering Yes to the first attribute, and another projector PB(Y ) for answering Yes to the second attribute. These two projectors were defined as
follows: |
|
|
, |
I2 = |
0 |
1 |
|
1 |
0 |
|
MY = |
0 |
0 |
, |
|
1 |
0 |
|
PA(Y ) = UA · (MY I2) · UA† ,
PB(Y ) = UB · (I2 MY ) · UB† .
The projector for the No answers were then defined by PA(N) = I4 − PA(Y ) and PB(N) = I4 − PB(Y ), where I4 = I2 I2.
Third, the unitary matrix for each attribute was computed from a Hermitian matrix using the matrix exponential function
UA = exp(−i · (π/2) · HA),
UB = exp(−i · (π/2) · HB).
Fourth, the Hamiltonian matrix for the first attribute within a context (A, B) was defined as follows:
HA = VA I2 |
|
1A |
−μA . |
VA = 1 + μA2 |
1 |
|
μ |
1 |
This “rotates” the amplitudes for the first attribute toward or away from the Yes answer depending on the parameter μA. The unitary matrix for the