I am trying to implement small codes for quantum kernel estimation with Qiskit. In this challenge, I face the difficulty of implementing modular multiplication under a given prime number $p$. I have found some articles and a function in Qiskit to take modular multiplication under $N$, where $N = 2^n$ and $n$ is the number of qubits. However, I don't see a construction of modular multiplication under a given prime $p$. I know this is a big topic in quantum computing and many discussions about it must exist. But simply I could not find it.
Could anybody explain how to implement modular multiplication under a given prime $p$ to me or provide literature about it with me, please?
Thank you very much.