File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -348,8 +348,8 @@ void ExactMapper::map(const Configuration& settings) {
348
348
const auto logical1 = static_cast <qc::Qubit>(qubits.at (q1));
349
349
qcMapped.swap (q0, q1);
350
350
std::swap (qubits.at (q0), qubits.at (q1));
351
- locations[ logical0] = static_cast <std::int16_t >(q1);
352
- locations[ logical1] = static_cast <std::int16_t >(q0);
351
+ locations. at ( logical0) = static_cast <std::int16_t >(q1);
352
+ locations. at ( logical1) = static_cast <std::int16_t >(q0);
353
353
354
354
if (settings.verbose ) {
355
355
std::cout << " Qubits: " ;
@@ -372,7 +372,7 @@ void ExactMapper::map(const Configuration& settings) {
372
372
// set output permutation
373
373
qcMapped.outputPermutation .clear ();
374
374
for (qc::Qubit logical = 0 ; logical < qc.getNqubits (); ++logical) {
375
- const auto physical = static_cast <qc::Qubit>(locations[ logical] );
375
+ const auto physical = static_cast <qc::Qubit>(locations. at ( logical) );
376
376
qcMapped.outputPermutation [physical] = logical;
377
377
}
378
378
You can’t perform that action at this time.
0 commit comments