Converting classical information into a quantum circuit is an inevitable step in utilizing quantum computing. Current quantum computers are referred to as NISQ devices, which have a high level of noise without error correction, imposing strict limitations on the number of qubits and quantum gates. Therefore, when constructing quantum circuits, it becomes crucial to generate shallower circuits. Specifically, when amplitude encoding is employed for classical-quantum information conversion, analytical methods often necessitate an exponential number of quantum gates relative to the number of qubits, rendering them unsuitable for current NISQ devices. Here, we explore a method for constructing an approximately improved circuit for amplitude encoding, considering classical information from an array composed of floating-point numbers. In our method, we optimize the matrix elements of a two-qubit unitary gate using a technique similar to that used in the tensor network method. We then analytically decompose the obtained unitary matrix into a product of elementary unitary gates. Furthermore, using this as an element of the basic optimization technique, we explore a method for selectively adapting better quantum gates. We apply this method to the problem of constructing a circuit that approximately generates the ground state of the quantum spin model. Consequently, we find that better circuits can be automatically constructed without prior knowledge of classical information.