Converting qca -> tqca