From cd19f18b4de7a4db643668b890bc159d3ea267ca Mon Sep 17 00:00:00 2001 From: Austin Huang <65315367+austingmhuang@users.noreply.github.com> Date: Tue, 29 Oct 2024 15:08:43 -0400 Subject: [PATCH] Let users import from pennylane_qiskit (#593) * let users import from pennylane_qiskit * fix sphinx build * fix typo --- pennylane_qiskit/__init__.py | 1 + pennylane_qiskit/qiskit_device.py | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pennylane_qiskit/__init__.py b/pennylane_qiskit/__init__.py index 8ac3f871..03985305 100644 --- a/pennylane_qiskit/__init__.py +++ b/pennylane_qiskit/__init__.py @@ -18,3 +18,4 @@ from .basic_sim import BasicSimulatorDevice from .remote import RemoteDevice from .converter import load, load_pauli_op, load_qasm, load_qasm_from_file, load_noise_model +from .qiskit_device import qiskit_session diff --git a/pennylane_qiskit/qiskit_device.py b/pennylane_qiskit/qiskit_device.py index ae8ae4b2..b9161d18 100644 --- a/pennylane_qiskit/qiskit_device.py +++ b/pennylane_qiskit/qiskit_device.py @@ -94,10 +94,10 @@ def qiskit_session(device, **kwargs): Args: device (QiskitDevice2): the device that will create remote tasks using the session **kwargs: session keyword arguments to be used for settings for the Session. At the - time of writing, the only relevant keyword argument is "max_time", which lets you - set the maximum amount of time the sessin is open. For the most up to date information, - please refer to the Qiskit Session - `documentation `_. + time of writing, the only relevant keyword argument is "max_time", which lets you + set the maximum amount of time the session is open. For the most up to date information, + please refer to the Qiskit Session + `documentation `_. **Example:**