Yao
Yao
— Module.Extensible Framework for Quantum Algorithm Design for Humans.
简单易用可扩展的量子算法设计框架。
Yao.幺
— Module.Extensible Framework for Quantum Algorithm Design for Humans.
简单易用可扩展的量子算法设计框架。
幺 means unitary in Chinese.
Yao.nactive
— Function.nactive(x) -> Int
Returns number of active qubits
Yao.nqubits
— Function.nqubits(m::AbstractRegister) -> Int
Returns number of qubits in a register,
nqubits(m::AbstractBlock) -> Int
Returns number of qubits applied for a block,
nqubits(m::AbstractArray) -> Int
Returns size of the first dimension of an array, in 2^nqubits.
Yao.reorder
— Function.Reorder the lines of qubits.