You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a line between two quantum states or operators on the Bloch sphere visualization.
374
+
375
+
# Arguments
376
+
377
+
- `b::Bloch`: The Bloch sphere object to modify.
378
+
- `start::QuantumObject`: The starting quantum state or operator. Can be a `Ket`, `Bra`, or `Operator`.
379
+
- `endp::QuantumObject`: The ending quantum state or operator. Can be a `Ket`, `Bra`, or `Operator`.
380
+
- `fmt::String="k"`: (optional) A format string specifying the line style and color (default is black `"k"`).
381
+
- `kwargs...`: Additional keyword arguments forwarded to the underlying line drawing function.
382
+
383
+
# Description
384
+
385
+
This function converts the given quantum objects (states or operators) into their Bloch vector representations and adds a line between these two points on the Bloch sphere visualization.
0 commit comments