Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for IBMQConnection #264

Merged
merged 2 commits into from
Jan 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tangelo/linq/qpu_connection/ibm_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

try:
from qiskit.providers.jobstatus import JobStatus
from qiskit_ibm_runtime import QiskitRuntimeService, Sampler, Estimator, Session, Options, \
SamplerResult, EstimatorResult
from qiskit.primitives import SamplerResult, EstimatorResult
from qiskit_ibm_runtime import QiskitRuntimeService, Sampler, Estimator, Session, Options
is_qiskit_installed = True
except ModuleNotFoundError:
is_qiskit_installed = False
Expand Down
2 changes: 1 addition & 1 deletion tangelo/linq/tests/test_ibm_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
sim = get_backend()
ref_estimator = sim.get_expectation_value(op, circ2)

os.environ['IBM_TOKEN'] = 'insert valid token'
os.environ['IBM_TOKEN'] = 'INSERT VALID TOKEN HERE, FOR TESTS. REMOVE AFTERWARDS'


@unittest.skip("We do not want to store login information for automated testing. Manual testing only.")
Expand Down