def _trace(self):
    trace = 1.0
    for operator in self.operators:
        trace *= operator.trace()
    return trace
def _trace(self):
    trace = 1.0
    for operator in self.operators:
        trace *= operator.trace()
    return trace