Skip to content

Commit

Permalink
Upgrade Qiskit package names.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlyongemallo committed Apr 6, 2024
1 parent afe47ff commit 8e1c0b0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A transpiler pass for Qiskit which uses ZX-Calculus for circuit optimization, im
## Example usage

```python
from qiskit import QuantumCircuit
from qiskit.circuit import QuantumCircuit
from qiskit.transpiler import PassManager
from zxpass import ZXPass

Expand Down
2 changes: 1 addition & 1 deletion benchmarking/run_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import sys
sys.path.append('..')

from qiskit import QuantumCircuit, transpile
from qiskit.circuit import QuantumCircuit, transpile
from qiskit.transpiler import PassManager
from typing import Dict, List, Tuple
import matplotlib.pyplot as plt # type: ignore
Expand Down
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
pyzx@git+https://github.com/Quantomatic/pyzx
matplotlib>=3.7.4
numpy~=1.24.0 # can't go higher for python 3.8
pytest~=7.4.3
qiskit~=1.0.0
pylatexenc~=2.10
pytest~=8.1.1
qiskit~=1.0.2

2 changes: 1 addition & 1 deletion test/test_zxpass.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit.circuit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit.quantum_info import Statevector
from qiskit.transpiler import PassManager
from qiskit.circuit.random import random_circuit
Expand Down
4 changes: 2 additions & 2 deletions zx_transpiler_pass_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"metadata": {},
"outputs": [],
"source": [
"from qiskit import QuantumCircuit\n",
"from qiskit.circuit import QuantumCircuit\n",
"from qiskit.converters import circuit_to_dag\n",
"from qiskit.tools.visualization import dag_drawer\n",
"from qiskit.visualization import dag_drawer\n",
"import numpy as np"
]
},
Expand Down

0 comments on commit 8e1c0b0

Please sign in to comment.