quantumlib / Cirq

A Python framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.
Apache License 2.0
4.28k stars 1.02k forks source link

cirq rigetti cause CI failure for pytest and mypy at head #6732

Closed NoureldinYosri closed 1 month ago

NoureldinYosri commented 1 month ago

pytest check: https://github.com/quantumlib/Cirq/actions/runs/10922443135/job/30316787499?pr=6728

FAILED cirq-core/cirq/protocols/json_serialization_test.py::test_json_and_repr_data[mod_spec45-/home/runner/work/Cirq/Cirq/cirq-rigetti/cirq_rigetti/json_test_data/RigettiQCSAspenDevice] - OSError: Failed to parse test json data from cirq-rigetti/cirq_rigetti/json_test_data/RigettiQCSAspenDevice.json.
FAILED cirq-core/cirq/protocols/json_serialization_test.py::test_json_test_data_coverage[mod_spec270-RigettiQCSAspenDevice-RigettiQCSAspenDevice] - AttributeError: type object 'builtins.Family' has no attribute 'Aspen'

type check: https://github.com/quantumlib/Cirq/actions/runs/10922443135/job/30316786280?pr=6728

cirq-rigetti/cirq_rigetti/aspen_device.py:69: error: "type[Family]" has no attribute "Aspen"  [attr-defined]
cirq-rigetti/cirq_rigetti/aspen_device_test.py:256: error: "type[Family]" has no attribute "NONE"  [attr-defined]
cirq-rigetti/cirq_rigetti/aspen_device_test.py:259: error: "type[Family]" has no attribute "Aspen"  [attr-defined]

blocking https://github.com/quantumlib/Cirq/pull/6728