Skip to content

Commit

Permalink
Typos and docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfleury-sb committed Aug 18, 2022
1 parent 038c500 commit 0d56f3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tangelo/linq/translator/translate_qiskit.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
- how the gate names differ between the source backend to the target backend.
- how the order and conventions for some of the inputs to the gate operations
may also differ.
The module also enables bidirectional conversion between qiskit and Tangelo
qubit operators (linear combination of Pauli operators)
"""

from tangelo.toolboxes.operators import QubitOperator
Expand Down
3 changes: 1 addition & 2 deletions tangelo/linq/translator/translate_qubitop.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@

def translate_operator(qubit_operator, source, target, n_qubits=None):
"""Function to convert a qubit operator defined within the "source" format
to another format. Only the translation from and to tangelo are currently
supported.
to a "target" format.
Args:
qubit_operator (source format): Self-explanatory.
Expand Down

0 comments on commit 0d56f3f

Please sign in to comment.