About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
qiskit.utils.get_entangler_map
get_entangler_map(map_type, num_qubits, offset=0)
Utility method to get an entangler map among qubits.
Parameters
- 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.
Returns
A map of qubit index to an array of indexes to which this should be entangled
Return type
list
Raises
ValueError – if map_type is not valid.
Was this page helpful?
Report a bug or request content on GitHub.