Unverified Commit dc43d69a authored by Thien Nguyen's avatar Thien Nguyen Committed by GitHub
Browse files

Merge pull request #100 from tnguyen-ornl/tnguyen/mps-bitstring-for-small-circuit

Allow bitstring amplitude calculation for small circuits as well (MPS)
parents 894f3d52 233dc08f
Loading
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();