Create partial_trace