Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, *elements: Operation,
translate: bool = False) -> None:
circ = Circuit(*elements)
if translate:
circ = translate_circuit_to_qsim(circ)
self._circuit = circ
self._cirq = circuit_to_cirq(self._circuit)
self._qsim_circuit = qsimcirq.QSimCircuit(self._cirq)