# Job Status on IonQ machine

**URL:** <https://discuss.pennylane.ai/t/job-status-on-ionq-machine/1220>\
**Category:** PennyLane Help\
**Created:** [July 27, 2021, 8:29pm UTC](https://discuss.pennylane.ai/t/job-status-on-ionq-machine/1220 "2021-07-27T20:29:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wparkman](https://avatars.discourse-cdn.com/v4/letter/w/94ad74/32.png) [@wparkman](https://discuss.pennylane.ai/u/wparkman)\
**Post date:** [July 27, 2021, 8:29pm UTC](https://discuss.pennylane.ai/t/job-status-on-ionq-machine/1220/1 "2021-07-27T20:29:00Z")

</div>

trying to run Hello Many Worlds code at:

[https://publish.obsidian.md/emily-parkman-quantum/PennyLane+Quantum+Hello+World](https://publish.obsidian.md/emily-parkman-quantum/PennyLane+Quantum+Hello+World)

Did this happen because job could not complete?  
How can I check the Job Status?  
Thanks

---

<div class="post-metadata">

**Author:** ![Tom\_Bromley](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/tom_bromley/32/129_2.png) [@Tom\_Bromley](https://discuss.pennylane.ai/u/Tom_Bromley)\
**Post date:** [July 28, 2021, 8:29pm UTC](https://discuss.pennylane.ai/t/job-status-on-ionq-machine/1220/2 "2021-07-28T20:29:33Z")

</div>

Hi @wparkman and welcome to the forum!

This is a tricky error to debug - it looks like an issue with the response data but I’m not exactly sure what. Could you share with us which version of PL-IonQ you are using? The easiest way to provide this is by copying over the output of `qml.about()`. Thanks!

---

<div class="post-metadata">

**Author:** ![wparkman](https://avatars.discourse-cdn.com/v4/letter/w/94ad74/32.png) [@wparkman](https://discuss.pennylane.ai/u/wparkman)\
**Post date:** [July 29, 2021, 4:37am UTC](https://discuss.pennylane.ai/t/job-status-on-ionq-machine/1220/3 "2021-07-29T04:37:19Z")

</div>

Thanks, this is what it says:

Name: PennyLane  
Version: 0.16.0  
Summary: PennyLane is a Python quantum machine learning library by Xanadu Inc.  
Home-page: [https://github.com/XanaduAI/pennylane](https://github.com/XanaduAI/pennylane)  
Author: None  
Author-email: None  
License: Apache License 2.0  
Location: /home/walt/.local/lib/python3.8/site-packages  
Requires: semantic-version, autoray, appdirs, toml, numpy, autograd, networkx, scipy  
Required-by: PennyLane-Qchem, PennyLane-IonQ  
Platform info: Linux-4.4.0-19041-Microsoft-x86\_64-with-glibc2.29  
Python version: 3.8.5  
Numpy version: 1.20.3  
Scipy version: 1.6.3  
Installed devices:

- default.gaussian (PennyLane-0.16.0)
- default.mixed (PennyLane-0.16.0)
- default.qubit (PennyLane-0.16.0)
- default.qubit.autograd (PennyLane-0.16.0)
- default.qubit.jax (PennyLane-0.16.0)
- default.qubit.tf (PennyLane-0.16.0)
- default.tensor (PennyLane-0.16.0)
- default.tensor.tf (PennyLane-0.16.0)
- ionq.qpu (PennyLane-IonQ-0.16.0)
- ionq.simulator (PennyLane-IonQ-0.16.0)

---

<div class="post-metadata">

**Author:** ![wparkman](https://avatars.discourse-cdn.com/v4/letter/w/94ad74/32.png) [@wparkman](https://discuss.pennylane.ai/u/wparkman)\
**Post date:** [July 29, 2021, 4:49am UTC](https://discuss.pennylane.ai/t/job-status-on-ionq-machine/1220/4 "2021-07-29T04:49:39Z")

</div>

Tried it again and got a different stack trace with something new at the end:

ConnectionError: HTTPSConnectionPool(host=‘[api.ionq.co](http://api.ionq.co)’, port=443): Max retries exceeded with url: /v0.1/jobs/85744500-a004-41b0-888e-937ae4348d49 (Caused by NewConnectionError(’\<urllib3.connection.VerifiedHTTPSConnection object at 0x7f100059f3a0\>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’))

---

<div class="post-metadata">

**Author:** ![antalszava](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/antalszava/32/171_2.png) [@antalszava](https://discuss.pennylane.ai/u/antalszava)\
**Post date:** [July 29, 2021, 2:43pm UTC](https://discuss.pennylane.ai/t/job-status-on-ionq-machine/1220/5 "2021-07-29T14:43:43Z")

</div>

Hi @wparkman,

Thanks for the traces!

On our end, we get counts well using the example that you’ve shared. One subtlety is that we pass the API key explicitly to the device:

`dev = qml.device("ionq.qpu", wires=2, shots=1000, api_key=key)`

As we’re not able to reproduce the trace, I can just try to give a couple of ideas:

1. The error trace seems to be related to the DNS. Could you check that there are no issues with the DNS that is being used?
2. Also, the problem might be coming from a firewall or due to using VPN if any of those are applicable.
3. Which version of the `requests` library are you using? You can check that with `pip freeze | grep requests` on a Linux based system.

* * *

Just to make sure, it was the Qiskit-IonQ provider that worked well with your API key, correct?

So the following example would execute well:

```python
from qiskit_ionq import IonQProvider
provider = IonQProvider(key)

from qiskit import QuantumCircuit

# Create a basic Bell State circuit:
qc = QuantumCircuit(2, 2)
qc.h(0)
qc.cx(0, 1)
qc.measure([0, 1], [0, 1])

# Get IonQ's simulator backend:
simulator_backend = provider.get_backend("ionq_simulator")

# Run the circuit on IonQ's platform:
job = simulator_backend.run(qc, shots=10000) 

# Print the counts
print(job.get_counts())

```
