![]() |
Perform the positive projection with fixed trace
openfermion.third_party.fixed_trace_positive_projection(
bmat, target_trace
)
Args | |
---|---|
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