Function gate::Adaptive(QuantumGateBase *, std::function<bool(const std::vector<UINT>&, UINT)>, UINT)¶
Defined in File gate_merge.hpp
Function Documentation¶
-
QuantumGateBase *gate::Adaptive(QuantumGateBase *gate, std::function<bool(const std::vector<UINT>&, UINT)> func, UINT id)¶
適応操作のゲートを作成する
func
がtrue
を返すときのみgate
を作用する量子ゲートを作成する。- パラメータ
gate -- ゲート
func --
std::vector<unsigned int>="">&,UINT
を受け取り、bool
を返す関数id -- funcに引数として与えるUINTの値
- 戻り値
Adaptive gate