From 0d56f3f65e0f4d5099de648ebb4cf9edf82aef38 Mon Sep 17 00:00:00 2001 From: AlexandreF-1qbit <76115575+AlexandreF-1qbit@users.noreply.github.com> Date: Thu, 18 Aug 2022 17:33:17 -0400 Subject: [PATCH] Typos and docs. --- tangelo/linq/translator/translate_qiskit.py | 3 +++ tangelo/linq/translator/translate_qubitop.py | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tangelo/linq/translator/translate_qiskit.py b/tangelo/linq/translator/translate_qiskit.py index 182426c80..72f01970c 100644 --- a/tangelo/linq/translator/translate_qiskit.py +++ b/tangelo/linq/translator/translate_qiskit.py @@ -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 diff --git a/tangelo/linq/translator/translate_qubitop.py b/tangelo/linq/translator/translate_qubitop.py index ce5b396d5..fd6df634c 100644 --- a/tangelo/linq/translator/translate_qubitop.py +++ b/tangelo/linq/translator/translate_qubitop.py @@ -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.