diff --git a/cirq-core/cirq/contrib/quil_import/__init__.py b/cirq-core/cirq/contrib/quil_import/__init__.py deleted file mode 100644 index f411ee48fd9..00000000000 --- a/cirq-core/cirq/contrib/quil_import/__init__.py +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright 2020 The Cirq Developers -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from cirq.contrib.quil_import.quil import circuit_from_quil diff --git a/cirq-core/cirq/contrib/requirements.txt b/cirq-core/cirq/contrib/requirements.txt index 4063f51ae56..648e9273dbf 100644 --- a/cirq-core/cirq/contrib/requirements.txt +++ b/cirq-core/cirq/contrib/requirements.txt @@ -9,7 +9,3 @@ opt_einsum autoray # required for py39 opcodes. numba>=0.53.0 - -# quil import -pyquil~=2.28.2; python_version < "3.7" -pyquil~=3.0.0; python_version >= "3.7" diff --git a/cirq-rigetti/cirq_rigetti/__init__.py b/cirq-rigetti/cirq_rigetti/__init__.py index 4e4a9f4361e..ac81e36f5fe 100644 --- a/cirq-rigetti/cirq_rigetti/__init__.py +++ b/cirq-rigetti/cirq_rigetti/__init__.py @@ -25,6 +25,7 @@ UnsupportedRigettiQCSOperation, UnsupportedRigettiQCSQuantumProcessor, ) +from cirq_rigetti.quil_input import circuit_from_quil # Registers the cirq_rigetti's public classes for JSON serialization. diff --git a/cirq-core/cirq/contrib/quil_import/quil.py b/cirq-rigetti/cirq_rigetti/quil_input.py similarity index 100% rename from cirq-core/cirq/contrib/quil_import/quil.py rename to cirq-rigetti/cirq_rigetti/quil_input.py diff --git a/cirq-core/cirq/contrib/quil_import/quil_test.py b/cirq-rigetti/cirq_rigetti/quil_input_test.py similarity index 99% rename from cirq-core/cirq/contrib/quil_import/quil_test.py rename to cirq-rigetti/cirq_rigetti/quil_input_test.py index 34cbda562c8..453c0551ca7 100644 --- a/cirq-core/cirq/contrib/quil_import/quil_test.py +++ b/cirq-rigetti/cirq_rigetti/quil_input_test.py @@ -19,7 +19,7 @@ from pyquil.simulation.tools import program_unitary from cirq import Circuit, LineQubit -from cirq.contrib.quil_import.quil import ( +from cirq_rigetti.quil_input import ( UndefinedQuilGate, UnsupportedQuilInstruction, circuit_from_quil,