Control parameters for the quantum Deutsch algorithm

An example of two-qubit scenario for finding an optimal control parameters on a spin chain to implement the quantum Deutsch algorithm is provided. Two cases are studied in this paper: two-qubit and three-qubit systems. The latter case is used to study the impact of interaction with an environment on the outcome of the algorithm.