From b7b26e000cd4baf3dcd28ca2f4607404bf736e2b Mon Sep 17 00:00:00 2001
From: Kevin Hartman <kevin@hart.mn>
Date: Thu, 12 Dec 2024 12:31:38 -0500
Subject: [PATCH] Prepare 1.3.1 (#13556)

* Prepare 1.3.1.

* Release note tweaks.
---
 Cargo.lock                                             | 10 +++++-----
 Cargo.toml                                             |  2 +-
 docs/conf.py                                           |  2 +-
 qiskit/VERSION.txt                                     |  2 +-
 .../notes/decompose-controlflow-7a7e38d402aed260.yaml  |  5 ++---
 .../notes/fix-adder-gates-39cf3d5f683e8880.yaml        |  6 +++---
 .../notes/fix-assign-parameters-ffa284ebde429704.yaml  |  8 ++++----
 .../fix-global-phase-assign-d05f182ed9ddcf57.yaml      |  6 +++---
 releasenotes/notes/fix-mcrz-19d14a8d973a82cb.yaml      |  4 ++--
 releasenotes/notes/prepare-1.3.1-73e89b4c98747d0f.yaml |  3 +++
 10 files changed, 25 insertions(+), 23 deletions(-)
 create mode 100644 releasenotes/notes/prepare-1.3.1-73e89b4c98747d0f.yaml

diff --git a/Cargo.lock b/Cargo.lock
index 81ed6660fbf0..6ba3a7407508 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1150,7 +1150,7 @@ dependencies = [
 
 [[package]]
 name = "qiskit-accelerate"
-version = "1.3.0"
+version = "1.3.1"
 dependencies = [
  "ahash 0.8.11",
  "approx 0.5.1",
@@ -1182,7 +1182,7 @@ dependencies = [
 
 [[package]]
 name = "qiskit-circuit"
-version = "1.3.0"
+version = "1.3.1"
 dependencies = [
  "ahash 0.8.11",
  "approx 0.5.1",
@@ -1202,7 +1202,7 @@ dependencies = [
 
 [[package]]
 name = "qiskit-pyext"
-version = "1.3.0"
+version = "1.3.1"
 dependencies = [
  "pyo3",
  "qiskit-accelerate",
@@ -1213,7 +1213,7 @@ dependencies = [
 
 [[package]]
 name = "qiskit-qasm2"
-version = "1.3.0"
+version = "1.3.1"
 dependencies = [
  "hashbrown 0.14.5",
  "num-bigint",
@@ -1223,7 +1223,7 @@ dependencies = [
 
 [[package]]
 name = "qiskit-qasm3"
-version = "1.3.0"
+version = "1.3.1"
 dependencies = [
  "ahash 0.8.11",
  "hashbrown 0.14.5",
diff --git a/Cargo.toml b/Cargo.toml
index acd5c57af7a3..f9c8d3cf4855 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,7 +3,7 @@ members = ["crates/*"]
 resolver = "2"
 
 [workspace.package]
-version = "1.3.0"
+version = "1.3.1"
 edition = "2021"
 rust-version = "1.70"  # Keep in sync with README.md and rust-toolchain.toml.
 license = "Apache-2.0"
diff --git a/docs/conf.py b/docs/conf.py
index a625ff9ae8cf..343373cf7d77 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -32,7 +32,7 @@
 # The short X.Y version
 version = "1.3"
 # The full version, including alpha/beta/rc tags
-release = "1.3.0"
+release = "1.3.1"
 
 language = "en"
 
diff --git a/qiskit/VERSION.txt b/qiskit/VERSION.txt
index f0bb29e76388..3a3cd8cc8b07 100644
--- a/qiskit/VERSION.txt
+++ b/qiskit/VERSION.txt
@@ -1 +1 @@
-1.3.0
+1.3.1
diff --git a/releasenotes/notes/decompose-controlflow-7a7e38d402aed260.yaml b/releasenotes/notes/decompose-controlflow-7a7e38d402aed260.yaml
index 3ac215e29ea8..aeedd449005b 100644
--- a/releasenotes/notes/decompose-controlflow-7a7e38d402aed260.yaml
+++ b/releasenotes/notes/decompose-controlflow-7a7e38d402aed260.yaml
@@ -5,7 +5,6 @@ fixes:
     that had no definition inside a ``c_if`` block would raise an error.
     Fixed `#13493 <https://github.com/Qiskit/qiskit/issues/13493>`__.
   - |
-    Operations inside a control flow (e.g. :meth:`.QuantumCircuit.for_loop`) were not
-    correctly decomposed when calling :meth:`.QuantumCircuit.decompose`. This
-    behavior is now fixed and instructions are unrolled.
+    Operations inside a control flow operation (e.g. :meth:`.QuantumCircuit.for_loop`) were not
+    correctly decomposed when calling :meth:`.QuantumCircuit.decompose`.
     Fixed `#13544 <https://github.com/Qiskit/qiskit/issues/13544>`__.
diff --git a/releasenotes/notes/fix-adder-gates-39cf3d5f683e8880.yaml b/releasenotes/notes/fix-adder-gates-39cf3d5f683e8880.yaml
index d4b792062352..8457ff038a75 100644
--- a/releasenotes/notes/fix-adder-gates-39cf3d5f683e8880.yaml
+++ b/releasenotes/notes/fix-adder-gates-39cf3d5f683e8880.yaml
@@ -2,10 +2,10 @@
 fixes:
   - |
     Added default definitions for :class:`.FullAdderGate`, :class:`.HalfAdderGate`,
-    :class:`.ModularAdderGate` and :class:`.MultiplierGate` gates, allowing to 
-    contruct :class:`.Operator`\s from quantum circuits containing these gates.
+    :class:`.ModularAdderGate` and :class:`.MultiplierGate` gates, allowing :class:`.Operator`\s 
+    to be constructed from quantum circuits containing these gates.
   - |
-    Fixed the number of clean ancilla qubits required by
+    Corrected the number of clean ancilla qubits required by
     :class:`.FullAdderSynthesisV95`, :class:`.HalfAdderSynthesisV95`, and
     :class:`.ModularAdderSynthesisV95` plugins.
   - |
diff --git a/releasenotes/notes/fix-assign-parameters-ffa284ebde429704.yaml b/releasenotes/notes/fix-assign-parameters-ffa284ebde429704.yaml
index b1e1dc5f67d6..f8f910daf7e8 100644
--- a/releasenotes/notes/fix-assign-parameters-ffa284ebde429704.yaml
+++ b/releasenotes/notes/fix-assign-parameters-ffa284ebde429704.yaml
@@ -1,7 +1,7 @@
 ---
 fixes:
   - |
-    Fix incorrect behavior in :class:`.CircuitData` in which, upon parameter assignment,
-    we attempted to modify the cached operation inside of a ``PackedInstruction``. Now
-    we instead discard said cache prompting the ``PackedInstruction`` to build a new Python
-    operation should it be needed.
\ No newline at end of file
+    Fixed an incorrect caching behavior during parameter assignment that
+    could result in definitions within the :class:`~.EquivalenceLibrary`
+    becoming corrupted. This resolves unexpected issues when running
+    basis translation in parallel. Fixed `#13504 <https://github.com/Qiskit/qiskit/issues/13504>`__.
diff --git a/releasenotes/notes/fix-global-phase-assign-d05f182ed9ddcf57.yaml b/releasenotes/notes/fix-global-phase-assign-d05f182ed9ddcf57.yaml
index 5000a9b03697..13971796a70b 100644
--- a/releasenotes/notes/fix-global-phase-assign-d05f182ed9ddcf57.yaml
+++ b/releasenotes/notes/fix-global-phase-assign-d05f182ed9ddcf57.yaml
@@ -1,8 +1,8 @@
 ---
 fixes:
   - |
-    Fixed a series of bugs when processing circuit with parameterized global phases,
-    where upon assignment the global phase was not correctly assigned.
+    Fixed a series of bugs when processing circuits with parameterized global phases
+    in which the global phase was not properly assigned during parameter assignment.
     Known cases this affected include:
 
     * assigning parameters after calling :meth:`.QuantumCircuit.decompose` on a circuit, 
@@ -11,4 +11,4 @@ fixes:
     * assigning parameters on circuits created with :func:`.pauli_twirl_2q_gates`, where 
       the circuit to be twirled had a parameterized global phase
 
-    Fixed `#13534 <https://github.com/Qiskit/qiskit/issues/13534>`__.
\ No newline at end of file
+    Fixed `#13534 <https://github.com/Qiskit/qiskit/issues/13534>`__.
diff --git a/releasenotes/notes/fix-mcrz-19d14a8d973a82cb.yaml b/releasenotes/notes/fix-mcrz-19d14a8d973a82cb.yaml
index e6f4fd991fa3..4703210bd066 100644
--- a/releasenotes/notes/fix-mcrz-19d14a8d973a82cb.yaml
+++ b/releasenotes/notes/fix-mcrz-19d14a8d973a82cb.yaml
@@ -7,5 +7,5 @@ fixes:
 upgrade_circuits:
   - |
     The generic control method for gates now avoids attempting to translate gates
-    into a supported basis, if the gate is already supported. This can slightly change the
-    synthesis of the controlled gate, although it should not increase the two-qubit gate count.
+    into a supported basis when the gate is already supported. This may slightly change the
+    synthesis of the controlled gate, but it should not increase the two-qubit gate count.
diff --git a/releasenotes/notes/prepare-1.3.1-73e89b4c98747d0f.yaml b/releasenotes/notes/prepare-1.3.1-73e89b4c98747d0f.yaml
new file mode 100644
index 000000000000..639448e0ebff
--- /dev/null
+++ b/releasenotes/notes/prepare-1.3.1-73e89b4c98747d0f.yaml
@@ -0,0 +1,3 @@
+---
+prelude: >
+    Qiskit 1.3.1 is a minor bugfix release for the 1.3 series.