qiskit-documentation/docs/api/qiskit/0.43/qiskit.quantum_info.random_...

30 lines
967 B
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: random_cnotdihedral
description: API reference for qiskit.quantum_info.random_cnotdihedral
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.quantum_info.random_cnotdihedral
---
<span id="qiskit-quantum-info-random-cnotdihedral" />
# qiskit.quantum\_info.random\_cnotdihedral
<Function id="qiskit.quantum_info.random_cnotdihedral" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.24/qiskit/quantum_info/operators/dihedral/random.py" signature="random_cnotdihedral(num_qubits, seed=None)">
Return a random CNOTDihedral element.
**Parameters**
* **num\_qubits** (*int*) the number of qubits for the CNOTDihedral object.
* **seed** (*int or RandomState*) Optional. Set a fixed seed or generator for RNG.
**Returns**
a random CNOTDihedral element.
**Return type**
[CNOTDihedral](qiskit.quantum_info.CNOTDihedral "qiskit.quantum_info.CNOTDihedral")
</Function>