Coverage report: 85%

Files Functions Classes

coverage.py v7.6.12, created at 2025-03-07 14:54 +0000

File function statements missing excluded coverage
qml_essentials/__init__.py (no function) 0 0 0 100%
qml_essentials/ansaetze.py Circuit.__init__ 1 0 0 100%
qml_essentials/ansaetze.py Circuit.n_params_per_layer 1 1 0 0%
qml_essentials/ansaetze.py Circuit.get_control_indices 1 1 0 0%
qml_essentials/ansaetze.py Circuit.get_control_angles 4 4 0 0%
qml_essentials/ansaetze.py Circuit.build 1 1 0 0%
qml_essentials/ansaetze.py Circuit.__call__ 1 0 0 100%
qml_essentials/ansaetze.py Gates.init_rng 1 0 0 100%
qml_essentials/ansaetze.py Gates.Noise 7 0 0 100%
qml_essentials/ansaetze.py Gates.GateError 3 0 0 100%
qml_essentials/ansaetze.py Gates.Rot 6 0 0 100%
qml_essentials/ansaetze.py Gates.RX 2 0 0 100%
qml_essentials/ansaetze.py Gates.RY 3 0 0 100%
qml_essentials/ansaetze.py Gates.RZ 2 0 0 100%
qml_essentials/ansaetze.py Gates.CRX 3 0 0 100%
qml_essentials/ansaetze.py Gates.CRY 3 3 0 0%
qml_essentials/ansaetze.py Gates.CRZ 3 0 0 100%
qml_essentials/ansaetze.py Gates.CX 2 0 0 100%
qml_essentials/ansaetze.py Gates.CY 2 2 0 0%
qml_essentials/ansaetze.py Gates.CZ 2 0 0 100%
qml_essentials/ansaetze.py Gates.H 2 0 0 100%
qml_essentials/ansaetze.py Ansaetze.get_available 1 0 0 100%
qml_essentials/ansaetze.py Ansaetze.No_Ansatz.n_params_per_layer 1 0 0 100%
qml_essentials/ansaetze.py Ansaetze.No_Ansatz.get_control_indices 1 1 0 0%
qml_essentials/ansaetze.py Ansaetze.No_Ansatz.build 1 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Hardware_Efficient.n_params_per_layer 3 1 0 67%
qml_essentials/ansaetze.py Ansaetze.Hardware_Efficient.get_control_indices 1 1 0 0%
qml_essentials/ansaetze.py Ansaetze.Hardware_Efficient.build 15 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Circuit_19.n_params_per_layer 4 2 0 50%
qml_essentials/ansaetze.py Ansaetze.Circuit_19.get_control_indices 3 1 0 67%
qml_essentials/ansaetze.py Ansaetze.Circuit_19.build 10 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Circuit_18.n_params_per_layer 4 2 0 50%
qml_essentials/ansaetze.py Ansaetze.Circuit_18.get_control_indices 3 3 0 0%
qml_essentials/ansaetze.py Ansaetze.Circuit_18.build 10 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Circuit_15.n_params_per_layer 4 2 0 50%
qml_essentials/ansaetze.py Ansaetze.Circuit_15.get_control_indices 1 1 0 0%
qml_essentials/ansaetze.py Ansaetze.Circuit_15.build 13 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Circuit_9.n_params_per_layer 1 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Circuit_9.get_control_indices 1 1 0 0%
qml_essentials/ansaetze.py Ansaetze.Circuit_9.build 9 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Circuit_6.n_params_per_layer 4 2 0 50%
qml_essentials/ansaetze.py Ansaetze.Circuit_6.get_control_indices 3 3 0 0%
qml_essentials/ansaetze.py Ansaetze.Circuit_6.build 18 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Circuit_1.n_params_per_layer 1 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Circuit_1.get_control_indices 1 1 0 0%
qml_essentials/ansaetze.py Ansaetze.Circuit_1.build 6 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Circuit_2.n_params_per_layer 1 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Circuit_2.get_control_indices 1 1 0 0%
qml_essentials/ansaetze.py Ansaetze.Circuit_2.build 9 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Circuit_3.n_params_per_layer 1 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Circuit_3.get_control_indices 1 1 0 0%
qml_essentials/ansaetze.py Ansaetze.Circuit_3.build 10 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Circuit_4.n_params_per_layer 1 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Circuit_4.get_control_indices 1 1 0 0%
qml_essentials/ansaetze.py Ansaetze.Circuit_4.build 10 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Circuit_10.n_params_per_layer 1 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Circuit_10.get_control_indices 1 1 0 0%
qml_essentials/ansaetze.py Ansaetze.Circuit_10.build 12 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Circuit_16.n_params_per_layer 1 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Circuit_16.get_control_indices 1 1 0 0%
qml_essentials/ansaetze.py Ansaetze.Circuit_16.build 13 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Circuit_17.n_params_per_layer 1 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Circuit_17.get_control_indices 1 1 0 0%
qml_essentials/ansaetze.py Ansaetze.Circuit_17.build 13 0 0 100%
qml_essentials/ansaetze.py Ansaetze.Strongly_Entangling.n_params_per_layer 3 1 0 67%
qml_essentials/ansaetze.py Ansaetze.Strongly_Entangling.get_control_indices 1 1 0 0%
qml_essentials/ansaetze.py Ansaetze.Strongly_Entangling.build 13 0 0 100%
qml_essentials/ansaetze.py Ansaetze.No_Entangling.n_params_per_layer 1 0 0 100%
qml_essentials/ansaetze.py Ansaetze.No_Entangling.get_control_indices 1 1 0 0%
qml_essentials/ansaetze.py Ansaetze.No_Entangling.build 4 0 0 100%
qml_essentials/ansaetze.py (no function) 161 0 0 100%
qml_essentials/coefficients.py Coefficients.get_spectrum 11 3 0 73%
qml_essentials/coefficients.py Coefficients._fourier_transform 7 0 0 100%
qml_essentials/coefficients.py Coefficients.get_psd 3 3 0 0%
qml_essentials/coefficients.py Coefficients.get_psd.abs2 1 1 0 0%
qml_essentials/coefficients.py Coefficients.evaluate_Fourier_series 7 0 0 100%
qml_essentials/coefficients.py FourierTree.CoefficientsTreeNode.__init__ 14 0 0 100%
qml_essentials/coefficients.py FourierTree.CoefficientsTreeNode.evaluate 15 0 0 100%
qml_essentials/coefficients.py FourierTree.CoefficientsTreeNode.get_leafs 17 2 0 88%
qml_essentials/coefficients.py FourierTree.__init__ 13 0 0 100%
qml_essentials/coefficients.py FourierTree.__call__ 16 3 0 81%
qml_essentials/coefficients.py FourierTree.build 6 0 0 100%
qml_essentials/coefficients.py FourierTree._get_tree_leafs 6 0 0 100%
qml_essentials/coefficients.py FourierTree.get_spectrum 13 0 0 100%
qml_essentials/coefficients.py FourierTree._freq_terms_to_coeffs 11 4 0 64%
qml_essentials/coefficients.py FourierTree._compute_leaf_factors 8 0 0 100%
qml_essentials/coefficients.py FourierTree._create_tree_node 15 0 0 100%
qml_essentials/coefficients.py FourierTree._create_new_observable 4 0 0 100%
qml_essentials/coefficients.py (no function) 38 0 0 100%
qml_essentials/entanglement.py Entanglement.meyer_wallach 25 2 0 92%
qml_essentials/entanglement.py Entanglement.bell_measurements 23 6 0 74%
qml_essentials/entanglement.py Entanglement.bell_measurements._circuit 7 0 0 100%
qml_essentials/entanglement.py (no function) 12 0 0 100%
qml_essentials/expressibility.py Expressibility._sample_state_fidelities 12 12 0 0%
qml_essentials/expressibility.py Expressibility.state_fidelities 16 16 0 0%
qml_essentials/expressibility.py Expressibility._haar_probability 3 0 0 100%
qml_essentials/expressibility.py Expressibility._sample_haar_integral 6 0 0 100%
qml_essentials/expressibility.py Expressibility.haar_integral 16 3 0 81%
qml_essentials/expressibility.py Expressibility.kullback_leibler_divergence 7 1 0 86%
qml_essentials/expressibility.py (no function) 20 0 0 100%
qml_essentials/model.py Model.__init__ 35 0 0 100%
qml_essentials/model.py Model.as_pauli_circuit 1 0 0 100%
qml_essentials/model.py Model.as_pauli_circuit 5 0 0 100%
qml_essentials/model.py Model.noise_params 1 0 0 100%
qml_essentials/model.py Model.noise_params 27 1 0 96%
qml_essentials/model.py Model.execution_type 1 0 0 100%
qml_essentials/model.py Model.execution_type 9 2 0 78%
qml_essentials/model.py Model.shots 1 0 0 100%
qml_essentials/model.py Model.shots 3 1 0 67%
qml_essentials/model.py Model.initialize_params 18 1 0 94%
qml_essentials/model.py Model.initialize_params.set_control_params 5 1 0 80%
qml_essentials/model.py Model._iec 13 4 0 69%
qml_essentials/model.py Model._circuit 2 0 0 100%
qml_essentials/model.py Model._variational 11 0 0 100%
qml_essentials/model.py Model._observable 20 3 0 85%
qml_essentials/model.py Model._apply_state_prep_noise 4 0 0 100%
qml_essentials/model.py Model._apply_general_noise 18 6 0 67%
qml_essentials/model.py Model._draw 7 1 0 86%
qml_essentials/model.py Model.draw 1 0 0 100%
qml_essentials/model.py Model.__repr__ 1 0 0 100%
qml_essentials/model.py Model.__str__ 1 0 0 100%
qml_essentials/model.py Model.__call__ 1 0 0 100%
qml_essentials/model.py Model._params_validation 6 0 0 100%
qml_essentials/model.py Model._inputs_validation 11 1 0 91%
qml_essentials/model.py Model._forward 37 5 0 86%
qml_essentials/model.py Model.get_specs 4 4 0 0%
qml_essentials/model.py Model.get_circuit_depth 1 1 0 0%
qml_essentials/model.py (no function) 48 0 0 100%
qml_essentials/utils.py PauliCircuit.from_parameterised_circuit 10 0 0 100%
qml_essentials/utils.py PauliCircuit.from_parameterised_circuit.postprocess 1 0 0 100%
qml_essentials/utils.py PauliCircuit.commute_all_cliffords_to_the_end 14 0 0 100%
qml_essentials/utils.py PauliCircuit.get_clifford_pauli_gates 12 0 0 100%
qml_essentials/utils.py PauliCircuit._is_skippable 1 0 0 100%
qml_essentials/utils.py PauliCircuit._is_clifford 1 0 0 100%
qml_essentials/utils.py PauliCircuit._is_pauli_rotation 1 0 0 100%
qml_essentials/utils.py PauliCircuit._evolve_clifford_rotation 14 0 0 100%
qml_essentials/utils.py PauliCircuit._remove_identities_from_paulistr 7 0 0 100%
qml_essentials/utils.py PauliCircuit._evolve_clifford_pauli 6 0 0 100%
qml_essentials/utils.py PauliCircuit._evolve_cliffords_list 7 0 0 100%
qml_essentials/utils.py PauliCircuit._get_paulistring_from_generator 10 0 0 100%
qml_essentials/utils.py PauliCircuit.cliffords_in_observable 5 0 0 100%
qml_essentials/utils.py (no function) 36 0 0 100%
tests/__init__.py (no function) 0 0 0 100%
tests/test_coefficients.py test_coefficients 14 0 0 100%
tests/test_coefficients.py test_coefficients_tree 17 0 0 100%
tests/test_coefficients.py test_oversampling_time 2 0 0 100%
tests/test_coefficients.py test_oversampling_frequency 2 0 0 100%
tests/test_coefficients.py test_shift 3 0 0 100%
tests/test_coefficients.py test_frequencies 3 0 0 100%
tests/test_coefficients.py (no function) 21 0 0 100%
tests/test_entanglement.py get_test_cases 6 6 0 0%
tests/test_entanglement.py test_mw_measure 31 31 0 0%
tests/test_entanglement.py test_no_sampling 2 0 0 100%
tests/test_entanglement.py test_bell_measure 31 31 0 0%
tests/test_entanglement.py test_entangling_measures 6 0 0 100%
tests/test_entanglement.py (no function) 18 0 0 100%
tests/test_expressiblity.py get_test_cases 6 6 0 0%
tests/test_expressiblity.py test_divergence 6 0 0 100%
tests/test_expressiblity.py test_expressibility 28 28 0 0%
tests/test_expressiblity.py test_scaling 5 5 0 0%
tests/test_expressiblity.py (no function) 16 0 0 100%
tests/test_model.py test_parameters 20 5 0 75%
tests/test_model.py test_encoding 5 0 0 100%
tests/test_model.py test_cache 15 3 0 80%
tests/test_model.py test_lightning 3 3 0 0%
tests/test_model.py test_draw 3 0 0 100%
tests/test_model.py test_initialization 4 0 0 100%
tests/test_model.py test_re_initialization 5 0 0 100%
tests/test_model.py test_ansaetze 17 0 0 100%
tests/test_model.py test_ansaetze.custom_ansatz.n_params_per_layer 1 0 0 100%
tests/test_model.py test_ansaetze.custom_ansatz.get_control_indices 1 1 0 0%
tests/test_model.py test_ansaetze.custom_ansatz.build 9 0 0 100%
tests/test_model.py test_available_ansaetze 3 0 0 100%
tests/test_model.py test_multi_input 13 0 0 100%
tests/test_model.py test_dru 4 0 0 100%
tests/test_model.py test_local_state 15 0 0 100%
tests/test_model.py test_local_and_global_meas 8 0 0 100%
tests/test_model.py test_parity 5 0 0 100%
tests/test_model.py test_params_store 4 0 0 100%
tests/test_model.py test_params_store.cost 1 0 0 100%
tests/test_model.py test_pauli_circuit_model 7 0 0 100%
tests/test_model.py (no function) 46 0 0 100%
Total   1607 248 0 85%

No items found using the specified filter.