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