Skip to content

Commit

Permalink
fix gate_factory, gate_test
Browse files Browse the repository at this point in the history
  • Loading branch information
Glacialte committed Feb 20, 2024
1 parent 97da1be commit 90fbdad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions qulacs/gate/gate_factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ inline Gate FusedSWAP(UINT qubit_index1, UINT qubit_index2, UINT block_size) {
return internal::GateFactory::create_gate<internal::FusedSWAPGateImpl>(
qubit_index1, qubit_index2, block_size);
}
inline Gate PauliGate(PauliOperator* pauli) {
inline Gate Pauli(PauliOperator* pauli) {
return internal::GateFactory::create_gate<internal::PauliGateImpl>(pauli);
}
inline Gate PauliRotationGate(PauliOperator* pauli, double angle) {
inline Gate PauliRotation(PauliOperator* pauli, double angle) {
return internal::GateFactory::create_gate<internal::PauliRotationGateImpl>(pauli, angle);
}
} // namespace qulacs
4 changes: 2 additions & 2 deletions tests/gate/gate_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ void run_random_gate_apply_pauli(UINT n_qubits) {
}

PauliOperator pauli(target_vec, pauli_id_vec, 1.0);
Gate pauli_gate = PauliGate(&pauli);
Gate pauli_gate = Pauli(&pauli);
pauli_gate->update_quantum_state(state);

auto state_cp = state.amplitudes();
Expand Down Expand Up @@ -293,7 +293,7 @@ void run_random_gate_apply_pauli(UINT n_qubits) {
}

PauliOperator pauli(target_vec, pauli_id_vec, 1.0);
Gate pauli_gate = PauliRotationGate(&pauli, angle);
Gate pauli_gate = PauliRotation(&pauli, angle);
pauli_gate->update_quantum_state(state);

auto state_cp = state.amplitudes();
Expand Down

0 comments on commit 90fbdad

Please sign in to comment.