is append_qubit! deprecated?
hros opened this issue · 2 comments
hros commented
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
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
hros commented
thanks!