stub code to generate matrix element in parallel