QuantumBFS / Yao.jl

Extensible, Efficient Quantum Algorithm Design for Humans.
https://yaoquantum.org
Other
924 stars 122 forks source link

is append_qubit! deprecated? #390

Closed hros closed 2 years ago

hros commented 2 years ago

the example of Shor's 9 qubit correction code has the following line:

s = α * ket"0" + β * ket"1" |> append_qudits!(8)

This results in:

ERROR: UndefVarError: append_qudits! not defined

However, the function is availalbe in the development branch (Yao#master) Then again, the source code of the stable branch lists the function as deprecated What is the current state of this function, should we use it or an alternative?

Roger-luo commented 2 years ago

the latest dev branch is not released yet, I believe you are looking at the development version of the documentation as well, there are some breaking changes recently which we will later cut a minor release + deprecation warning.

the old interface was called addbits! in the stable doc: https://docs.yaoquantum.org/stable/generated/quick-start/5.shor-9-code/index.html

you can switch different doc version here

Screen Shot 2022-05-16 at 3 18 02 PM
hros commented 2 years ago

thanks!