Skip to content

Commit

Permalink
fix method's name to copy_state_from_buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Glacialte committed Nov 26, 2024
1 parent 0f20fd6 commit 447d2cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scaluq/simulator/simulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ std::uint64_t CircuitSimulator::get_gate_count() const { return _cirq.n_gates();

void CircuitSimulator::copy_state_to_buffer() { _buffer = _initial_state; }

void CircuitSimulator::copy_buffer_to_state() { _initial_state = _buffer; }
void CircuitSimulator::copy_state_from_buffer() { _initial_state = _buffer; }

void CircuitSimulator::swap_state_and_buffer() {
if (_buffer == nullptr) {
Expand Down

0 comments on commit 447d2cc

Please sign in to comment.