qiskit-documentation/docs/api/qiskit/qiskit.circuit.library.rand...

28 lines
1.1 KiB
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_bitwise_xor (latest version)
description: API reference for qiskit.circuit.library.random_bitwise_xor in the latest version of qiskit
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.circuit.library.random_bitwise_xor
---
<span id="random-bitwise-xor" />
# random\_bitwise\_xor
<Class id="qiskit.circuit.library.random_bitwise_xor" isDedicatedPage={true} github="https://github.com/Qiskit/qiskit/tree/stable/1.3/qiskit/circuit/library/boolean_logic/quantum_xor.py#L156-L167" signature="qiskit.circuit.library.random_bitwise_xor(num_qubits, seed)" modifiers="class">
Bases:
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")
</Class>