OnesState¶
- class OnesState[source]¶
Bases:
InitialStateAll-ones state |11…1⟩ via PauliX on every qubit.
Methods Summary
build(wires)Return a state-preparation circuit on
len(wires)qubits.Methods Documentation
- build(wires)[source]¶
Return a state-preparation circuit on
len(wires)qubits.- Parameters:
wires (
Sequence) – Ordered sequence of wire labels (qubiti↔wires[i]). May contain non-integer labels (e.g. graph node names); only the length and ordering matter for circuit emission.- Return type:
- Returns:
A
QuantumCircuitwithlen(wires)qubits.