changed arg order to (label, basis_id) for bra and ket functions per #2