Skip to content

Commit

Permalink
Remove Deprecated Quil classes (#5710)
Browse files Browse the repository at this point in the history
- Removes QuilFormatter, QuilOutput, and QuilXQubitGate
    
Changes all typing of QuilFormatter to string.Formatter
  • Loading branch information
dstrain115 authored Jul 11, 2022
1 parent 11aaefc commit e6e62c0
Show file tree
Hide file tree
Showing 20 changed files with 29 additions and 908 deletions.
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

0 comments on commit e6e62c0

Please sign in to comment.