now _expansion_search works with pauli matrices