We're celebrating World Quantum Day 2022! Join us

openfermion.third_party.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