The proposed approach extends the QLBM framework of our prior work by implementing the first-order Maxwell slip boundary condition within the collision matrix. The quantum circuit architecture remains unchanged: four quantum registers encode the distribution functions of the D2Q9 lattice model, comprising position registers qx and qy (each requiring log2(n) qubits), a register qf (4 qubits for 9 distribution functions and 2 boundary velocities), and a single ancilla qubit for the LCU implementation. The total qubit count is log2(nx · ny) + 5.
In the classical LBM, the bounce-back boundary condition with wall velocity correction is: f̄_ī(x_b, t) = f*_i(x_b, t) − 2w_i ρ_w (c_i · u_w) / c_s², where x_b is a boundary node, ī denotes the direction opposite to i, ρ_w is the wall density, u_w is the wall velocity, w_i are the lattice weights, and c_s is the lattice speed of sound. To implement the Maxwell slip condition, the effective wall velocity u_w is replaced by a slip-corrected velocity: u_slip = U_ref + α · λ · (∂u/∂y)|_wall.
The wall-normal velocity gradient ∂u/∂y is approximated using a first-order backward finite difference scheme. At the bottom wall this gives (u_1 − u_0)/Δx, and at the top wall (u_{ny} − u_{ny−1})/Δx. In the quantum computing algorithm, rather than computing this gradient explicitly from reconstructed macroscopic velocities, it is expressed implicitly in terms of the distribution functions. Following the same approach used to derive the equilibrium distribution in matrix form, the macroscopic velocity at each node is written as a linear combination of the local distribution functions via the first-moment relation u = (1/ρ₀) Σ_i f_i c_i. Substituting this expression at the two nodes adjacent to each wall gives the velocity gradient directly as a linear function of the distribution functions. As a result, the slip correction term remains linear in the distribution functions and can be incorporated into the collision matrix in the same manner as the wall-velocity correction in the no-slip case. The slip boundary condition is applied at both the top and bottom walls.
The modified collision matrix is assembled once prior to the simulation. It is then decomposed via SVD as A = UΣV†, where U and V are unitary matrices and Σ is a diagonal matrix of singular values. The diagonal factor Σ is implemented using the LCU method: Σ = (1/2)(B1 + B2), where B1 = Σ + i√(I − Σ²) and B2 = Σ − i√(I − Σ²) are both unitary. The streaming step is implemented as conditional cyclic shift operations on qx and qy, controlled by velocity-direction states encoded in qf, and remains fully unitary since all boundary treatment resides in the collision matrix.