Add a QConstOp to a graph

I would like to add a constant tensor of values to a graph. Ideally, I want to describe the tensor as a floating point representation and have either the optimiser replace it or a helper builder do it for me. What is the correct way to do this? Thanks