[−][src]Function dqcsim::bindings::dqcs_sim_arb_idx
#[no_mangle]pub extern "C" fn dqcs_sim_arb_idx(
sim: dqcs_handle_t,
index: ssize_t,
cmd: dqcs_handle_t
) -> dqcs_handle_t
Sends an ArbCmd
message to one of the plugins, referenced by index.
The frontend always has index 0. 1 through N are used for the operators in front to back order (where N is the number of operators). The backend is at index N+1.
Python-style negative indices are supported. That is, -1 can be used to refer to the backend, -2 to the last operator, and so on.
ArbCmd
s are executed immediately after yielding to the simulator, so
all pending asynchronous calls are flushed and executed before the
ArbCmd
.
When this succeeds, the received data is returned in the form of a new handle. When it fails, 0 is returned.
The ArbCmd
handle is consumed if and only if the API call succeeds.