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

IBMQExperiment and FreeformDesign/CombinedExperimentDesign quality-of-life updates #379

Open
wants to merge 21 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
c78233e
First pass at IBMQ checkpointing.
sserita Nov 21, 2023
db63eb8
First pass reworking IBMQExperiment
sserita Nov 28, 2023
368e31c
Merge branch 'develop' into feature-svb-qol-updates
sserita Nov 28, 2023
e5ac246
Updates to FreeformDesign serialization
sserita Dec 1, 2023
7962383
Further update to FreeformDesign serialization
sserita Dec 1, 2023
fad56e2
Fix new FreeformDesign serialization
sserita Dec 1, 2023
f74dce5
Complete rework of IBMQExperiment with checkpointing
sserita Dec 2, 2023
2782417
Add deserialization support for old pickle format
sserita Dec 2, 2023
b325ef7
Clean up tutorial.
sserita Dec 2, 2023
f8fda1f
Make IBMQExperiment chkpting in line with GST chkpting
sserita Dec 12, 2023
b58f5b3
Provide opt-out for saving all_circuits_needing_data for CombinedExpe…
sserita Dec 12, 2023
df4bcc8
Finish docstring
sserita Dec 12, 2023
8f5b05a
Bugfixes for serialization updates
sserita Dec 12, 2023
fc7d7bf
Standardize and add tests for edesign serialization.
sserita Dec 15, 2023
a7ea0c4
Add CanCreateAllCircuitsDesign class.
sserita Dec 15, 2023
f03cb35
Add FreeformDesign tests and fix discovered bugs.
sserita Dec 15, 2023
b726a40
Rename ibmqcore to ibmqexperiment
sserita Jan 10, 2024
cb34d6e
Merge branch 'develop' into feature-svb-qol-updates
sserita Jan 11, 2024
9b65a3c
Merge branch 'develop' into feature-svb-qol-updates
sserita Jan 18, 2024
7a28b20
Initial tests for IBMQExperiment.
sserita Jan 18, 2024
e59ec4c
First tests with mock Qiskit backend.
sserita Jan 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -11,6 +11,7 @@
.ipynb_checkpoints
test/test_packages/temp_test_files/*
*_checkpoints/
*_checkpoint/
jupyter_notebooks/**/offline
test/test_packages/offline
hooks/etc/permissions.yml
Expand Down Expand Up @@ -55,6 +56,7 @@ jupyter_notebooks/Tutorials/tutorial_files/exampleBriefReport
jupyter_notebooks/Tutorials/tutorial_files/*.ipynb
jupyter_notebooks/Tutorials/tutorial_files/tempTest
jupyter_notebooks/Tutorials/tutorial_files/*checkpoints
jupyter_notebooks/Tutorials/objects/advanced/test_ibmq*



Expand Down
208 changes: 156 additions & 52 deletions jupyter_notebooks/Tutorials/objects/advanced/IBMQExperiment.ipynb

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions pygsti/circuits/circuit.py
Expand Up @@ -4021,7 +4021,7 @@ def convert_to_openqasm(self, num_qubits=None,
# Init the openqasm string.
openqasm = 'OPENQASM 2.0;\ninclude "qelib1.inc";\n\n'
# Include a delay instruction
openqasm += 'opaque delay(t) q;\n\n'
#openqasm += 'opaque delay(t) q;\n\n' # SS 01-22-24: Is this necessary? CHeck with Megan/Tim/Kenny

openqasm += 'qreg q[{0}];\n'.format(str(num_qubits))
# openqasm += 'creg cr[{0}];\n'.format(str(num_qubits))
Expand Down Expand Up @@ -4102,7 +4102,8 @@ def convert_to_openqasm(self, num_qubits=None,
if q not in qubits_used:
# Delay 0 works because of the barrier
# In OpenQASM3, this should probably be a stretch instead
openqasm += 'delay(0)' + ' q[' + str(qubit_conversion[q]) + '];\n'
#openqasm += 'delay(0)' + ' q[' + str(qubit_conversion[q]) + '];\n'
pass

# Add in a barrier after every circuit layer if block_between_layers==True.
# Including barriers is critical for QCVV testing, circuits should usually
Expand Down
4 changes: 2 additions & 2 deletions pygsti/extras/ibmq/__init__.py
@@ -1,4 +1,4 @@
""" Exteneral Device Specifications Sub-package """
""" IBMQ Experiment Sub-package """
#***************************************************************************************************
# Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
# Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains certain rights
Expand All @@ -8,4 +8,4 @@
# http://www.apache.org/licenses/LICENSE-2.0 or in the LICENSE file in the root pyGSTi directory.
#***************************************************************************************************

from .ibmqcore import *
from .ibmqexperiment import *
433 changes: 0 additions & 433 deletions pygsti/extras/ibmq/ibmqcore.py

This file was deleted.