You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on #1194 , I noticed that several bloqs throw the following exception:
E TypeError: couldn't compute TComplexity of:
E type: <class 'qualtran.bloqs.basic_gates.x_basis.MinusEffect'>
E value: MinusEffect
Here's a list of these bloqs:
MinusState
MinusEffect
PlusEffect
PlusState
OneEffect
OneState
ZeroEffect
ZeroState
Product
TopLeftRowColumnOracle
C[TwoBitSwap]
ModSub
ECAddR
ECWindowAddR
MeasureQFT
Not sure if that's an expected behaviour or not, perhaps throwing NotImplementedError or something even more specific would be more informative.
FYI apart from that I got a couple of other errors. They seem mostly associated with symbolics, such as: ValueError: Split cannot have a symbolic data type. or TypeError: cirq.unitary failed. Value doesn't have a (non-parameterized) unitary effect..
The text was updated successfully, but these errors were encountered:
DecomposeNotImplementedError means that we can't compute the cost because the bloq doesn't have a decomposition annotated and it isn't an atomic/leaf bloq. Bloqs aren't obligated to give their decomposition
DecomposeTypeError means you're trying to decompose something that ought not be decomposed: something with symbolic parameters or an atomic/leaf bloq that the gate counting code doesn't know what to do with.
Other exception types would be a bug; but I think we've got all of those out now.
While working on #1194 , I noticed that several bloqs throw the following exception:
Here's a list of these bloqs:
MinusState
MinusEffect
PlusEffect
PlusState
OneEffect
OneState
ZeroEffect
ZeroState
Product
TopLeftRowColumnOracle
C[TwoBitSwap]
ModSub
ECAddR
ECWindowAddR
MeasureQFT
Not sure if that's an expected behaviour or not, perhaps throwing
NotImplementedError
or something even more specific would be more informative.FYI apart from that I got a couple of other errors. They seem mostly associated with symbolics, such as:
ValueError: Split cannot have a symbolic data type.
orTypeError: cirq.unitary failed. Value doesn't have a (non-parameterized) unitary effect.
.The text was updated successfully, but these errors were encountered: