33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
---
|
||
title: set_stabilizer (v0.29)
|
||
description: API reference for qiskit.providers.aer.library.set_stabilizer in qiskit v0.29
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: function
|
||
python_api_name: qiskit.providers.aer.library.set_stabilizer
|
||
---
|
||
|
||
<span id="qiskit-providers-aer-library-set-stabilizer" />
|
||
|
||
# qiskit.providers.aer.library.set\_stabilizer
|
||
|
||
<Function id="qiskit.providers.aer.library.set_stabilizer" isDedicatedPage={true} github="https://github.com/qiskit/qiskit-aer/tree/stable/0.8/qiskit/providers/aer/library/set_instructions/set_stabilizer.py" signature="set_stabilizer(self, state)">
|
||
Set the Clifford stabilizer state of the simulator.
|
||
|
||
**Parameters**
|
||
|
||
**state** ([*Clifford*](qiskit.quantum_info.Clifford "qiskit.quantum_info.Clifford")) – A clifford operator.
|
||
|
||
**Returns**
|
||
|
||
with attached instruction.
|
||
|
||
**Return type**
|
||
|
||
[QuantumCircuit](qiskit.circuit.QuantumCircuit "qiskit.circuit.QuantumCircuit")
|
||
|
||
**Raises**
|
||
|
||
**ExtensionError** – If the state is the incorrect size for the current circuit.
|
||
</Function>
|
||
|