Commit 233dc08f authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

Allow bitstring amplitude calculation for small circuits as well (MPS)



Previously, we only has this for large circuit. Making it consistent w/ exatn visitor

Signed-off-by: default avatarThien Nguyen <nguyentm@ornl.gov>
parent 894f3d52
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -649,7 +649,7 @@ void ExatnMpsVisitor::finalize()

        // const auto stateVecNorm = computeStateVectorNorm(*m_tensorNetwork, exatn::getCurrentProcessGroup());
        // Small-circuit case: just reconstruct the full wavefunction
        if (m_buffer->size() < MAX_NUMBER_QUBITS_FOR_STATE_VEC) 
        if (m_buffer->size() < MAX_NUMBER_QUBITS_FOR_STATE_VEC && !options.keyExists<std::vector<int>>("bitstring")) 
        {
            // DEBUG:
            // printStateVec();