Boost
Boost is an optimization module that offers many functions for optimization.
Yao.Boost.controlled_U1 — Function.controlled_U1(num_bit::Int, gate::AbstractMatrix, cbits::Vector{Int}, b2::Int) -> AbstractMatrixReturn general multi-controlled single qubit gate in hilbert space of num_bit qubits.
cbitsspecify the controling positions.b2is the controlled position.
Yao.Boost.cxgate — Method.cxgate(::Type{MT}, num_bit::Int, b1::Ints, b2::Ints) -> PermMatrixSingle (Multiple) Controlled-X Gate on single (multiple) bits.
Yao.Boost.cygate — Method.cygate(::Type{MT}, num_bit::Int, b1::Int, b2::Int) -> PermMatrixSingle Controlled-Y Gate on single bit.
Yao.Boost.czgate — Method.czgate(::Type{MT}, num_bit::Int, b1::Int, b2::Int) -> DiagonalSingle Controlled-Z Gate on single bit.
Yao.Boost.xgate — Method.xgate(::Type{MT}, num_bit::Int, bits::Ints) -> PermMatrixX Gate on multiple bits.
Yao.Boost.ygate — Method.ygate(::Type{MT}, num_bit::Int, bits::Ints) -> PermMatrixY Gate on multiple bits.
Yao.Boost.zgate — Method.zgate(::Type{MT}, num_bit::Int, bits::Ints) -> DiagonalZ Gate on multiple bits.