Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-cirq for openSUSE:Factory 
checked in at 2022-10-14 15:43:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cirq (Old)
 and      /work/SRC/openSUSE:Factory/.python-cirq.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-cirq"

Fri Oct 14 15:43:02 2022 rev:5 rq:1010893 version:1.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cirq/python-cirq.changes  2022-02-22 
21:18:49.326293185 +0100
+++ /work/SRC/openSUSE:Factory/.python-cirq.new.2275/python-cirq.changes        
2022-10-14 15:44:14.472088914 +0200
@@ -1,0 +2,24 @@
+Fri Oct 14 09:50:15 UTC 2022 - Daniel Garcia <daniel.gar...@suse.com>
+
+- Update to 1.0.0:
+
+    Cirq has officially left alpha and is v1.0. With this release comes new
+    policies on API stability as well as functionality gaurantees for the long
+    term. Along with some minor bug fixes and tweaks, this release focuses on
+    stabilizing the APIs within cirq-core. With cirq-core we intend to follow
+    along with semver and only make breaking changes with moves to new major
+    versions. For the vendor packages we plan to continue to allow developers
+    to iterate at speed and will do best effort on ensuring any API changes
+    come with as little friction as possible. For all the details on this
+    policy please see: release.md.
+
+  * Full changelog from v0.13.1 can be found in github:
+    https://github.com/quantumlib/Cirq/releases
+
+- Add patch fix-tests.patch based on upstream PR: gh#quantumlib/Cirq#5911
+- Delete 4636.patch not needed anymore
+- Delete 4873.patch not needed anymore
+- Disable test_version because the version is not updated in the current
+  release tests
+
+-------------------------------------------------------------------

Old:
----
  4636.patch
  4873.patch
  Cirq-0.13.1.tar.gz

New:
----
  Cirq-1.0.0.tar.gz
  fix-tests.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-cirq.spec ++++++
--- /var/tmp/diff_new_pack.4ELjLQ/_old  2022-10-14 15:44:15.244090203 +0200
+++ /var/tmp/diff_new_pack.4ELjLQ/_new  2022-10-14 15:44:15.248090210 +0200
@@ -24,17 +24,14 @@
 %bcond_with rigetti
 %define cirqmodules core aqt google ionq pasqal web %{?_with_rigetty:rigetty}
 Name:           python-cirq
-Version:        0.13.1
+Version:        1.0.0
 Release:        0
 Summary:        Library for writing quantum circuits
 License:        Apache-2.0
 URL:            https://github.com/quantumlib/Cirq
 Source:         
https://github.com/quantumlib/Cirq/archive/v%{version}.tar.gz#/%{packagename}-%{version}.tar.gz
-# PATCH-FIX-UPSTREAM 4636.patch gh#quantumlib/Cirq#4379 mc...@suse.com
-# Fix t_hilbert_schmidt_inner_product_is_positive_definite to work on aarch64 
as well
-Patch0:         4636.patch
-# PATCH-FIX-UPSTREAM 4873.patch gh#quantumlib/Cirq#4873
-Patch1:         https://github.com/quantumlib/Cirq/pull/4873.patch
+# PATCH-FIX-UPSTREAM fix-tests.patch gh#quantumlib/Cirq#5911
+Patch:          fix-tests.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -55,6 +52,7 @@
 # /SECTION
 # SECTION cirq-google
 BuildRequires:  %{python_module google-api-core >= 1.14.0}
+BuildRequires:  %{python_module proto-plus >= 1.20.0}
 BuildRequires:  %{python_module protobuf >= 3.12.0}
 # google-api-core[grpc]
 BuildRequires:  %{python_module grpcio}
@@ -235,6 +233,8 @@
 donttest="$donttest or test_json_and_repr_data"
 # mock error
 donttest="$donttest or test_get_engine_sampler"
+# version in release isn't updated in this test
+donttest="$donttest or test_version"
 for p in %cirqmodules; do
   pushd cirq-$p
   %pytest -k "not ($donttest)"

++++++ Cirq-0.13.1.tar.gz -> Cirq-1.0.0.tar.gz ++++++
/work/SRC/openSUSE:Factory/python-cirq/Cirq-0.13.1.tar.gz 
/work/SRC/openSUSE:Factory/.python-cirq.new.2275/Cirq-1.0.0.tar.gz differ: char 
13, line 1

++++++ fix-tests.patch ++++++
Index: Cirq-1.0.0/cirq-google/cirq_google/calibration/phased_fsim_test.py
===================================================================
--- Cirq-1.0.0.orig/cirq-google/cirq_google/calibration/phased_fsim_test.py
+++ Cirq-1.0.0/cirq-google/cirq_google/calibration/phased_fsim_test.py
@@ -12,7 +12,6 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 import os
-import re
 
 from typing import cast
 from unittest import mock
@@ -223,12 +222,14 @@ def test_floquet_to_calibration_layer_wi
 
 def test_xeb_to_calibration_layer():
     q_00, q_01, q_02, q_03 = [cirq.GridQubit(0, index) for index in range(4)]
-    gate = cirq.FSimGate(theta=np.pi / 4, phi=0.0)
+    gate = cirq.FSimGate(theta=0.75, phi=0.0)
     request = XEBPhasedFSimCalibrationRequest(
         gate=gate,
         pairs=((q_00, q_01), (q_02, q_03)),
         options=XEBPhasedFSimCalibrationOptions(
             n_library_circuits=22,
+            fatol=0.0078125,
+            xatol=0.0078125,
             fsim_options=XEBPhasedFSimCharacterizationOptions(
                 characterize_theta=True,
                 characterize_zeta=True,
@@ -246,8 +247,8 @@ def test_xeb_to_calibration_layer():
             'n_library_circuits': 22,
             'n_combinations': 10,
             'cycle_depths': '5_25_50_100_200_300',
-            'fatol': 5e-3,
-            'xatol': 5e-3,
+            'fatol': 0.0078125,
+            'xatol': 0.0078125,
             'characterize_theta': True,
             'characterize_zeta': True,
             'characterize_chi': False,
@@ -267,8 +268,6 @@ def test_xeb_to_calibration_layer():
         desired_textproto = f.read()
 
     layer_str = str(new_layer)
-    # Fix precision issues
-    layer_str = re.sub(r'0.004999\d+', '0.005', layer_str)
     assert layer_str == desired_textproto
 
 
Index: 
Cirq-1.0.0/cirq-google/cirq_google/calibration/test_data/xeb_calibration_layer.textproto
===================================================================
--- 
Cirq-1.0.0.orig/cirq-google/cirq_google/calibration/test_data/xeb_calibration_layer.textproto
+++ 
Cirq-1.0.0/cirq-google/cirq_google/calibration/test_data/xeb_calibration_layer.textproto
@@ -12,7 +12,7 @@ layer {
         qubit_constant_index: 1
         fsimgate {
           theta {
-            float_value: 0.7853981852531433
+            float_value: 0.75
           }
           phi {
             float_value: 0.0
@@ -24,7 +24,7 @@ layer {
         qubit_constant_index: 3
         fsimgate {
           theta {
-            float_value: 0.7853981852531433
+            float_value: 0.75
           }
           phi {
             float_value: 0.0
@@ -106,7 +106,7 @@ args {
   key: "fatol"
   value {
     arg_value {
-      float_value: 0.005
+      float_value: 0.0078125
     }
   }
 }
@@ -130,7 +130,7 @@ args {
   key: "xatol"
   value {
     arg_value {
-      float_value: 0.005
+      float_value: 0.0078125
     }
   }
 }

Reply via email to