qml.utils¶

Warning

Unless you are a PennyLane or plugin developer, you likely do not need to use these utility functions.

This module contains utilities and auxiliary functions which are shared across the PennyLane submodules.

Functions¶

 expand_vector(vector, original_wires, …) Expand a vector to more wires. Eigenvalues for $$A^{\otimes n}$$, where $$A$$ is Pauli operator, or shares its eigenvalues. sparse_hamiltonian(H[, wires]) Warning: This method is deprecated. unflatten(flat, model) Wrapper for _unflatten().