ENCCS / qas2023

Training material for Quantum Autumn School 2023
https://enccs.github.io/qas2023/
Creative Commons Attribution 4.0 International
7 stars 7 forks source link

Add intro to Helmi notebooks #1

Closed JMuff22 closed 11 months ago

JMuff22 commented 11 months ago

Hi, here are the Introduction to Helmi slides. Feedback and comments are welcome! I put these into their own folder under the notebooks directory. If there is a better place I can move them.

Thanks!

fomalhautn commented 11 months ago

@JMuff22 please add this link https://docs.csc.fi/cloud/csc_notebooks/

fomalhautn commented 11 months ago

Would you consider adding job monitoring for

job = execute(circuits_list, backend, shots=1000, optimization_level=0)
result = job.result()
plot_histogram(result.get_counts(), legend=['Circuit 1', 'Circuit 2'])

Something like:

from qiskit.tools.monitor import job_monitor

# Execute and monitor job
job = execute(circuits_list, backend, shots=1000, optimization_level=0)
print("Tracking execution of job:")
job_monitor(job)
# Get results
result = job.result()

# Plot histograms
plot_histogram(result.get_counts(), legend=['Circuit 1', 'Circuit 2'])
Screenshot 2023-10-02 at 14 13 57
JMuff22 commented 11 months ago

Would you consider adding job monitoring for

job = execute(circuits_list, backend, shots=1000, optimization_level=0)
result = job.result()
plot_histogram(result.get_counts(), legend=['Circuit 1', 'Circuit 2'])

Something like:

from qiskit.tools.monitor import job_monitor

# Execute and monitor job
job = execute(circuits_list, backend, shots=1000, optimization_level=0)
print("Tracking execution of job:")
job_monitor(job)
# Get results
result = job.result()

# Plot histograms
plot_histogram(result.get_counts(), legend=['Circuit 1', 'Circuit 2'])
Screenshot 2023-10-02 at 14 13 57

Thanks for the feedback! I've added your suggestion to the notebook