28 lines
912 B
Plaintext
28 lines
912 B
Plaintext
---
|
||
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
|
||
---
|
||
|
||
# qiskit.quantum\_info.random\_cnotdihedral
|
||
|
||
<Function id="qiskit.quantum_info.random_cnotdihedral" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.21/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>
|
||
|