def __init__(self, qubit_map, initial_state: Union[int, 'cirq.StabilizerStateChForm'] = 0): self.qubit_map = qubit_map self.n = len(qubit_map) self.ch_form = (initial_state if isinstance( initial_state, clifford.StabilizerStateChForm) else clifford.StabilizerStateChForm(self.n, initial_state))
def __init__(self, qubit_map, initial_state=0): self.qubit_map = qubit_map self.n = len(qubit_map) self.ch_form = clifford.StabilizerStateChForm(self.n, initial_state)