Skip to content

Commit 847d7ac

Browse files
liranszlakElePT
andauthored
fix documentation (#37)
Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>
1 parent a72619b commit 847d7ac

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

qiskit_addon_opt_mapper/problems/optimization_problem.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,9 +1201,9 @@ def substitute_variables(
12011201
def to_ising(self) -> tuple[SparsePauliOp, float]:
12021202
"""Return the Ising Hamiltonian of this problem.
12031203
1204-
Variables are mapped to qubits in the same order, i.e.,
1205-
i-th variable is mapped to i-th qubit.
1206-
See https://github.com/Qiskit/qiskit-terra/issues/1148 for details.
1204+
Variables are mapped to qubits in qiskit order, i.e.,
1205+
i-th variable is mapped to index n-i in the pauli string, where
1206+
n is the total number of variables.
12071207
12081208
12091209
Returns:

qiskit_addon_opt_mapper/translators/ising.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
def to_ising(optimization_problem: OptimizationProblem) -> tuple[SparsePauliOp, float]:
2525
"""Return the Ising Hamiltonian of this problem.
2626
27-
Variables are mapped to qubits in the same order, i.e.,
28-
i-th variable is mapped to i-th qubit.
29-
See https://github.com/Qiskit/qiskit-terra/issues/1148 for details.
27+
Variables are mapped to qubits in qiskit order, i.e.,
28+
i-th variable is mapped to index n-i in the pauli string, where
29+
n is the total number of variables.
3030
3131
Args:
3232
optimization_problem: The problem to be translated.

0 commit comments

Comments
 (0)