Class ClsStateReflectionGate

Inheritance Relationships

Base Type

  • public QuantumGateBase

Class Documentation

class ClsStateReflectionGate : public QuantumGateBase

A class of gates that reflects a quantum state to another quantum state

Public Functions

ClsStateReflectionGate(const QuantumStateBase *_reflection_state)
virtual ClsStateReflectionGate::‾ClsStateReflectionGate()
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&) const

Set gate matrix of itself

Parameters
  • matrix: Reference variables to set matrix