Circuit.check_valid_operation

Circuit.check_valid_operation(op)[source]

Check that op can be applied to the circuit.