You will first need a model / equations describing how your memristors behave (given some input, what they will do to update their state, and then what they will output). Do you have any numpy code or similar expressing your ideal memristor’s computations?