Coverage report: 95%

Files Functions Classes

coverage.py v7.13.4, created at 2026-09-03 21:15 +0000

File function   statements missing excluded   coverage
qml_essentials / __init__.py (no function)   0 0 0   100%
qml_essentials / algebra.py lie_closure_paulis   23 0 0   100%
qml_essentials / algebra.py lie_closure_paulis._word   1 0 0   100%
qml_essentials / algebra.py lie_closure_paulis._add   5 0 0   100%
qml_essentials / algebra.py lie_closure_matrices   14 0 0   100%
qml_essentials / algebra.py lie_closure_matrices.add   11 0 0   100%
qml_essentials / algebra.py matchgate_generators   11 0 0   100%
qml_essentials / algebra.py matchgate_basis   15 0 0   100%
qml_essentials / algebra.py dim_so2n   1 0 0   100%
qml_essentials / algebra.py g_purity_from_basis   1 0 0   100%
qml_essentials / algebra.py g_purity_matrix   2 0 0   100%
qml_essentials / algebra.py symmetric_pauli_sum   12 0 0   100%
qml_essentials / algebra.py sn_equivariant_generators   3 1 0   67%
qml_essentials / algebra.py sn_equivariant_observable   3 1 0   67%
qml_essentials / algebra.py (no function)   14 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.n_pulse_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   6 1 0   83%
qml_essentials / ansaetze.py Circuit._build   8 1 0   88%
qml_essentials / ansaetze.py Circuit.build   1 1 0   0%
qml_essentials / ansaetze.py Circuit.__call__   1 0 0   100%
qml_essentials / ansaetze.py DeclarativeCircuit.structure   1 1 0   0%
qml_essentials / ansaetze.py DeclarativeCircuit.n_params_per_layer   1 0 0   100%
qml_essentials / ansaetze.py DeclarativeCircuit.n_pulse_params_per_layer   1 0 0   100%
qml_essentials / ansaetze.py DeclarativeCircuit.get_control_indices   14 1 0   93%
qml_essentials / ansaetze.py DeclarativeCircuit.build   5 0 0   100%
qml_essentials / ansaetze.py Block.__init__   9 0 0   100%
qml_essentials / ansaetze.py Block.__repr__   3 3 0   0%
qml_essentials / ansaetze.py Block.is_entangling   1 0 0   100%
qml_essentials / ansaetze.py Block.is_rotational   1 0 0   100%
qml_essentials / ansaetze.py Block.is_controlled_rotation   1 0 0   100%
qml_essentials / ansaetze.py Block.enough_qubits   6 1 0   83%
qml_essentials / ansaetze.py Block.n_params   13 0 0   100%
qml_essentials / ansaetze.py Block.n_pulse_params   9 0 0   100%
qml_essentials / ansaetze.py Block.apply   25 0 0   100%
qml_essentials / ansaetze.py Ansaetze.get_available   4 0 0   100%
qml_essentials / ansaetze.py Ansaetze.No_Ansatz.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.GHZ.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Circuit_1.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Circuit_2.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Circuit_3.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Circuit_4.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Circuit_5.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Circuit_6.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Circuit_7.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Circuit_8.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Circuit_9.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Circuit_10.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Circuit_13.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Circuit_14.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Circuit_15.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Circuit_16.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Circuit_17.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Circuit_18.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Circuit_19.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Circuit_20.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.No_Entangling.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Hardware_Efficient.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Strongly_Entangling.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Permutation_Equivariant.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.Matchgate.structure   1 0 0   100%
qml_essentials / ansaetze.py Ansaetze.XY_Brickwork.structure   1 0 0   100%
qml_essentials / ansaetze.py _greedy_golomb   19 1 0   95%
qml_essentials / ansaetze.py golomb_ruler   5 1 0   80%
qml_essentials / ansaetze.py GolombEncoding   9 1 0   89%
qml_essentials / ansaetze.py Encoding.__init__   13 2 0   85%
qml_essentials / ansaetze.py Encoding.__len__   1 0 0   100%
qml_essentials / ansaetze.py Encoding.__getitem__   1 0 0   100%
qml_essentials / ansaetze.py Encoding.get_n_freqs   1 0 0   100%
qml_essentials / ansaetze.py Encoding.get_spectrum   19 2 0   89%
qml_essentials / ansaetze.py Encoding.get_weights   9 1 0   89%
qml_essentials / ansaetze.py Encoding.hamming   1 0 0   100%
qml_essentials / ansaetze.py Encoding.binary   2 0 0   100%
qml_essentials / ansaetze.py Encoding.binary._enc   1 0 0   100%
qml_essentials / ansaetze.py Encoding.ternary   2 0 0   100%
qml_essentials / ansaetze.py Encoding.ternary._enc   1 0 0   100%
qml_essentials / ansaetze.py Encoding.is_golomb   1 0 0   100%
qml_essentials / ansaetze.py Encoding.golomb   2 0 0   100%
qml_essentials / ansaetze.py Encoding.golomb._enc   1 0 0   100%
qml_essentials / ansaetze.py (no function)   143 0 0   100%
qml_essentials / coefficients.py Coefficients.get_spectrum   24 2 0   92%
qml_essentials / coefficients.py Coefficients._fourier_transform   9 0 0   100%
qml_essentials / coefficients.py Coefficients.get_psd   3 0 0   100%
qml_essentials / coefficients.py Coefficients.get_psd.abs2   1 0 0   100%
qml_essentials / coefficients.py Coefficients.evaluate_Fourier_series   26 1 0   96%
qml_essentials / coefficients.py Coefficients.evaluate_Fourier_series.flatten_grid   5 0 0   100%
qml_essentials / coefficients.py FourierTree.__init__   16 0 0   100%
qml_essentials / coefficients.py FourierTree._ensure_structure   4 0 0   100%
qml_essentials / coefficients.py FourierTree._single_param_set   5 0 0   100%
qml_essentials / coefficients.py FourierTree._build_canonical_tape   5 0 0   100%
qml_essentials / coefficients.py FourierTree._canonical_parameters   2 0 0   100%
qml_essentials / coefficients.py FourierTree._detect_inputs   29 0 0   100%
qml_essentials / coefficients.py FourierTree._build_leaf_arrays   13 0 0   100%
qml_essentials / coefficients.py FourierTree._collect_leaves   18 0 0   100%
qml_essentials / coefficients.py FourierTree._early_stopping_possible   3 0 0   100%
qml_essentials / coefficients.py FourierTree._build_spectrum_structure   46 2 0   96%
qml_essentials / coefficients.py FourierTree._binomial_terms   6 0 0   100%
qml_essentials / coefficients.py FourierTree._safe_pow   3 0 0   100%
qml_essentials / coefficients.py FourierTree._leaf_factors   11 0 0   100%
qml_essentials / coefficients.py FourierTree.__call__   18 2 0   89%
qml_essentials / coefficients.py FourierTree.get_spectrum   6 0 0   100%
qml_essentials / coefficients.py FourierTree.get_exact_support   21 3 0   86%
qml_essentials / coefficients.py FourierTree._support_dp   37 0 0   100%
qml_essentials / coefficients.py FourierTree._support_dp.encode   5 0 0   100%
qml_essentials / coefficients.py FourierTree._support_dp.parity   1 0 0   100%
qml_essentials / coefficients.py FourierTree._support_dp.dp   21 0 0   100%
qml_essentials / coefficients.py FourierTree._dp_mask_to_support   20 1 0   95%
qml_essentials / coefficients.py FourierTree._expansion_support   15 0 0   100%
qml_essentials / coefficients.py FourierTree._combine_roots   20 0 0   100%
qml_essentials / coefficients.py FCC.get_fcc   17 0 0   100%
qml_essentials / coefficients.py FCC.get_fourier_fingerprint   33 2 0   94%
qml_essentials / coefficients.py FCC.calculate_fcc   1 0 0   100%
qml_essentials / coefficients.py FCC._calculate_mask   13 0 0   100%
qml_essentials / coefficients.py FCC._flat_frequencies   5 0 0   100%
qml_essentials / coefficients.py FCC._calculate_coefficients   9 1 0   89%
qml_essentials / coefficients.py FCC._correlate   11 1 0   91%
qml_essentials / coefficients.py FCC._covariance   16 0 0   100%
qml_essentials / coefficients.py FCC._complex_pearson   23 0 0   100%
qml_essentials / coefficients.py FCC._pearson   8 0 0   100%
qml_essentials / coefficients.py FCC._spearman   33 1 0   97%
qml_essentials / coefficients.py FCC._weighting_linear   7 7 0   0%
qml_essentials / coefficients.py FCC._weighting_mean   6 0 0   100%
qml_essentials / coefficients.py Datasets.generate_fourier_series   5 0 0   100%
qml_essentials / coefficients.py Datasets.construct_domain_samples   1 0 0   100%
qml_essentials / coefficients.py Datasets.construct_frequencies   16 0 0   100%
qml_essentials / coefficients.py Datasets._offsets   3 0 0   100%
qml_essentials / coefficients.py Datasets._displace_indices   7 0 0   100%
qml_essentials / coefficients.py Datasets._displace_generators   13 0 0   100%
qml_essentials / coefficients.py Datasets._generator_etas   10 1 0   90%
qml_essentials / coefficients.py Datasets.generator_etas   5 0 0   100%
qml_essentials / coefficients.py Datasets.construct_coefficients   5 0 0   100%
qml_essentials / coefficients.py Datasets.calculate_values   1 0 0   100%
qml_essentials / coefficients.py Datasets.uniform_circle   4 0 0   100%
qml_essentials / coefficients.py (no function)   102 0 0   100%
qml_essentials / entanglement.py Entanglement.meyer_wallach   11 1 0   91%
qml_essentials / entanglement.py Entanglement._compute_meyer_wallach_meas   3 0 0   100%
qml_essentials / entanglement.py Entanglement._compute_meyer_wallach_meas._f   6 0 0   100%
qml_essentials / entanglement.py Entanglement.bell_measurements   34 4 0   88%
qml_essentials / entanglement.py Entanglement.bell_measurements._bell_circuit   7 0 0   100%
qml_essentials / entanglement.py Entanglement.bell_measurements._bell_circuit.vari   1 0 0   100%
qml_essentials / entanglement.py Entanglement.relative_entropy   24 3 0   88%
qml_essentials / entanglement.py Entanglement._compute_log_density   5 0 0   100%
qml_essentials / entanglement.py Entanglement._compute_rel_entropies   14 0 0   100%
qml_essentials / entanglement.py Entanglement._compute_rel_entropies._f   3 0 0   100%
qml_essentials / entanglement.py Entanglement.entanglement_of_formation   12 2 0   83%
qml_essentials / entanglement.py Entanglement._compute_entanglement_of_formation   7 4 0   43%
qml_essentials / entanglement.py Entanglement.concentratable_entanglement   24 2 0   92%
qml_essentials / entanglement.py Entanglement.concentratable_entanglement._swap_test_circuit   10 0 0   100%
qml_essentials / entanglement.py Entanglement.concentratable_entanglement._swap_test_circuit.vari   1 0 0   100%
qml_essentials / entanglement.py Entanglement.concentratable_entanglement_estimation   28 2 0   93%
qml_essentials / entanglement.py Entanglement.concentratable_entanglement_estimation._bell_basis_measurement   7 0 0   100%
qml_essentials / entanglement.py Entanglement.concentratable_entanglement_estimation._bell_basis_measurement.vari   1 0 0   100%
qml_essentials / entanglement.py sample_random_separable_states   6 0 0   100%
qml_essentials / entanglement.py (no function)   33 0 0   100%
qml_essentials / expressibility.py Expressibility._sample_state_fidelities   7 0 0   100%
qml_essentials / expressibility.py Expressibility.state_fidelities   8 0 0   100%
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 0 0   100%
qml_essentials / expressibility.py Expressibility.kullback_leibler_divergence   7 1 0   86%
qml_essentials / expressibility.py Expressibility.kl_divergence_to_haar   3 0 0   100%
qml_essentials / expressibility.py (no function)   24 0 0   100%
qml_essentials / model.py Model.__init__   69 2 0   97%
qml_essentials / model.py Model.noise_params   1 0 0   100%
qml_essentials / model.py Model.noise_params   1 0 0   100%
qml_essentials / model.py Model._normalize_noise_params   22 4 0   82%
qml_essentials / model.py Model.output_qubit   2 2 0   0%
qml_essentials / model.py Model.output_qubit   2 0 0   100%
qml_essentials / model.py Model.observables   1 1 0   0%
qml_essentials / model.py Model.observables   20 2 0   90%
qml_essentials / model.py Model.execution_type   1 0 0   100%
qml_essentials / model.py Model.execution_type   10 3 0   70%
qml_essentials / model.py Model._compute_result_shape   11 1 0   91%
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.params   1 0 0   100%
qml_essentials / model.py Model.params   3 0 0   100%
qml_essentials / model.py Model.enc_params   1 0 0   100%
qml_essentials / model.py Model.enc_params   1 0 0   100%
qml_essentials / model.py Model.pulse_params   1 0 0   100%
qml_essentials / model.py Model.pulse_params   1 0 0   100%
qml_essentials / model.py Model.enc_pulse_params   1 0 0   100%
qml_essentials / model.py Model.enc_pulse_params   1 0 0   100%
qml_essentials / model.py Model.data_reupload   1 0 0   100%
qml_essentials / model.py Model.data_reupload   19 0 0   100%
qml_essentials / model.py Model.degree   1 0 0   100%
qml_essentials / model.py Model.degree   1 0 0   100%
qml_essentials / model.py Model.frequencies   1 0 0   100%
qml_essentials / model.py Model.frequencies   1 0 0   100%
qml_essentials / model.py Model.exact_spectrum   17 1 0   94%
qml_essentials / model.py Model.has_dru   1 0 0   100%
qml_essentials / model.py Model.all_qubit_measurement   1 0 0   100%
qml_essentials / model.py Model.batch_shape   4 4 0   0%
qml_essentials / model.py Model.eff_batch_shape   1 1 0   0%
qml_essentials / model.py Model._eff_batch_shape_of   2 0 0   100%
qml_essentials / model.py Model.initialize_params   20 1 0   95%
qml_essentials / model.py Model.initialize_params.set_control_params   7 1 0   86%
qml_essentials / model.py Model.next_key   2 0 0   100%
qml_essentials / model.py Model.transform_input   1 0 0   100%
qml_essentials / model.py Model._iec   19 0 0   100%
qml_essentials / model.py Model._debatch   3 0 0   100%
qml_essentials / model.py Model._self_fallback   5 1 0   80%
qml_essentials / model.py Model._variational   26 0 0   100%
qml_essentials / model.py Model._build_obs   18 1 0   94%
qml_essentials / model.py Model._apply_state_prep_noise   4 0 0   100%
qml_essentials / model.py Model._apply_general_noise   18 0 0   100%
qml_essentials / model.py Model._get_circuit_depth   22 2 0   91%
qml_essentials / model.py Model.draw   11 1 0   91%
qml_essentials / model.py Model.draw_pulse   11 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._params_validation   9 0 0   100%
qml_essentials / model.py Model._pulse_params_validation   9 1 0   89%
qml_essentials / model.py Model._enc_pulse_params_validation   9 2 0   78%
qml_essentials / model.py Model._resolve_gate_mode   18 0 0   100%
qml_essentials / model.py Model._enc_params_validation   13 2 0   85%
qml_essentials / model.py Model._inputs_validation   17 1 0   94%
qml_essentials / model.py Model._postprocess_res   5 3 0   40%
qml_essentials / model.py Model._assimilate_batch   43 0 0   100%
qml_essentials / model.py Model._requires_density   11 11 0   0%
qml_essentials / model.py Model._is_stochastic   2 0 0   100%
qml_essentials / model.py Model._args_are_traced   1 0 0   100%
qml_essentials / model.py Model._observable_id   6 1 0   83%
qml_essentials / model.py Model._structural_fingerprint   4 0 0   100%
qml_essentials / model.py Model.__call__   1 0 0   100%
qml_essentials / model.py Model.apply   17 2 0   88%
qml_essentials / model.py Model._forward   22 0 0   100%
qml_essentials / model.py Model._execute_forward   27 1 0   96%
qml_essentials / model.py (no function)   118 0 0   100%
qml_essentials / pauli.py PauliCircuit.from_parameterised_circuit   8 1 0   88%
qml_essentials / pauli.py PauliCircuit.get_parameters   1 0 0   100%
qml_essentials / pauli.py PauliCircuit._infer_n_qubits   5 0 0   100%
qml_essentials / pauli.py PauliCircuit.commute_all_cliffords_to_the_end   14 0 0   100%
qml_essentials / pauli.py PauliCircuit.get_clifford_pauli_gates   11 2 0   82%
qml_essentials / pauli.py PauliCircuit._is_skippable   1 0 0   100%
qml_essentials / pauli.py PauliCircuit._is_clifford   1 0 0   100%
qml_essentials / pauli.py PauliCircuit._is_pauli_rotation   1 0 0   100%
qml_essentials / pauli.py PauliCircuit._evolve_clifford_rotation   10 0 0   100%
qml_essentials / pauli.py PauliCircuit._remove_identities_from_paulistr   7 0 0   100%
qml_essentials / pauli.py PauliCircuit.cliffords_in_observable   7 0 0   100%
qml_essentials / pauli.py PauliCircuit._pauli_operation_from_word   10 2 0   80%
qml_essentials / pauli.py (no function)   34 0 0   100%
qml_essentials / random_sampling.py _ginibre   4 0 0   100%
qml_essentials / random_sampling.py _haar_unitary   5 0 0   100%
qml_essentials / random_sampling.py _normalize_density   2 0 0   100%
qml_essentials / random_sampling.py DensityMatrix.induced   10 2 0   80%
qml_essentials / random_sampling.py DensityMatrix.induced._sample   3 0 0   100%
qml_essentials / random_sampling.py DensityMatrix.hilbert_schmidt   1 0 0   100%
qml_essentials / random_sampling.py DensityMatrix.bures   7 1 0   86%
qml_essentials / random_sampling.py DensityMatrix.bures._sample   6 0 0   100%
qml_essentials / random_sampling.py DensityMatrix.eigen   9 0 0   100%
qml_essentials / random_sampling.py DensityMatrix.eigen._sample   7 0 0   100%
qml_essentials / random_sampling.py DensityMatrix._validate_eigenvalues   9 0 0   100%
qml_essentials / random_sampling.py (no function)   19 0 0   100%
qml_essentials / states.py dicke_state   8 1 0   88%
qml_essentials / states.py haar_state   3 0 0   100%
qml_essentials / states.py graph_state_vector   7 0 0   100%
qml_essentials / states.py matching_edges   1 0 0   100%
qml_essentials / states.py path_edges   1 0 0   100%
qml_essentials / states.py complete_edges   1 0 0   100%
qml_essentials / states.py (no function)   8 0 0   100%
qml_essentials / topologies.py Topology.stairs   26 1 0   96%
qml_essentials / topologies.py Topology.bricks   3 0 0   100%
qml_essentials / topologies.py Topology.graph   10 0 0   100%
qml_essentials / topologies.py Topology.all_pairs   1 0 0   100%
qml_essentials / topologies.py Topology.all_to_all   6 0 0   100%
qml_essentials / topologies.py (no function)   15 0 0   100%
qml_essentials / trainability.py ansatz_layer   3 3 0   0%
qml_essentials / trainability.py ansatz_layer.layer   1 1 0   0%
qml_essentials / trainability.py loss_variance   22 7 0   68%
qml_essentials / trainability.py loss_variance.circ   4 0 0   100%
qml_essentials / trainability.py (no function)   10 0 0   100%
Total     2572 139 0   95%

No items found using the specified filter.