Class QuantumGate_Adaptive

Inheritance Relationships

Base Type

Class Documentation

class QuantumGate_Adaptive : public QuantumGateBase

Public Functions

inline explicit QuantumGate_Adaptive(QuantumGateBase *gate, std::function<bool(const std::vector<UINT>&)> func_without_id)
inline explicit QuantumGate_Adaptive(QuantumGateBase *gate, std::function<bool(const std::vector<UINT>&, UINT)> func_with_id, UINT id)
inline virtual ~QuantumGate_Adaptive()
inline virtual void update_quantum_state(QuantumStateBase *state) override
inline virtual QuantumGate_Adaptive *copy() const override
inline virtual void set_matrix(ComplexMatrix &matrix) const override

Protected Attributes

QuantumGateBase *_gate
std::function<bool(const std::vector<UINT>&)> _func_without_id
std::function<bool(const std::vector<UINT>&, UINT)> _func_with_id
const int _id