Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Replace qiskit-terra with qiskit & update qpy (#714)
Browse files Browse the repository at this point in the history
* replace qiskit-terra with qiskit

* update qpy, qiskit 0.25.1

* Update setup.py

Co-authored-by: Matthew Treinish <[email protected]>

* Update requirements.txt

Co-authored-by: Matthew Treinish <[email protected]>

---------

Co-authored-by: Matthew Treinish <[email protected]>
  • Loading branch information
kt474 and mtreinish authored Aug 28, 2023
1 parent 661e301 commit bba0b2a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions qiskit_ibm_provider/qpy/binary_io/circuits.py
Original file line number Diff line number Diff line change
Expand Up @@ -1035,10 +1035,13 @@ def write_circuit(file_obj, circuit, metadata_serializer=None): # type: ignore[
new_custom_operations = list(custom_operations.keys())
while new_custom_operations:
operations_to_serialize = new_custom_operations.copy()
new_custom_operations = []
for name in operations_to_serialize:
operation = custom_operations[name]
new_custom_operations = _write_custom_operation(
custom_operations_buffer, name, operation, custom_operations
new_custom_operations.extend(
_write_custom_operation(
custom_operations_buffer, name, operation, custom_operations
)
)

file_obj.write(
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
qiskit-terra>=0.25.0
qiskit>=0.44.1
requests>=2.19
requests_ntlm>=1.1.0
numpy>=1.13
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import setuptools

REQUIREMENTS = [
"qiskit-terra>=0.25.0",
"qiskit>=0.44.1",
"requests>=2.19",
"requests-ntlm>=1.1.0",
"numpy>=1.13",
Expand Down

0 comments on commit bba0b2a

Please sign in to comment.