|
30 | 30 |
|
31 | 31 | import cirq
|
32 | 32 | from cirq import protocols, value
|
33 |
| -from cirq._compat import deprecated, proper_repr |
| 33 | +from cirq._compat import proper_repr |
34 | 34 | from cirq.ops import gate_features, raw_types
|
35 | 35 |
|
36 | 36 |
|
@@ -97,26 +97,10 @@ def __init__(self, theta: 'cirq.TParamVal', phi: 'cirq.TParamVal') -> None:
|
97 | 97 | def theta(self) -> 'cirq.TParamVal':
|
98 | 98 | return self._theta
|
99 | 99 |
|
100 |
| - @theta.setter # type: ignore |
101 |
| - @deprecated( |
102 |
| - deadline="v0.15", |
103 |
| - fix="The mutators of this class are deprecated, instantiate a new object instead.", |
104 |
| - ) |
105 |
| - def theta(self, theta: 'cirq.TParamVal'): |
106 |
| - self._theta = theta |
107 |
| - |
108 | 100 | @property
|
109 | 101 | def phi(self) -> 'cirq.TParamVal':
|
110 | 102 | return self._phi
|
111 | 103 |
|
112 |
| - @phi.setter # type: ignore |
113 |
| - @deprecated( |
114 |
| - deadline="v0.15", |
115 |
| - fix="The mutators of this class are deprecated, instantiate a new object instead.", |
116 |
| - ) |
117 |
| - def phi(self, phi: 'cirq.TParamVal'): |
118 |
| - self._phi = phi |
119 |
| - |
120 | 104 | def _num_qubits_(self) -> int:
|
121 | 105 | return 2
|
122 | 106 |
|
@@ -303,62 +287,22 @@ def __init__(
|
303 | 287 | def theta(self) -> 'cirq.TParamVal':
|
304 | 288 | return self._theta
|
305 | 289 |
|
306 |
| - @theta.setter # type: ignore |
307 |
| - @deprecated( |
308 |
| - deadline="v0.15", |
309 |
| - fix="The mutators of this class are deprecated, instantiate a new object instead.", |
310 |
| - ) |
311 |
| - def theta(self, theta: 'cirq.TParamVal'): |
312 |
| - self._theta = theta |
313 |
| - |
314 | 290 | @property
|
315 | 291 | def zeta(self) -> 'cirq.TParamVal':
|
316 | 292 | return self._zeta
|
317 | 293 |
|
318 |
| - @zeta.setter # type: ignore |
319 |
| - @deprecated( |
320 |
| - deadline="v0.15", |
321 |
| - fix="The mutators of this class are deprecated, instantiate a new object instead.", |
322 |
| - ) |
323 |
| - def zeta(self, zeta: 'cirq.TParamVal'): |
324 |
| - self._zeta = zeta |
325 |
| - |
326 | 294 | @property
|
327 | 295 | def chi(self) -> 'cirq.TParamVal':
|
328 | 296 | return self._chi
|
329 | 297 |
|
330 |
| - @chi.setter # type: ignore |
331 |
| - @deprecated( |
332 |
| - deadline="v0.15", |
333 |
| - fix="The mutators of this class are deprecated, instantiate a new object instead.", |
334 |
| - ) |
335 |
| - def chi(self, chi: 'cirq.TParamVal'): |
336 |
| - self._chi = chi |
337 |
| - |
338 | 298 | @property
|
339 | 299 | def gamma(self) -> 'cirq.TParamVal':
|
340 | 300 | return self._gamma
|
341 | 301 |
|
342 |
| - @gamma.setter # type: ignore |
343 |
| - @deprecated( |
344 |
| - deadline="v0.15", |
345 |
| - fix="The mutators of this class are deprecated, instantiate a new object instead.", |
346 |
| - ) |
347 |
| - def gamma(self, gamma: 'cirq.TParamVal'): |
348 |
| - self._gamma = gamma |
349 |
| - |
350 | 302 | @property
|
351 | 303 | def phi(self) -> 'cirq.TParamVal':
|
352 | 304 | return self._phi
|
353 | 305 |
|
354 |
| - @phi.setter # type: ignore |
355 |
| - @deprecated( |
356 |
| - deadline="v0.15", |
357 |
| - fix="The mutators of this class are deprecated, instantiate a new object instead.", |
358 |
| - ) |
359 |
| - def phi(self, phi: 'cirq.TParamVal'): |
360 |
| - self._phi = phi |
361 |
| - |
362 | 306 | @staticmethod
|
363 | 307 | def from_fsim_rz(
|
364 | 308 | theta: 'cirq.TParamVal',
|
|
0 commit comments