Yao

Yao

Framework-Structure

YaoModule.

Extensible Framework for Quantum Algorithm Design for Humans.

简单易用可扩展的量子算法设计框架。

source
Yao.幺Module.

Extensible Framework for Quantum Algorithm Design for Humans.

简单易用可扩展的量子算法设计框架。

幺 means unitary in Chinese.

source
Yao.nactiveFunction.
nactive(x) -> Int

Returns number of active qubits

source
Yao.nqubitsFunction.
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.

source
Yao.reorderFunction.

Reorder the lines of qubits.

source