pyqit.core.get_loss_fn#

pyqit.core.get_loss_fn(name, backend: str = 'pennylane')[source]#

Resolve a loss name to a callable bound to backend.

Callables pass straight through, so a user-supplied loss is never reinterpreted; anything else is looked up by its name tag.