As far as I am aware, the uBlasSparseMatrix was deprectated with the release 1.6.0 [2015-07-28]. You are most likely looking at some very old documentation to find this function
As I have never used uBlasSparseMatrix, as it predates my time working on dolfin, I do not know what you would like to use this matrix for, and thus I cant suggest a substitute.
Old dolfin does not have native support for primitive type complex numbers.
A in your example is an assembled PETScMatrix of reals, not a numpy matrix. Unless you configured PETSc with complex support, you cannot simply multiply it by python’s complex unit.
Perhaps investigate dolfinx which does have support for complex PETSc, e.g. the Helmholtz demo.
Or you can convert your PETScMatrix to a numpy or scipy sparse matrix at your leisure.