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

Remove CPhase gate alias references #718

Merged
merged 20 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from 13 commits
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
4 changes: 1 addition & 3 deletions frontend/catalyst/utils/toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,13 @@ def patch_schema1_collections(
): # pylint: disable=too-many-arguments, too-many-branches
"""For old schema1 config files we deduce some information which was not explicitly encoded."""

# TODO: remove after PR #642 is merged in lightning
# NOTE: we mark GlobalPhase as controllables even if `quantum_control` flag is False. This
# We mark GlobalPhase as controllables even if `quantum_control` flag is False. This
# is what actual device reports.
if device_name == "lightning.kokkos": # pragma: nocover
native_gate_props["GlobalPhase"] = OperationProperties(
invertible=False, controllable=True, differentiable=True
)
sergei-mironov marked this conversation as resolved.
Show resolved Hide resolved

# TODO: remove after PR #642 is merged in lightning
if device_name == "lightning.kokkos": # pragma: nocover
observable_props["Projector"] = OperationProperties(
invertible=False, controllable=False, differentiable=False
sergei-mironov marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
1 change: 0 additions & 1 deletion frontend/test/pytest/test_custom_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"PSWAP",
"SISWAP",
"SQISW",
"CPhase",
"BasisState",
"QubitStateVector",
"StatePrep",
Expand Down
1 change: 0 additions & 1 deletion runtime/lib/backend/dummy/dummy_device.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ CY = { properties = [ "invertible", "differentiable" ] }
CZ = { properties = [ "invertible", "differentiable" ] }
PhaseShift = { properties = [ "controllable", "invertible", "differentiable" ] }
ControlledPhaseShift = { properties = [ "invertible", "differentiable" ] }
CPhase = { properties = [ "invertible", "differentiable" ] }
RX = { properties = [ "controllable", "invertible", "differentiable" ] }
RY = { properties = [ "controllable", "invertible", "differentiable" ] }
RZ = { properties = [ "controllable", "invertible", "differentiable" ] }
Expand Down
Loading