Skip to content

Commit 47098a2

Browse files
Remove use of .device in cirq-google. (quantumlib#4820)
Next step in quantumlib#4744 . Removes use of device attachment ability in cirq-google. This is a breaking change in the sense that some methods become "more forgiving" which I've highlighted below. Happy to add the tag if people think it's appropriate to label it.
1 parent 3de569a commit 47098a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: cirq/circuits/circuit.py

+2
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@
6767
CIRCUIT_TYPE = TypeVar('CIRCUIT_TYPE', bound='AbstractCircuit')
6868
INT_TYPE = Union[int, np.integer]
6969

70+
_DEVICE_DEP_MESSAGE = 'Attaching devices to circuits will no longer be supported.'
71+
7072

7173
class Alignment(enum.Enum):
7274
# Stop when left ends are lined up.

0 commit comments

Comments
 (0)