The sentence uses the third conditional. To omit 'if' and use inversion, we start with 'Had'.
Answer: Had he studied harder, he would have passed the test.