The input state can be represented by a 6-dimensional complex vector
where
is an Hermitian matrix. After the system is let go for free evolution, the actual time point
at which the measurement is performed can be absorbed into
. This is also the case for the minus sign and
. We then write the exponent of
still as
. The reader should bear in mind that
is a short-hand form of (
). The end state of the system
can be then expressed as a matrix-vector multiplication:
The simulation data used in Section 6.2 are summarized as follows.
The following can be easily checked:
since
is Hermitian (
). So we have:
and
where
is an identity matrix of dimension 6. So
.
When a phase-mapping function is applied to the AND-training data (or the OR-training data) before submitting it to the unitary transformation (trained for XOR without phase-mapping), the system can perform AND-operation (OR-operation). The phase-mapping function can be written in a matrix form (see Section 6.2) and calculated using standard minimization procedure (we use the random walk method). The phase-mapping matrice used in Section 6.2 for the AND (OR) training data are: