Skip to content
This repository has been archived by the owner on Dec 18, 2021. It is now read-only.

Commit

Permalink
polish error msg for SymEngine
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger-luo committed Mar 20, 2020
1 parent 3fea7e3 commit 8575718
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/register.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ function parse_str(s::String)
return v, k - 1
end

function ket_m end
function ket_m(s)
error("Please install SymEngine and type using SymEngine explicitly to use symbolic functionality of Yao")
end

function bra_m(s)
adjoint(ket_m(s))
Expand Down

0 comments on commit 8575718

Please sign in to comment.