Skip to content

Commit

Permalink
fix some
Browse files Browse the repository at this point in the history
  • Loading branch information
Glacialte committed Mar 7, 2024
1 parent 895c833 commit 4f3e59d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions qulacs/gate/gate_pauli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@
namespace qulacs {
namespace internal {

Gate PauliGateImpl::get_inverse() const {
PauliOperator pauli(this->_pauli.get_pauli_string(), this->_pauli.get_coef());
return std::make_shared<PauliGateImpl>(pauli);
}
Gate PauliGateImpl::get_inverse() const { return std::make_shared<PauliGateImpl>(this->_pauli); }

Gate PauliRotationGateImpl::get_inverse() const {
PauliOperator pauli(this->_pauli.get_pauli_string(), this->_pauli.get_coef());
return std::make_shared<PauliRotationGateImpl>(pauli, -(this->_angle));
return std::make_shared<PauliRotationGateImpl>(this->_pauli, -(this->_angle));
}

void PauliGateImpl::update_quantum_state(StateVector& state_vector) const {
Expand Down

0 comments on commit 4f3e59d

Please sign in to comment.