Skip to content

Commit

Permalink
Remove a batch of deprecated optimizers (quantumlib#5727)
Browse files Browse the repository at this point in the history
These optimizers have all been migrated to transformers:

Removes:  DropEmptyMoments, DropNegligible, EjectPhasedPauli, EjectZ, ExpandComposite, MergeInteractions, MergeInteractionsAbc, MergeInteractionsToSqrtIswap, and SynchronizeTerminalMeasurements.
  • Loading branch information
dstrain115 authored and rht committed May 1, 2023
1 parent c070e89 commit 97236e1
Show file tree
Hide file tree
Showing 19 changed files with 1 addition and 2,451 deletions.
14 changes: 1 addition & 13 deletions cirq-core/cirq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,19 +327,7 @@
ZZPowGate,
)

from cirq.optimizers import (
AlignLeft,
AlignRight,
ConvertToCzAndSingleGates,
DropEmptyMoments,
DropNegligible,
EjectPhasedPaulis,
EjectZ,
ExpandComposite,
MergeInteractions,
MergeInteractionsToSqrtIswap,
SynchronizeTerminalMeasurements,
)
from cirq.optimizers import AlignLeft, AlignRight, ConvertToCzAndSingleGates

from cirq.transformers import (
align_left,
Expand Down
16 changes: 0 additions & 16 deletions cirq-core/cirq/optimizers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,8 @@

from cirq.optimizers.align_right import AlignRight

from cirq.optimizers.drop_empty_moments import DropEmptyMoments

from cirq.optimizers.drop_negligible import DropNegligible

from cirq.optimizers.convert_to_cz_and_single_gates import ConvertToCzAndSingleGates

from cirq.optimizers.eject_phased_paulis import EjectPhasedPaulis

from cirq.optimizers.eject_z import EjectZ

from cirq.optimizers.expand_composite import ExpandComposite

from cirq.optimizers.merge_interactions import MergeInteractions

from cirq.optimizers.merge_interactions_to_sqrt_iswap import MergeInteractionsToSqrtIswap

from cirq.optimizers.synchronize_terminal_measurements import SynchronizeTerminalMeasurements

from cirq.transformers.analytical_decompositions import (
compute_cphase_exponents_for_fsim_decomposition,
decompose_cphase_into_two_fsim,
Expand Down
30 changes: 0 additions & 30 deletions cirq-core/cirq/optimizers/drop_empty_moments.py

This file was deleted.

33 changes: 0 additions & 33 deletions cirq-core/cirq/optimizers/drop_empty_moments_test.py

This file was deleted.

45 changes: 0 additions & 45 deletions cirq-core/cirq/optimizers/drop_negligible.py

This file was deleted.

59 changes: 0 additions & 59 deletions cirq-core/cirq/optimizers/drop_negligible_test.py

This file was deleted.

50 changes: 0 additions & 50 deletions cirq-core/cirq/optimizers/eject_phased_paulis.py

This file was deleted.

Loading

0 comments on commit 97236e1

Please sign in to comment.