29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
---
|
||
title: save_state
|
||
description: API reference for qiskit.providers.aer.library.save_state
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: function
|
||
python_api_name: qiskit.providers.aer.library.save_state
|
||
---
|
||
|
||
# qiskit.providers.aer.library.save\_state
|
||
|
||
<Function id="qiskit.providers.aer.library.save_state" isDedicatedPage={true} github="https://github.com/qiskit/qiskit-aer/tree/stable/0.8/qiskit/providers/aer/library/save_instructions/save_state.py" signature="save_state(self, label=None, pershot=False, conditional=False)">
|
||
Save the current simulator quantum state.
|
||
|
||
**Parameters**
|
||
|
||
* **label** (*str or None*) – Optional, the key for retrieving saved data from results. If None the key will be the state type of the simulator.
|
||
* **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")
|
||
</Function>
|
||
|