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 Deprecated Quil classes #5710

Merged
merged 12 commits into from
Jul 11, 2022
Merged
3 changes: 0 additions & 3 deletions cirq-core/cirq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
PointOptimizationSummary,
PointOptimizer,
QasmOutput,
QuilOutput,
TextDiagramDrawer,
Unique,
)
Expand Down Expand Up @@ -606,8 +605,6 @@
qasm,
QasmArgs,
qid_shape,
quil,
QuilFormatter,
read_json_gzip,
read_json,
resolve_parameters,
Expand Down
2 changes: 0 additions & 2 deletions cirq-core/cirq/circuits/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

from cirq.circuits.qasm_output import QasmOutput

from cirq.circuits.quil_output import QuilOutput

from cirq.circuits.circuit import AbstractCircuit, Alignment, Circuit
from cirq.circuits.circuit_dag import CircuitDag, Unique
from cirq.circuits.circuit_operation import CircuitOperation
Expand Down
10 changes: 0 additions & 10 deletions cirq-core/cirq/circuits/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
from cirq.circuits.circuit_operation import CircuitOperation
from cirq.circuits.insert_strategy import InsertStrategy
from cirq.circuits.qasm_output import QasmOutput
from cirq.circuits.quil_output import QuilOutput
from cirq.circuits.text_diagram_drawer import TextDiagramDrawer
from cirq.circuits.moment import Moment
from cirq.protocols import circuit_diagram_info_protocol
Expand Down Expand Up @@ -1311,12 +1310,6 @@ def _to_qasm_output(
version='2.0',
)

def _to_quil_output(
self, qubit_order: 'cirq.QubitOrderOrList' = ops.QubitOrder.DEFAULT
) -> 'cirq.QuilOutput':
qubits = ops.QubitOrder.as_qubit_order(qubit_order).order_for(self.all_qubits())
return QuilOutput(operations=self.all_operations(), qubits=qubits)

def to_qasm(
self,
header: Optional[str] = None,
Expand All @@ -1335,9 +1328,6 @@ def to_qasm(

return str(self._to_qasm_output(header, precision, qubit_order))

def to_quil(self, qubit_order: 'cirq.QubitOrderOrList' = ops.QubitOrder.DEFAULT) -> str:
return str(self._to_quil_output(qubit_order))

def save_qasm(
self,
file_path: Union[str, bytes, int],
Expand Down
236 changes: 0 additions & 236 deletions cirq-core/cirq/circuits/quil_output.py

This file was deleted.

Loading