Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify QubitizationWalkOperator: remove specializations for control/adjoint and use defaults instead #1481

Merged
merged 18 commits into from
Nov 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
hubbard: not impl error on cv=0
  • Loading branch information
anurudhp committed Nov 4, 2024
commit 32c03101d48b237b76b2e5539e1c69d595eea6e2
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ def __attrs_post_init__(self):
if self.x_dim != self.y_dim:
raise NotImplementedError("Currently only supports the case where x_dim=y_dim.")
if self.control_val == 0:
raise ValueError("control_val=0 not supported")
raise NotImplementedError(
"control_val=0 not supported, use `SelectHubbard(x, y).controlled(CtrlSpec(cvs=0))` instead"
)

@cached_property
def control_registers(self) -> Tuple[Register, ...]:
Expand Down
Loading