Template Function Pennylane::LightningQubit::Measures::probs_bitshift_generic

Function Documentation

template<class PrecisionT>
auto Pennylane::LightningQubit::Measures::probs_bitshift_generic(const std::complex<PrecisionT> *arr, const std::size_t num_qubits, const std::vector<std::size_t> &wires)

Probabilities for a subset of the full system.

Template Parameters

PrecisionT – State vector precision.

Parameters
  • arr – Pointer to the state vector data.

  • num_qubits – Number of qubits.

  • wires – Wires will restrict probabilities to a subset of the full system.

Returns

Floating point std::vector with probabilities.