tequila.simulators.simulator_api.compile_to_function

tequila.simulators.simulator_api.compile_to_function(objective: Union[Objective, QCircuit], *args, **kwargs) → Union[BackendCircuit, Objective][source]

Compile a tequila objective or circuit with parameters are passed down as ordered arguments.

Returns

wrapper over a compiled objective/circuit can be called like: function(0.0,1.0,…,samples=None)

Return type

BackendCircuit or Objective

Notes

Same as compile but gives back callable wrapper where parameters are passed down as arguments instead of dictionaries the order of those arguments is the order of the parameter dictionary given here. If not given it is the order returned by objective.extract_variables()

See compile for more information on the parameters of this function.