26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
Plaintext
---
|
||
title: random_bitwise_xor (dev version)
|
||
description: API reference for qiskit.circuit.library.random_bitwise_xor in the dev version of qiskit
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: function
|
||
python_api_name: qiskit.circuit.library.random_bitwise_xor
|
||
---
|
||
|
||
<span id="qiskit-circuit-library-random-bitwise-xor" />
|
||
|
||
# qiskit.circuit.library.random\_bitwise\_xor
|
||
|
||
<Function id="qiskit.circuit.library.random_bitwise_xor" isDedicatedPage={true} github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/library/boolean_logic/quantum_xor.py#L156-L167" signature="qiskit.circuit.library.random_bitwise_xor(num_qubits, seed)">
|
||
Create a random BitwiseXorGate.
|
||
|
||
**Parameters**
|
||
|
||
* **num\_qubits** ([*int*](https://docs.python.org/3/library/functions.html#int "(in Python v3.13)")) – the width of circuit.
|
||
* **seed** ([*int*](https://docs.python.org/3/library/functions.html#int "(in Python v3.13)")) – random seed in case a random xor is requested.
|
||
|
||
**Return type**
|
||
|
||
[*BitwiseXorGate*](qiskit.circuit.library.BitwiseXorGate "qiskit.circuit.library.boolean_logic.quantum_xor.BitwiseXorGate")
|
||
</Function>
|
||
|