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
"Inconsistent Hilbert space dimension between Analog Gates"
56
-
)
57
-
58
-
59
-
classVerifyAnalogArgsDim(RewriteRule):
60
-
"""
61
-
Checks whether hilbert space dimensions are consistent between Expectation in args
62
-
and whether they match the n_qreg and n_qmode given as input.
63
-
64
-
Args:
65
-
model (VisitableBaseModel):
66
-
The rule only verfies Expectation inside TaskArgsAnalog in Analog layer
67
-
68
-
Returns:
69
-
model (VisitableBaseModel): unchanged
70
-
71
-
Assumptions:
72
-
All [`Operator`][oqd_core.interface.analog.operator.Operator] inside [`AnalogCircuit`][oqd_core.interface.analog.operations.AnalogCircuit] are canonicalized
0 commit comments