We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce31720 commit 840bb2bCopy full SHA for 840bb2b
2 files changed
cirq-core/cirq/circuits/circuit.py
@@ -1867,7 +1867,7 @@ def freeze(self) -> 'cirq.FrozenCircuit':
1867
from cirq.circuits.frozen_circuit import FrozenCircuit
1868
1869
if self._frozen is None:
1870
- self._frozen = FrozenCircuit.from_moments(*self._moments)
+ self._frozen = FrozenCircuit._from_moments(self._moments)
1871
return self._frozen
1872
1873
def unfreeze(self, copy: bool = True) -> 'cirq.Circuit':
cirq-core/cirq/circuits/frozen_circuit.py
@@ -84,7 +84,7 @@ def freeze(self) -> 'cirq.FrozenCircuit':
84
return self
85
86
87
- return Circuit.from_moments(*self)
+ return Circuit._from_moments(self._moments)
88
89
@property
90
def tags(self) -> Tuple[Hashable, ...]:
0 commit comments