Function gate::Probabilistic¶
Defined in File gate_merge.hpp
Function Documentation¶
-
QuantumGateBase *gate::Probabilistic(std::vector<double> distribution, std::vector<QuantumGateBase*> gate_list)¶
確率的に作用する量子ゲートを作成する。
確率分布の総和が1でない場合、残った確率が採用されたときには何も作用しない。
- パラメータ
distribution -- 確率分布
gate_list -- 作用する量子ゲート
- 戻り値
確率的に作用するゲート