Quantum Computing SEArchived Mar 28, 2026✓ Full text saved
I am trying to calculate the ground state energy of some simple molecules using 'MolecularGroundStateEnergy' tools in qiskit. When I run the calculations for very small molecules (e.g. H2, HeH+) the jobs appear in the queue very quickly and the calculations work independent of which backend I select. However, running the same code with slightly larger molecules (e.g. LiH, BeH2 and water) the jupyter notebook runs indefinitely and the jobs do not show in the IMBQ queue. Note: I have run successfu
Full text archived locally
✦ AI Summary· Claude Sonnet
VQE jobs do not appear in queue
Ask Question
Asked 5 years, 8 months ago
Modified today
Viewed 447 times
3
I am trying to calculate the ground state energy of some simple molecules using 'MolecularGroundStateEnergy' tools in qiskit. When I run the calculations for very small molecules (e.g. H2, HeH+) the jobs appear in the queue very quickly and the calculations work independent of which backend I select. However, running the same code with slightly larger molecules (e.g. LiH, BeH2 and water) the jupyter notebook runs indefinitely and the jobs do not show in the IMBQ queue.
Note: I have run successful calculations for all these molecules using the state-vector simulator with no issues.
Here is the function i use to calculate energy via VQE given a molecule (created from PySCF driver):
def calc_vqe_energy(molecule):
driver = molecule
energy = MolecularGroundStateEnergy(driver = driver,
transformation=TransformationType('full'),
qubit_mapping=QubitMappingType('parity'),
two_qubit_reduction=True,
freeze_core=False,
z2symmetry_reduction='auto')
solver = energy.get_default_solver(quantum_instance)
#calculate energy using the above solver
calc = energy.compute_energy(solver)
return calc
this is set up to run using the quantum instance:
IBMQ.save_account(token)
IBMQ.load_account()
provider = IBMQ.get_provider(hub='ibm-q')
backend = provider.get_backend("ibmq_qasm_simulator")
coupling_map = backend.configuration().coupling_map
quantum_instance = QuantumInstance(backend=backend, shots=1000,
coupling_map=coupling_map,
measurement_error_mitigation_cls=CompleteMeasFitter,
cals_matrix_refresh_period=30, skip_qobj_validation=False)
Thanks for the help!
qiskitprogrammingibm-q-experiencevqechemistry
Share
Improve this question
Follow
edited Jul 26, 2020 at 20:07
glS♦
28.1k7
7 gold badges
43
43 silver badges
140
140 bronze badges
asked Jul 20, 2020 at 12:51
Joshua
572
2 bronze badges
1
It takes more time for larger molecules. Also there is really no queue for the online simulator unless it is being heavily used. The cloud can spin up as many simulatorS as needed. –
Paul Nation
Commented
Jul 20, 2020 at 12:56
Thank you for your response! It makes sense that it should take longer, however, my notebook has been running for an entire day and nothing has appeared on my pending job list/queue. Surely on the simulator it should at least register the job? Do you also happen to know how long you can run jupyters for on the IBMQ notebooks? Thanks for your help. –
Joshua
Commented
Jul 20, 2020 at 16:02
Yes you should see the jobs in the results pane on the left. If not then there is a different issue popping up. –
Paul Nation
Commented
Jul 20, 2020 at 17:18
Add a comment
1 Answer
Sorted by:
Highest score (default)
Date modified (newest first)
Date created (oldest first)
0
As it is said in the comment of your question, a good reason for this may be that for larger molecules it will have to take more time to solve the problem.
If you want to see your job status or monitor it, you can try to use the method job.status() (see details here) or try the job monitor, you can see if it fails or if it runs with those.
Share
Improve this answer
Follow
answered Jul 20, 2020 at 13:22
Lena
2,7257
7 silver badges
25
25 bronze badges
Thanks for the response! I did think about this, however, I'm unsure how to use job monitor given that I have no identifier for the job to begin with. Is there a way to tell if a job has been created? Thanks. –
Joshua
Commented
Jul 20, 2020 at 16:06
@Joshua you can do several things: you can access all the jobs from a backend using jobs = provider.backends.jobs(backend_name='ibmq_qasm_simulator', limit=0) but it will give you something quite heavy. A better way to access a job is through the IBM Quantum Experience site. You can access all the job_id of every job you launched, along with their status. Then you can access the job from the backend in qiskit by running jobtest=backend.retrieve_job('job_id'). Try this and tell me if it gives you what you need! :) –
Lena
Commented
Jul 21, 2020 at 13:44
Sadly, this has not worked as I do not have a job_id. I think the issue may be that the jobs are not being created? After they're submitted they are not showing on IBMQ. –
Joshua
Commented
Jul 21, 2020 at 15:06
Add a comment
Your Answer
Sign up or log in
Sign up using Google
Sign up using Email and Password
Post as a guest
Name
Email
Required, but never shown
Post Your Answer
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Ask question
Explore related questions
qiskitprogrammingibm-q-experiencevqechemistry
See similar questions with these tags.
The Overflow Blog
Prevent agentic identity theft
Building shared coding guidelines for AI (and people too)
Related
1
Queue disabled and HTTP 403 error
1
Why does job appear to be stuck in queue on IBMQ backend?
1
An effective way to submit all the jobs for VQE/QAOA at a time to an IBMQ machine?
2
Add FreezeCoreOrbitals on ElectronicStructureProblem
4
How do I identify a VQE job run in real hardware?
1
Why the last IBMQ job of my VQE have just one circuit?
4
TranspilerError: 'The input circuit None is not scheduled'
Hot Network Questions
Is 'publications' used to modify 'industry'?
In an Ansible INI file, does a blank line break a group?
Which prepositions can be placed before the word « où » ?
How to restore one-off search behaviour in the search bar in Firefox 149?
Local travel info related to NBJ (Dr. António Agostinho Neto International Airport)?
feature generating strategy
How idiomatic is the term "library person" in this context?
What is the better option for heavier riders, a 32mm at lowest recommended pressure (or even below) or a 35mm at max pressure?
ESTA application question number 3?
Are Indians taught to idolize the West?
If I installed both GOG and Steam No Man's Sky, would their universes be separate?
Does state lose its neutral status if it significantly increases strategic exports to belligerent?
What is a "spudger" in John Donlan's "Noise"? (No, it's not a tool)
Which angel saved Shadrach, Mishach, and Abed-nego?
When do you abandon an approach, or try to prove the opposite result?
Using Lean 4 to formalize Boolean functions and transformations to a DAG
Finding maximum source current before resistors exceed power rating (where is my mistake?)
Video problem at boot “fixed” by going to Recovery Mode, but doing nothing
Which social theories explain protest-related arson, and why is it sometimes seen as morally justified?
"Surprising" clause in a Swiss car rental contract?
A Holiday to Remember... or Forget?! (Meta-puzzle)
Power analysis for determining what amount of time to analyze data
How did Christian fundamentalism rise in the US?
Parallels in sequences?
Question feed
By continuing to use this website, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. By exiting this window, default cookies will be accepted. To reject cookies, select an option from below.
Customize settings
Cookie Consent Preference Center
When you visit any of our websites, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences, or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and manage your preferences. Please note, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
Cookie Policy
Accept all cookies
Manage Consent Preferences
Strictly Necessary Cookies
Always Active
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.
Targeting Cookies
Targeting Cookies
These cookies are used to make advertising messages more relevant to you and may be set through our site by us or by our advertising partners. They may be used to build a profile of your interests and show you relevant advertising on our site or on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device.
Performance Cookies
Performance Cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
Functional Cookies
Functional Cookies
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
Cookie List
Clear
checkbox label label
Apply Cancel
Consent Leg.Interest
checkbox label label
checkbox label label
checkbox label label
Necessary cookies only Confirm My Choices