Class QuantumGate_Adaptive

Inheritance Relationships

Base Type

  • public QuantumGateBase

Class Documentation

class QuantumGate_Adaptive : public QuantumGateBase

Adaptive operation

Public Functions

QuantumGate_Adaptive(QuantumGateBase *gate, std::function<bool(const std::vector<UINT>&)> func)
virtual ~QuantumGate_Adaptive()
virtual void update_quantum_state(QuantumStateBase *state)

Update quantum state

Parameters
  • state: Quantum state to be updated

virtual QuantumGateBase *copy() const

Generate deep copy of itself

Return

Deep copy of itself

virtual void set_matrix(ComplexMatrix &matrix) const

Set gate matrix of itself

Parameters
  • matrix: Referencing variables to set matrix

Protected Attributes

QuantumGateBase *_gate
std::function<bool(const std::vector<UINT>&)> _func