openfermion.fixed_trace_positive_projection

{ }

Perform the positive projection with fixed trace

bmat Symmetric matrix to perform positive projection on
target_trace What the trace should be

Returns: new matrix that has the target trace and is positive semidefinite