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

Function Documentation

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

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

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

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

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

  • id -- funcに引数として与えるUINTの値

戻り値

Adaptive gate