Class QuantumGate_Instrument

Inheritance Relationships

Base Type

  • public QuantumGateBase

Class Documentation

class QuantumGate_Instrument : public QuantumGateBase

Instrument

Public Functions

QuantumGate_Instrument(std::vector<QuantumGateBase *> gate_list, UINT classical_register_address)
virtual ~QuantumGate_Instrument()
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

Random random
std::vector<QuantumGateBase *> _gate_list
UINT _classical_register_address