[][src]Function dqcsim::bindings::dqcs_gate_matrix

#[no_mangle]pub extern "C" fn dqcs_gate_matrix(gate: dqcs_handle_t) -> dqcs_handle_t

Returns a copy of the unitary matrix associated with this gate, if one exists.

If this function succeeds, a new matrix handle is returned. If it fails, 0 is returned.