Class QuantumGate_CP

Inheritance Relationships

Base Type

Class Documentation

class QuantumGate_CP : public QuantumGateBase

Kraus表現のCP-map

Public Functions

inline explicit QuantumGate_CP(std::vector<QuantumGateBase*> gate_list, bool state_normalize, bool probability_normalize, bool assign_zero_if_not_matched)
inline virtual ~QuantumGate_CP()
inline virtual void update_quantum_state(QuantumStateBase *state) override

量子状態を更新する

パラメータ

state -- 更新する量子状態

inline virtual QuantumGate_CP *copy() const override

自身のディープコピーを生成する

戻り値

自身のディープコピー

inline virtual void set_matrix(ComplexMatrix &matrix) const override

自身のゲート行列をセットする

パラメータ

matrix -- 行列をセットする変数の参照

Protected Attributes

Random random
std::vector<QuantumGateBase*> _gate_list
const bool _state_normalize
const bool _probability_normalize
const bool _assign_zero_if_not_matched