qiskit-documentation/docs/api/qiskit/0.31/qiskit.aqua.utils.get_entan...

35 lines
1.4 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: get_entangler_map (v0.31)
description: API reference for qiskit.aqua.utils.get_entangler_map in qiskit v0.31
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.aqua.utils.get_entangler_map
---
<span id="qiskit-aqua-utils-get-entangler-map" />
# qiskit.aqua.utils.get\_entangler\_map
<Function id="qiskit.aqua.utils.get_entangler_map" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.9/qiskit/aqua/utils/entangler_map.py" signature="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.
</Function>