Function gate::merge(std::vector<QuantumGateBase *>)

Function Documentation

QuantumGateMatrix *gate::merge(std::vector<QuantumGateBase*> gate_list)

複数のゲートが連続して作用する新たなゲートを作成する。

パラメータ

gate_list -- 作用するゲート列。先頭要素から順番に状態に作用する。

戻り値

合成したゲート