QuantumBFS / Yao.jl

Extensible, Efficient Quantum Algorithm Design for Humans.

Home Page:https://yaoquantum.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Basic" not defined (from tutorial)

basernapairs opened this issue · comments

I found this error at mat(sym_cphase(4,2,1)) (minute 3:53) by following this tutorial ⤵
https://asciinema.org/a/HaDO421J58cmKhIBbVPhJHIr7?speed=2

image

image

Thanks for the issue, this clip needs to be updated.
One needs to import SymEngine explicitly to use the symbolic features.

using SymEngine

Got new one (error) after added SymEngine Pkg (at 03:40),

image
image

but the result it's fine (at 03:53)

image

@basernapairs you can't use a number as symbols, please refer to SymEngine README: https://github.com/symengine/SymEngine.jl#working-with-scalar-variables

Thanks for the issue, this clip needs to be updated.

@GiggleLiu have we updated the GIF?

bump @GiggleLiu can you update that GIF if it's not then we can close this issue?

The clip has been updated, please check the updated tutorial: https://tutorials.yaoquantum.org/dev/