qiskit-documentation/docs/api/qiskit/0.29/qiskit.providers.aer.librar...

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: save_statevector_dict (v0.29)
description: API reference for qiskit.providers.aer.library.save_statevector_dict in qiskit v0.29
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.providers.aer.library.save_statevector_dict
---
<span id="qiskit-providers-aer-library-save-statevector-dict" />
# qiskit.providers.aer.library.save\_statevector\_dict
<Function id="qiskit.providers.aer.library.save_statevector_dict" isDedicatedPage={true} github="https://github.com/qiskit/qiskit-aer/tree/stable/0.8/qiskit/providers/aer/library/save_instructions/save_statevector.py" signature="save_statevector_dict(self, label='statevector', pershot=False, conditional=False)">
Save the current simulator quantum state as a statevector as a dict.
**Parameters**
* **label** (*str*) the key for retrieving saved data from results.
* **pershot** (*bool*) if True save a list of statevectors for each shot of the simulation \[Default: False].
* **conditional** (*bool*) if True save pershot data conditional on the current classical register values \[Default: False].
**Returns**
with attached instruction.
**Return type**
[QuantumCircuit](qiskit.circuit.QuantumCircuit "qiskit.circuit.QuantumCircuit")
<Admonition title="Note" type="note">
This instruction is always defined across all qubits in a circuit.
</Admonition>
</Function>