diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c289c1..19d882e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # CHANGELOG.md +## 0.4.2 (2023-11-13) + +This is Qiskit patch release, updating the qiskit and qiskit-aer Package. + +Qiskit Dependencies: + +- Bump qiskit from 0.44.2 to 0.45.0 + - all unparametrized gates in the Qiskit standard circuit library are now singletons. + - qiskit.extensions will be fully deprecated in a future release, moved to the circuit library. +- Bump qiskit-aer from 0.12.2 to 0.13.0 + +Other Dependencies: + +- Bump ipython from 8.16.1 to 8.17.2 +- Bump notebook from 7.0.4 to 7.0.6 +- Bump numpy from 1.26.0 to 1.26.1 +- Bump pylint from 3.0.1 to 3.0.2 + + ## 0.4.1 (2023-10-12) This is small patch release, updating only the Qiskit Package. diff --git a/pyproject.toml b/pyproject.toml index 61691a8..bc399fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ exclude = ['qiskit_class_converter*tests'] [project] name = "qiskit-classroom-converter" -version = "0.4.1" +version = "0.4.2" authors = [ { name = "KMU-quantum-classroom" }, ] diff --git a/qiskit_class_converter/converters/matrix_to_quantum_circuit.py b/qiskit_class_converter/converters/matrix_to_quantum_circuit.py index 86431e4..bb4aa19 100644 --- a/qiskit_class_converter/converters/matrix_to_quantum_circuit.py +++ b/qiskit_class_converter/converters/matrix_to_quantum_circuit.py @@ -34,7 +34,7 @@ def actual_convert_action(self): self.logger.debug("matrix to quantum circuit") # type validate if isinstance(self.input_value, (List, np.ndarray)): - gate = self.qiskit.extensions.UnitaryGate(self.input_value) + gate = self.qiskit.circuit.library.UnitaryGate(self.input_value).to_mutable() else: raise TypeError("List or np.ndarray is required.") # parse by unitary circuit. can't describe what circuit is.