Function gate::CP¶
Defined in File gate_merge.hpp
Function Documentation¶
-
QuantumGateBase *gate::CP(std::vector<QuantumGateBase*> gate_list, bool state_normalize, bool probability_normalize, bool assign_zero_if_not_matched)¶
CP-mapを作成する
\(p_i = {\rm Tr}[K_i \rho K_i^{\dagger}]\)を計算し、 \(\{p_i\}\)の確率分布でクラウス演算子を採用する。
- パラメータ
gate_list -- クラウス演算を行うゲートのリスト
state_normlize -- trueだったら状態を規格化する
probability_normalize -- trueだったら確率分布を規格化する
assign_zero_if_not_matched -- どのKraus演算子にもマッチしなかったら0を代入する
- 戻り値
CP-map