[][src]Function dqcsim::bindings::dqcs_qbset_new

#[no_mangle]pub extern "C" fn dqcs_qbset_new() -> dqcs_handle_t

Creates a new set of qubit references.

Returns the handle of the newly created set. The set is initially empty. Qubit sets are ordered, meaning that the order in which qubits are popped from the set equals the order in which they were pushed. To iterate over a set, simply make a copy and drain the copy using pop.