35 lines
1.3 KiB
Plaintext
35 lines
1.3 KiB
Plaintext
---
|
||
title: save_statevector (v0.26)
|
||
description: API reference for qiskit.providers.aer.library.save_statevector in qiskit v0.26
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: function
|
||
python_api_name: qiskit.providers.aer.library.save_statevector
|
||
---
|
||
|
||
<span id="qiskit-providers-aer-library-save-statevector" />
|
||
|
||
# qiskit.providers.aer.library.save\_statevector
|
||
|
||
<Function id="qiskit.providers.aer.library.save_statevector" 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(self, label='statevector', pershot=False, conditional=False)">
|
||
Save the current simulator quantum state as a statevector.
|
||
|
||
**Parameters**
|
||
|
||
* **pershot** (*bool*) – if True save a list of statevectors for each shot of the simulation \[Default: False].
|
||
* **label** (*str*) – the key for retrieving saved data from results.
|
||
* **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>
|
||
|