Skip to content

Commit

Permalink
update aer_state_initialize API
Browse files Browse the repository at this point in the history
  • Loading branch information
hhorii committed Aug 2, 2023
1 parent ef90c88 commit 7798181
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions contrib/runtime/aer_runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ void *aer_state() {
return handler;
};

void *aer_state_initialize(void *handler) {
void aer_state_initialize(void *handler) {
AER::AerState *state = reinterpret_cast<AER::AerState *>(handler);
state->initialize();
return handler;
};

// finalize state
Expand Down
2 changes: 1 addition & 1 deletion contrib/runtime/aer_runtime_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ typedef uint_fast64_t uint_t;
void* aer_state();

// initialize aer state
void* aer_state_initialize();
void aer_state_initialize(void* state);

// finalize state
void aer_state_finalize(void* state);
Expand Down

0 comments on commit 7798181

Please sign in to comment.