Qualtran icon indicating copy to clipboard operation
Qualtran copied to clipboard

GateWithRegisters supports_decompose_bloq returns false when a Cirq decomposition is specified

Open skushnir123 opened this issue 1 year ago • 1 comments

I came across this issue when calling supports_decompose_bloq on an instance of a PhaseGradientUnitary Bloq and it returned false even though a decomposition is specified. It seems this is a more general issue with bloqs which specify a Cirq decomposition.

skushnir123 avatar Feb 15 '24 16:02 skushnir123

Yes, this is likely a bug.

Can I ask why you're using that method? In general: it's probably more trouble than it's worth, and we could consider directing users to just try decomposing and see if an exception is raised.

mpharrigan avatar Feb 15 '24 17:02 mpharrigan