Skip to content

Commit

Permalink
Fix Qiskit version compatibility in QrackCircuit
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Jun 19, 2024
1 parent f614bb7 commit d959359
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pyqrack/qrack_circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
try:
from qiskit.circuit.quantumcircuit import QuantumCircuit
from qiskit.compiler.transpiler import transpile
from qiskit.circuit.library import UCGate
import numpy as np
import math
except ImportError:
Expand Down Expand Up @@ -291,7 +292,7 @@ def file_to_qiskit_circuit(filename):
else:
gate_list.append(np.array([[1, 0],[0, 1]]))

circ.uc(gate_list, controls, target)
circ.append(UCGate(gate_list), controls + [target])

return circ

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from setuptools import setup


VERSION = "1.29.1"
VERSION = "1.29.2"

# Read long description from README.
README_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md')
Expand Down

0 comments on commit d959359

Please sign in to comment.