Skip to content

Commit

Permalink
Fix how to reference to config.cuStateVec_enable (Qiskit#1749)
Browse files Browse the repository at this point in the history
* Fix how to reference to config.cuStateVec_enable

* Add a release note

* Update fix-cuStateVec_enable-0936f2269466e3be.yaml

---------

Co-authored-by: Hiroshi Horii <hhorii@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Apr 7, 2023
1 parent dbddb22 commit 0fa2c64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
fixes:
- |
Fixed a build break to compile Qiskit Aer with cuQuautum support (`AER_ENABLE_CUQUANTUM=true`).
This change does not affect build for CPU and normal GPU binaries.
2 changes: 1 addition & 1 deletion src/simulators/state_chunk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ void StateChunk<state_t>::set_config(const Config &config) {

#ifdef AER_CUSTATEVEC
// cuStateVec configs
if (config.cuStateVec_enable)
if (config.cuStateVec_enable.has_value())
cuStateVec_enable_ = config.cuStateVec_enable.value();
#endif
}
Expand Down

0 comments on commit 0fa2c64

Please sign in to comment.