FullySimCircuit.py#

class Circuit.FullySimCircuit.FullySimCircuit(index: int, filename: str, sine_funcs, rand, logger: Logger, mutation_prob: float)[source]#

A concrete class, the fully simulated circuit that stores its own bitstream in memory

copy_from(other)[source]#

Fully copy the bitstream from the other circuit

Parameters:

other (Circuit) – The other circuit to copy the bitstream from

crossover(parent, crossover_point: int)[source]#

Simulated crossover, pulls first n bits from parent and remaining from self

Parameters:
  • parent (Circuit) – The other circuit the crossover is performed with

  • crossover_point (int) – The index in the editable bitstream the crossover occours at

get_bitstream() list[int][source]#

Returns the full bitstream of the circuit

mutate()[source]#

Mutate the simulation mode circuit

randomize_bitstream()[source]#

Fully randomize the simulation mode circuit