Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dcmckayibm committed Sep 27, 2024
1 parent 9877b8c commit e7373e3
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion qiskit_experiments/framework/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ def object_hook(self, obj):
return load_obj
if obj_type == "Instruction":
circuit = _decode_and_deserialize(obj_val, qpy.load, name="QuantumCircuit")[0]
return circuit.data[0][0]
return circuit.data[0].operation
if obj_type == "QuantumCircuit":
return _decode_and_deserialize(obj_val, qpy.load, name=obj_type)[0]
if obj_type == "ScheduleBlock":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ class EchoedCrossResonanceHamiltonian(CrossResonanceHamiltonian):
.. ref_arxiv:: 1 2007.02925
"""

num_pulses = 2

def _build_cr_circuit(self, pulse_gate: circuit.Gate) -> QuantumCircuit:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,9 @@ def _transpiled_circuits(self) -> List[QuantumCircuit]:
for circ in transpiled:
count_ops_result = defaultdict(int)
# This is physical circuits, i.e. qargs is physical index
for inst, qargs, _ in circ.data:
for cdata in circ.data:
inst = cdata.operation
qargs = cdata.qubits
if inst.name in ("measure", "reset", "delay", "barrier", "snapshot"):
continue
qinds = [qubit_indices[q] for q in qargs]
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand All @@ -63,7 +62,7 @@
install_requires=REQUIREMENTS,
extras_require={"extras": EXTRAS},
include_package_data=True,
python_requires=">=3.8",
python_requires=">=3.9",
project_urls={
"Bug Tracker": "https://github.com/Qiskit-Community/qiskit-experiments/issues",
"Documentation": "https://qiskit-community.github.io/qiskit-experiments",
Expand Down
5 changes: 4 additions & 1 deletion test/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ def setUpClass(cls):
# ``QiskitTestCase`` sets all warnings to be treated as an error by
# default.
# pylint: disable=invalid-name
allow_deprecationwarning_message = []
allow_deprecationwarning_message = [
".*qiskit.providers.models.backendconfiguration.GateConfig.*",
".qiskit.qobj.pulse_qobj.PulseLibraryItem.*",
]
for msg in allow_deprecationwarning_message:
warnings.filterwarnings("default", category=DeprecationWarning, message=msg)

Expand Down
2 changes: 1 addition & 1 deletion test/database_service/test_fake_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def test_creation(self):

def test_query_for_single(self):
"""Test FakeService methods experiment and analysis_result"""
for query_method, reference_dict, in zip(
for (query_method, reference_dict,) in zip(
[self.service.experiment, self.service.analysis_result], [self.expdict, self.resdict]
):
for id_value in range(len(reference_dict)):
Expand Down

0 comments on commit e7373e3

Please sign in to comment.