qat.synthopline.pauli_synth.generate_random_observable
- qat.synthopline.pauli_synth.generate_random_observable(nbqbits: int, nbterms: int)
Generates a random observable with nbterms terms and nbqbits qbits.
- Parameters
nbqbits (int) – the number of qubits
nbterms (int) – the number of terms
- Returns
a QLM observable
- Return type