Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@vars from thr tutorial video is not defined #9

Open
mmikhasenko opened this issue Aug 30, 2020 · 2 comments
Open

@vars from thr tutorial video is not defined #9

mmikhasenko opened this issue Aug 30, 2020 · 2 comments

Comments

@mmikhasenko
Copy link

The video at index.md is super useful.
While following I hit a few problems:

I found a note of missing docstring in
https://docs.yaoquantum.org/dev/man/symbolic.html
but the method does not seem to appear in the YaoSym code.

Is it deprecated? How to make symbolic calculations work?

@GiggleLiu
Copy link
Member

GiggleLiu commented Aug 30, 2020

Try this

julia> using Yao

julia> using SymEngine
[ Info: Precompiling SymEngine [123dc426-2d89-5057-bbad-38513e3affd8]
@vars 
julia> @vars a b c
(a, b, c)

julia> Rx(a)
rot(X, a)

@vars in defined in SymEngine. We will fix the documentation soon.

@mmikhasenko
Copy link
Author

thanks, it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants