Function gate::Adaptive(QuantumGateBase *, std::function<bool(const std::vector<UINT>&)>)

Function Documentation

QuantumGateBase *gate::Adaptive(QuantumGateBase *gate, std::function<bool(const std::vector<UINT>&)> func)

適応操作のゲートを作成する

functrueを返すときのみgateを作用する量子ゲートを作成する。

パラメータ
  • gate -- ゲート

  • func -- std::vector<unsigned int>="">&を受け取り、boolを返す関数

戻り値

Adaptive gate