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

add some old interfaces back for qubits

Roger-luo opened this issue · comments

I think we should keep nqubits and insert_qubits! instead of removing them, I suspect nqudits is very intuitive for most people when they are doing just qubits, these are relatively simple to just forward as nqubits(x) = nlevels(x)==2 ? nqudits(x) : error("...") while keep some old code keep working

nqubits is not removed. I also added the insert_qubits! in the last commit in this PR: #334