[][src]Function dqcsim::bindings::dqcs_mat_basis

#[no_mangle]pub extern "C" fn dqcs_mat_basis(basis: dqcs_basis_t) -> dqcs_handle_t

Constructs a matrix with the eigenvectors of one of the Pauli matrices as column vectors. >

This can be used for constructing measurement or prep gates with the given basis. Returns a new handle to the constructed matrix or returns 0 if an error occurs.