Open DennisKleinhans opened 1 month ago
Hey @DennisKleinhans thanks for your contribution! Please make sure, that all tests, notebooks and docs work 😄 Cheers Moritz
Please check random_encoding_circuit.py, random_layered_encoding_circuit.py, pruned_encoding_circuit.py and transpiled_encpding_circuit.py
Changes Made
1. Delayed Initialization of High-Level Methods
num_features
parameter is no longer required during the instantiation of high-level methods.num_features
is not provided, the complete initialization of the high-level method is postponed until thefit
method is called, allowing the actual number of features to be known.num_features
is provided during instantiation, the high-level method will be fully initialized immediately.2. New
num_encoding_slots
Property forEncodingCircuit
num_encoding_slots
has been introduced for eachEncodingCircuit
, which calculates the number of encoding slots individually.get_circuit
method, there is now a check to ensure that the number of provided features matches the number of available encoding slots.EncodingSlotsMismatchError
is raised.closes #266