From 11a89c4213de39f249ecf93849598c9d4be6690d Mon Sep 17 00:00:00 2001 From: Jun Doi Date: Fri, 23 Aug 2024 10:17:20 +0900 Subject: [PATCH] Release 0.15 (#2204) * Release 0.15 * add deprecation warnings to V1 primitives * lint --- qiskit_aer/primitives/estimator.py | 5 +++++ qiskit_aer/primitives/sampler.py | 6 ++++++ .../add_delay_custom_instructions-e1bf80ec3598bfd1.yaml | 0 .../notes/{ => 0.15}/add_ecr_to_mps-0eec56596fc486c7.yaml | 0 .../{ => 0.15}/add_rotation_support-c0ef8155a761e560.yaml | 0 .../add_sampler_v2_simulator_metadata-e17850d483439f9a.yaml | 0 .../notes/{ => 0.15}/add_var_storage-99ec3509828754d4.yaml | 0 .../fix_AerBackend_set_max_qubits-fee8f0e104580e33.yaml | 0 .../fix_enabling_cuStateVec-1a2f1d3e35f3129d.yaml | 0 .../{ => 0.15}/fix_for_qiskit1.2-4924037bafe82ecc.yaml | 0 .../notes/{ => 0.15}/fix_from_backend-a885d43caf390873.yaml | 0 .../{ => 0.15}/fix_inline_in_compiler-6ecdfcf38e2fa0c9.yaml | 0 .../notes/{ => 0.15}/fix_issue2084-632a829da1a8dfc5.yaml | 0 .../fix_noise_dynamic_circuits-59c6cf0061e956a8.yaml | 0 .../{ => 0.15}/fix_primitiveV2_init-afe7b331ddbef538.yaml | 0 .../{ => 0.15}/fix_stabilizer_measure-a06d761eba2546d2.yaml | 0 .../fixes_dependency_issues_by0.14-da7f11cb29710f86.yaml | 0 .../notes/{ => 0.15}/init_omp_first-c9d19dbfa1a0fc2b.yaml | 0 .../notes/{ => 0.15}/pauli-error-38fc637054cab207.yaml | 0 .../{ => 0.15}/pauli-lindblad-error-2fccae840ceec2aa.yaml | 0 .../notes/{ => 0.15}/providerABC-61311d8e5ae56d71.yaml | 0 .../{ => 0.15}/remove-standalone-qobj-0fc0f7ca479634f4.yaml | 0 .../{ => 0.15}/update-primitive-v2-b5c7d6c700df0bd6.yaml | 0 .../update-primitive-v2-metadata-bd7f5609e55ef2e7.yaml | 0 24 files changed, 11 insertions(+) rename releasenotes/notes/{ => 0.15}/add_delay_custom_instructions-e1bf80ec3598bfd1.yaml (100%) rename releasenotes/notes/{ => 0.15}/add_ecr_to_mps-0eec56596fc486c7.yaml (100%) rename releasenotes/notes/{ => 0.15}/add_rotation_support-c0ef8155a761e560.yaml (100%) rename releasenotes/notes/{ => 0.15}/add_sampler_v2_simulator_metadata-e17850d483439f9a.yaml (100%) rename releasenotes/notes/{ => 0.15}/add_var_storage-99ec3509828754d4.yaml (100%) rename releasenotes/notes/{ => 0.15}/fix_AerBackend_set_max_qubits-fee8f0e104580e33.yaml (100%) rename releasenotes/notes/{ => 0.15}/fix_enabling_cuStateVec-1a2f1d3e35f3129d.yaml (100%) rename releasenotes/notes/{ => 0.15}/fix_for_qiskit1.2-4924037bafe82ecc.yaml (100%) rename releasenotes/notes/{ => 0.15}/fix_from_backend-a885d43caf390873.yaml (100%) rename releasenotes/notes/{ => 0.15}/fix_inline_in_compiler-6ecdfcf38e2fa0c9.yaml (100%) rename releasenotes/notes/{ => 0.15}/fix_issue2084-632a829da1a8dfc5.yaml (100%) rename releasenotes/notes/{ => 0.15}/fix_noise_dynamic_circuits-59c6cf0061e956a8.yaml (100%) rename releasenotes/notes/{ => 0.15}/fix_primitiveV2_init-afe7b331ddbef538.yaml (100%) rename releasenotes/notes/{ => 0.15}/fix_stabilizer_measure-a06d761eba2546d2.yaml (100%) rename releasenotes/notes/{ => 0.15}/fixes_dependency_issues_by0.14-da7f11cb29710f86.yaml (100%) rename releasenotes/notes/{ => 0.15}/init_omp_first-c9d19dbfa1a0fc2b.yaml (100%) rename releasenotes/notes/{ => 0.15}/pauli-error-38fc637054cab207.yaml (100%) rename releasenotes/notes/{ => 0.15}/pauli-lindblad-error-2fccae840ceec2aa.yaml (100%) rename releasenotes/notes/{ => 0.15}/providerABC-61311d8e5ae56d71.yaml (100%) rename releasenotes/notes/{ => 0.15}/remove-standalone-qobj-0fc0f7ca479634f4.yaml (100%) rename releasenotes/notes/{ => 0.15}/update-primitive-v2-b5c7d6c700df0bd6.yaml (100%) rename releasenotes/notes/{ => 0.15}/update-primitive-v2-metadata-bd7f5609e55ef2e7.yaml (100%) diff --git a/qiskit_aer/primitives/estimator.py b/qiskit_aer/primitives/estimator.py index 139ea17869..a7c3efba7b 100644 --- a/qiskit_aer/primitives/estimator.py +++ b/qiskit_aer/primitives/estimator.py @@ -96,6 +96,11 @@ def __init__( abelian_grouping: Whether the observable should be grouped into commuting. If approximation is True, this parameter is ignored and assumed to be False. """ + warn( + "Estimator has been deprecated as of Aer 0.15, please use EstimatorV2 instead.", + DeprecationWarning, + stacklevel=3, + ) super().__init__(options=run_options) # These three private attributes used to be created by super, but were deprecated in Qiskit # 0.46. See https://github.com/Qiskit/qiskit/pull/11051 diff --git a/qiskit_aer/primitives/sampler.py b/qiskit_aer/primitives/sampler.py index 7a97a9c4c8..df203461d9 100644 --- a/qiskit_aer/primitives/sampler.py +++ b/qiskit_aer/primitives/sampler.py @@ -18,6 +18,7 @@ from collections.abc import Sequence +from warnings import warn import numpy as np from qiskit.circuit import ParameterExpression, QuantumCircuit from qiskit.compiler import transpile @@ -66,6 +67,11 @@ def __init__( run_options: Options passed to run. skip_transpilation: if True, transpilation is skipped. """ + warn( + "Sampler has been deprecated as of Aer 0.15, please use SamplerV2 instead.", + DeprecationWarning, + stacklevel=3, + ) super().__init__(options=run_options) # These two private attributes used to be created by super, but were deprecated in Qiskit # 0.46. See https://github.com/Qiskit/qiskit/pull/11051 diff --git a/releasenotes/notes/add_delay_custom_instructions-e1bf80ec3598bfd1.yaml b/releasenotes/notes/0.15/add_delay_custom_instructions-e1bf80ec3598bfd1.yaml similarity index 100% rename from releasenotes/notes/add_delay_custom_instructions-e1bf80ec3598bfd1.yaml rename to releasenotes/notes/0.15/add_delay_custom_instructions-e1bf80ec3598bfd1.yaml diff --git a/releasenotes/notes/add_ecr_to_mps-0eec56596fc486c7.yaml b/releasenotes/notes/0.15/add_ecr_to_mps-0eec56596fc486c7.yaml similarity index 100% rename from releasenotes/notes/add_ecr_to_mps-0eec56596fc486c7.yaml rename to releasenotes/notes/0.15/add_ecr_to_mps-0eec56596fc486c7.yaml diff --git a/releasenotes/notes/add_rotation_support-c0ef8155a761e560.yaml b/releasenotes/notes/0.15/add_rotation_support-c0ef8155a761e560.yaml similarity index 100% rename from releasenotes/notes/add_rotation_support-c0ef8155a761e560.yaml rename to releasenotes/notes/0.15/add_rotation_support-c0ef8155a761e560.yaml diff --git a/releasenotes/notes/add_sampler_v2_simulator_metadata-e17850d483439f9a.yaml b/releasenotes/notes/0.15/add_sampler_v2_simulator_metadata-e17850d483439f9a.yaml similarity index 100% rename from releasenotes/notes/add_sampler_v2_simulator_metadata-e17850d483439f9a.yaml rename to releasenotes/notes/0.15/add_sampler_v2_simulator_metadata-e17850d483439f9a.yaml diff --git a/releasenotes/notes/add_var_storage-99ec3509828754d4.yaml b/releasenotes/notes/0.15/add_var_storage-99ec3509828754d4.yaml similarity index 100% rename from releasenotes/notes/add_var_storage-99ec3509828754d4.yaml rename to releasenotes/notes/0.15/add_var_storage-99ec3509828754d4.yaml diff --git a/releasenotes/notes/fix_AerBackend_set_max_qubits-fee8f0e104580e33.yaml b/releasenotes/notes/0.15/fix_AerBackend_set_max_qubits-fee8f0e104580e33.yaml similarity index 100% rename from releasenotes/notes/fix_AerBackend_set_max_qubits-fee8f0e104580e33.yaml rename to releasenotes/notes/0.15/fix_AerBackend_set_max_qubits-fee8f0e104580e33.yaml diff --git a/releasenotes/notes/fix_enabling_cuStateVec-1a2f1d3e35f3129d.yaml b/releasenotes/notes/0.15/fix_enabling_cuStateVec-1a2f1d3e35f3129d.yaml similarity index 100% rename from releasenotes/notes/fix_enabling_cuStateVec-1a2f1d3e35f3129d.yaml rename to releasenotes/notes/0.15/fix_enabling_cuStateVec-1a2f1d3e35f3129d.yaml diff --git a/releasenotes/notes/fix_for_qiskit1.2-4924037bafe82ecc.yaml b/releasenotes/notes/0.15/fix_for_qiskit1.2-4924037bafe82ecc.yaml similarity index 100% rename from releasenotes/notes/fix_for_qiskit1.2-4924037bafe82ecc.yaml rename to releasenotes/notes/0.15/fix_for_qiskit1.2-4924037bafe82ecc.yaml diff --git a/releasenotes/notes/fix_from_backend-a885d43caf390873.yaml b/releasenotes/notes/0.15/fix_from_backend-a885d43caf390873.yaml similarity index 100% rename from releasenotes/notes/fix_from_backend-a885d43caf390873.yaml rename to releasenotes/notes/0.15/fix_from_backend-a885d43caf390873.yaml diff --git a/releasenotes/notes/fix_inline_in_compiler-6ecdfcf38e2fa0c9.yaml b/releasenotes/notes/0.15/fix_inline_in_compiler-6ecdfcf38e2fa0c9.yaml similarity index 100% rename from releasenotes/notes/fix_inline_in_compiler-6ecdfcf38e2fa0c9.yaml rename to releasenotes/notes/0.15/fix_inline_in_compiler-6ecdfcf38e2fa0c9.yaml diff --git a/releasenotes/notes/fix_issue2084-632a829da1a8dfc5.yaml b/releasenotes/notes/0.15/fix_issue2084-632a829da1a8dfc5.yaml similarity index 100% rename from releasenotes/notes/fix_issue2084-632a829da1a8dfc5.yaml rename to releasenotes/notes/0.15/fix_issue2084-632a829da1a8dfc5.yaml diff --git a/releasenotes/notes/fix_noise_dynamic_circuits-59c6cf0061e956a8.yaml b/releasenotes/notes/0.15/fix_noise_dynamic_circuits-59c6cf0061e956a8.yaml similarity index 100% rename from releasenotes/notes/fix_noise_dynamic_circuits-59c6cf0061e956a8.yaml rename to releasenotes/notes/0.15/fix_noise_dynamic_circuits-59c6cf0061e956a8.yaml diff --git a/releasenotes/notes/fix_primitiveV2_init-afe7b331ddbef538.yaml b/releasenotes/notes/0.15/fix_primitiveV2_init-afe7b331ddbef538.yaml similarity index 100% rename from releasenotes/notes/fix_primitiveV2_init-afe7b331ddbef538.yaml rename to releasenotes/notes/0.15/fix_primitiveV2_init-afe7b331ddbef538.yaml diff --git a/releasenotes/notes/fix_stabilizer_measure-a06d761eba2546d2.yaml b/releasenotes/notes/0.15/fix_stabilizer_measure-a06d761eba2546d2.yaml similarity index 100% rename from releasenotes/notes/fix_stabilizer_measure-a06d761eba2546d2.yaml rename to releasenotes/notes/0.15/fix_stabilizer_measure-a06d761eba2546d2.yaml diff --git a/releasenotes/notes/fixes_dependency_issues_by0.14-da7f11cb29710f86.yaml b/releasenotes/notes/0.15/fixes_dependency_issues_by0.14-da7f11cb29710f86.yaml similarity index 100% rename from releasenotes/notes/fixes_dependency_issues_by0.14-da7f11cb29710f86.yaml rename to releasenotes/notes/0.15/fixes_dependency_issues_by0.14-da7f11cb29710f86.yaml diff --git a/releasenotes/notes/init_omp_first-c9d19dbfa1a0fc2b.yaml b/releasenotes/notes/0.15/init_omp_first-c9d19dbfa1a0fc2b.yaml similarity index 100% rename from releasenotes/notes/init_omp_first-c9d19dbfa1a0fc2b.yaml rename to releasenotes/notes/0.15/init_omp_first-c9d19dbfa1a0fc2b.yaml diff --git a/releasenotes/notes/pauli-error-38fc637054cab207.yaml b/releasenotes/notes/0.15/pauli-error-38fc637054cab207.yaml similarity index 100% rename from releasenotes/notes/pauli-error-38fc637054cab207.yaml rename to releasenotes/notes/0.15/pauli-error-38fc637054cab207.yaml diff --git a/releasenotes/notes/pauli-lindblad-error-2fccae840ceec2aa.yaml b/releasenotes/notes/0.15/pauli-lindblad-error-2fccae840ceec2aa.yaml similarity index 100% rename from releasenotes/notes/pauli-lindblad-error-2fccae840ceec2aa.yaml rename to releasenotes/notes/0.15/pauli-lindblad-error-2fccae840ceec2aa.yaml diff --git a/releasenotes/notes/providerABC-61311d8e5ae56d71.yaml b/releasenotes/notes/0.15/providerABC-61311d8e5ae56d71.yaml similarity index 100% rename from releasenotes/notes/providerABC-61311d8e5ae56d71.yaml rename to releasenotes/notes/0.15/providerABC-61311d8e5ae56d71.yaml diff --git a/releasenotes/notes/remove-standalone-qobj-0fc0f7ca479634f4.yaml b/releasenotes/notes/0.15/remove-standalone-qobj-0fc0f7ca479634f4.yaml similarity index 100% rename from releasenotes/notes/remove-standalone-qobj-0fc0f7ca479634f4.yaml rename to releasenotes/notes/0.15/remove-standalone-qobj-0fc0f7ca479634f4.yaml diff --git a/releasenotes/notes/update-primitive-v2-b5c7d6c700df0bd6.yaml b/releasenotes/notes/0.15/update-primitive-v2-b5c7d6c700df0bd6.yaml similarity index 100% rename from releasenotes/notes/update-primitive-v2-b5c7d6c700df0bd6.yaml rename to releasenotes/notes/0.15/update-primitive-v2-b5c7d6c700df0bd6.yaml diff --git a/releasenotes/notes/update-primitive-v2-metadata-bd7f5609e55ef2e7.yaml b/releasenotes/notes/0.15/update-primitive-v2-metadata-bd7f5609e55ef2e7.yaml similarity index 100% rename from releasenotes/notes/update-primitive-v2-metadata-bd7f5609e55ef2e7.yaml rename to releasenotes/notes/0.15/update-primitive-v2-metadata-bd7f5609e55ef2e7.yaml