To run a CFD algorithm on a quantum computer, its main components must be translated into a quantum-compatible form, namely the discretized fluid fields, the relevant operators, and the time-marching scheme. For this purpose, we use a hybrid quantum-classical approach. The fluid fields at a given time step are first discretized in space and then encoded into the amplitudes of a quantum state. This encoding is realized through a variationally parameterized ansatz circuit, with the circuit parameters represented by real-valued numbers that can be stored efficiently on a classical computer. If the solution is not normalized, an additional parameter is introduced to capture the norm.
To advance the system by one time step, we variationally determine the classical parameters defining the next state by minimizing a problem-specific cost function. For this purpose, we embed the problem into a modified Hadamard test, which allows the evaluation of a single expectation value to be sufficient for the procedure. This adapted version of the Hadamard test also provides a convergence metric that quantifies the discrepancy between the numerically exact next time step and the variationally obtained one, without requiring a comparison to a classical reference solution [5].
To map the differential operators, and the time-dependent non-linearity to the quantum circuit, we employ a tensor network mapping into unitary gates [5,6].
We lay special focus on the cost of the non-linear term and have adapted its implementation compared to previously presented approaches [5,8,9] to increase the success probabilities and reduce the measurement requirements.