Skip to content

PR #7070 changed gate equality comparison results #7284

Open
@mhucka

Description

@mhucka

Describe the issue

Users report that

cirq.X**0.5 == cirq.PhasedXPowGate(exponent=0.5, phase_exponent=0)

is True before the change and False afterwards. This is affecting internal code that uses this.

The fact that this difference was not picked up in CI checks probably means the test cases currently in Cirq need to be expanded to cover this.

Metadata

Metadata

Assignees

Labels

area/gateskind/bug-reportSomething doesn't seem to work.priority/p0Needs urgent attention and a hotfix release, breaks the majority of userstriage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions