Function gate::add(std::vector<QuantumGateBase *>)¶
Defined in File gate_merge.hpp
Function Documentation¶
-
QuantumGateMatrix *gate::add(std::vector<QuantumGateBase*> gate_list)¶
複数のゲートを足して新たなゲートを作成する。
TODO: control-qubitがあるときの挙動が未定義
- パラメータ
gate_list -- 足すゲート列
- 戻り値
足したゲート