qiskit-documentation/docs/api/qiskit/0.45/extensions.mdx

49 lines
2.1 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: extensions
description: API reference for qiskit.extensions
in_page_toc_min_heading_level: 2
python_api_type: module
python_api_name: qiskit.extensions
---
<span id="module-qiskit.extensions" />
<span id="qiskit-extensions" />
<span id="quantum-circuit-extensions-qiskit-extensions" />
# Quantum Circuit Extensions
<span id="module-qiskit.extensions" />
`qiskit.extensions`
## Unitary Extensions
| | |
| ---------------------------------------------------------------------------------------------------------------------------------- | --------------------- |
| [`SingleQubitUnitary`](qiskit.extensions.SingleQubitUnitary "qiskit.extensions.SingleQubitUnitary")(unitary\_matrix\[, mode, ...]) | Single-qubit unitary. |
## Simulator Extensions
| | |
| ----------------------------------------------------------------------------------------------------------------- | ------------------------------- |
| [`Snapshot`](qiskit.extensions.Snapshot "qiskit.extensions.Snapshot")(label\[, snapshot\_type, num\_qubits, ...]) | Simulator snapshot instruction. |
## Exceptions
The additional gates in this module will tend to raise a custom exception when they encounter problems.
### ExtensionError
<Class id="qiskit.extensions.ExtensionError" github="https://github.com/qiskit/qiskit/tree/stable/0.45/qiskit/extensions/exceptions.py" signature="qiskit.extensions.ExtensionError(*message)" modifiers="exception">
Base class for errors raised by extensions module.
Set the error message.
<Admonition title="Deprecated since version 0.45.0_pending" type="danger">
The class `qiskit.extensions.exceptions.ExtensionError` is pending deprecation as of qiskit 0.45.0. It will be marked deprecated in a future release, and then removed no earlier than 3 months after the release date.
</Admonition>
</Class>