Class ClsReversibleBooleanGate

Inheritance Relationships

Base Type

  • public QuantumGateBase

Class Documentation

class ClsReversibleBooleanGate : public QuantumGateBase

A class representing reversible classical circuits

Public Functions

ClsReversibleBooleanGate(std::vector<UINT> target_qubit_index_list, std::function<ITYPE(ITYPE, ITYPE)> _function_ptr)
virtual void update_quantum_state(QuantumStateBase *state)

Update quantum state

Parameters
  • state: Quantum state to be updated

virtual QuantumGateBase *copy() const

Generate a deep copy of itself

Return

Deep copy of itself

virtual void set_matrix(ComplexMatrix &matrix) const

Set gate matrix of itself

Parameters
  • matrix: Reference variables to set matrix