Skip to content

Regression for cirq.GridQubit with float indices #7102

@dstrain115

Description

@dstrain115

Description of the issue

#6987 coerces GridQubit indices to be ints.
If a float is specified, then the behavior changes from the most recent version.

How to reproduce the issue

cirq.GridQubit(4.5, 2.5)
Details

Before, this would return cirq.GridQubit(4.5, 2.5) and now returns cirq.GridQubit(4, 2)

Cirq version
dev1.5.0

Metadata

Metadata

Labels

kind/bug-reportSomething doesn't seem to work.priority/p1Fix is needed as soon as possible – it is blocking some major flows for users

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions