qiskit-documentation/docs/api/qiskit/0.40/qiskit_aer.library.save_sta...

33 lines
1.2 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_stabilizer
description: API reference for qiskit_aer.library.save_stabilizer
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit_aer.library.save_stabilizer
---
# qiskit\_aer.library.save\_stabilizer
<Function id="qiskit_aer.library.save_stabilizer" isDedicatedPage={true} github="https://github.com/qiskit/qiskit-aer/tree/stable/0.11/qiskit_aer/library/save_instructions/save_stabilizer.py" signature="save_stabilizer(self, label='stabilizer', pershot=False, conditional=False)">
Save the current stabilizer simulator quantum state as a StabilizerState.
**Parameters**
* **label** (*str*) the key for retrieving saved data from results.
* **pershot** (*bool*) if True save a list of StabilizerStates 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>