qiskit.utils.get_entangler_map¶
- get_entangler_map(map_type, num_qubits, offset=0)[fuente]¶
Utility method to get an entangler map among qubits.
- Parámetros
map_type (str) – “full” entangles each qubit with all the subsequent ones “linear” entangles each qubit with the next “sca” (shifted circular alternating entanglement) is a circular entanglement where the “long” entanglement is shifted by one position every block and every block the role or control/target qubits alternate
num_qubits (int) – Number of qubits for which the map is needed
offset (int) – Some map_types (e.g. “sca”) can shift the gates in the entangler map by the specified integer offset.
- Devuelve
A map of qubit index to an array of indexes to which this should be entangled
- Tipo del valor devuelto
list
- Muestra
ValueError – if map_type is not valid.