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) -> AbstractMatrix
Return general multi-controlled single qubit gate
in hilbert space of num_bit
qubits.
cbits
specify the controling positions.b2
is the controlled position.
Yao.Boost.cxgate
— Method.cxgate(::Type{MT}, num_bit::Int, b1::Ints, b2::Ints) -> PermMatrix
Single (Multiple) Controlled-X Gate on single (multiple) bits.
Yao.Boost.cygate
— Method.cygate(::Type{MT}, num_bit::Int, b1::Int, b2::Int) -> PermMatrix
Single Controlled-Y Gate on single bit.
Yao.Boost.xgate
— Method.xgate(::Type{MT}, num_bit::Int, bits::Ints) -> PermMatrix
X Gate on multiple bits.
Yao.Boost.ygate
— Method.ygate(::Type{MT}, num_bit::Int, bits::Ints) -> PermMatrix
Y Gate on multiple bits.
Yao.Boost.zgate
— Method.zgate(::Type{MT}, num_bit::Int, bits::Ints) -> Diagonal
Z Gate on multiple bits.