Skip to content

Cannot serialize identity gate on Quantum Engine #4833

@viathor

Description

@viathor

Description of the issue

Cannot serialize identity gate when using SQRT_ISWAP_GATESET.

How to reproduce the issue

sampler = engine.get_sampler(processor_id='...', gate_set=cg.SQRT_ISWAP_GATESET)
q = cirq.GridQubit(7, 4)
c = cirq.Circuit(cirq.I(q))
r = sampler.run(c, repetitions=1)
...
ValueError: Cannot serialize op cirq.I(cirq.GridQubit(7, 4)) of type <class 'cirq.ops.identity.IdentityGate'>

Cirq version

0.14.0.dev20211210220312

Metadata

Metadata

Labels

area/serializationkind/bug-reportSomething doesn't seem to work.priority/p2Next release should contain ittriage/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