diff --git a/releasenotes/notes/fix-cuStateVec_enable-0936f2269466e3be.yaml b/releasenotes/notes/fix-cuStateVec_enable-0936f2269466e3be.yaml new file mode 100644 index 0000000000..ff637520d0 --- /dev/null +++ b/releasenotes/notes/fix-cuStateVec_enable-0936f2269466e3be.yaml @@ -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. diff --git a/src/simulators/state_chunk.hpp b/src/simulators/state_chunk.hpp index db479b13ed..0b0c455d7e 100644 --- a/src/simulators/state_chunk.hpp +++ b/src/simulators/state_chunk.hpp @@ -474,7 +474,7 @@ void StateChunk::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 }