Qubit Math: Partitioning Phi into BetaA and BetaB

  • Context: Graduate 
  • Thread starter Thread starter Elroy
  • Start date Start date
  • Tags Tags
    Phi Qubit
Click For Summary

Discussion Overview

The discussion revolves around the mathematical partitioning of the quantum state representation of qubits, specifically focusing on how to express the components BetaA and BetaB in terms of the angles Theta and Phi. The context includes programming a quantum computer emulator and exploring the relationships between these parameters in the polar coordinate representation of qubits.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • Elroy discusses the need to partition Phi into BetaA (real part) and BetaB (imaginary part) while ensuring that the sum of the squares of Alpha and Beta equals one.
  • Elroy proposes initial equations for Alpha, BetaA, and BetaB based on polar coordinates but encounters difficulties when Phi is not a multiple of 45 degrees.
  • Elroy later realizes that the Euler relation can be applied, leading to a new formulation for Beta in terms of cos(φ) and sin(φ), which he believes will resolve his issues.
  • Naima suggests using Cartesian coordinates and Pauli matrices to derive Beta, providing an alternative method that remains valid within the Bloch sphere framework.
  • Elroy confirms that the new method using the Euler relation works effectively for his implementation, providing specific equations for BetaA and BetaB.

Areas of Agreement / Disagreement

Participants do not reach a consensus on a single method for partitioning BetaA and BetaB, as multiple approaches are discussed, including Elroy's initial method and Naima's suggestion involving Pauli matrices.

Contextual Notes

The discussion includes assumptions about the angles Theta and Phi and their relationship to the qubit representation, but these assumptions are not fully explored or resolved. There are also references to mixed states without detailed examination of their implications.

Who May Find This Useful

This discussion may be useful for individuals interested in quantum computing, particularly those exploring qubit representations and mathematical formulations related to quantum states.

Elroy
Messages
42
Reaction score
9
Hi All,

I'm gradually teaching myself quantum computing, being an excellent programmer and fair at linear algebra and geometry.

To learn it, I'm writing a quantum computer emulator (complete with graphical representations). I'll share it when I get to some level of completion. The following is a screenshot of one piece of the program:
qubit.jpg


But here's why I'm posting. I'm struggling somewhat with the math needed to partition Phi into BetaA (real part) and BetaB (imaginary part). I'm trying to write a function with input of Theta and Phi (polar coordinates for qubit), and have it output Alpha, BetaA, and BetaB. As we know...
|Alpha|2 + |Beta|2 must = 1
...or, recognizing that Alpha doesn't need an imaginary part, we can simplify to...
Alpha2 + |Beta|2 = 1

...and Alpha is fairly easy to get from Theta. It's...

Temp1 = (Cos(Theta) + 1) / 2
Alpha = Sqrt(Temp1)

...so, since Temp1 is still squared, we can say that...
Temp2 = 1 - Temp1
...and then...
|Beta|2 must = Temp2

However, now that Temp2 part must be partitioned between BetaA (the real part) and BetaB (the imaginary part). That's where I'm a bit stuck. To simplify things further, let's just stick with the first quadrant of the Phi Argand plane (the XY qubit plane). I can easily sort out the signs once I get past the BetaA and BetaB partitioning.

I can get VERY close just treating it as a linear relationship (before sqrt) to Phi, as follows (using Temp2 from above)...

BetaA = Sqrt(Temp2 * (1 - Phi / (PI/2)))
BetaB = Sqrt(Temp2 - BetaA2)

In fact, this works perfectly when Phi=0, Phi=PI/4, and Phi=PI/2.

However, it's not quite right when Phi isn't on a multiple of 45 degrees.

Some help with this BetaA and BetaB partitioning of Phi would be much appreciated.
Also, if anything isn't clear, please don't hesitate to ask, and I'll attempt to be more clear.

Regards,
Elroy

p.s. Just FYI, being the old curmudgeon that I am, this certainly isn't homework. With my PhD, I've been to school quite enough. :p
 
Physics news on Phys.org
Hmmm, well, I think I figured it out on my own.

I was just missing the Euler relation...

e = cos(φ) + i⋅sin(φ)

...which leads to...

β = cos(φ)sin(θ/2) + i⋅sin(φ)sin(θ/2)

...and also recognizing that, from my prior post...

sin(θ/2)2 = Temp2

Therefore, cos(φ) and sin(φ) would seem to provide the partitioning I'm looking for. I've yet to try it but I have high hopes. My eyelids are heavy so it'll be tomorrow before I actually code it up.
 
The easiest way to find ##\beta = A+iB## is to use the cartesian coordinates of your vector and the Pauli matrices.
You have ##\rho = ( \alpha |0> + \beta |1>)(\overline \alpha <0| + \overline \beta <1|) = (Id + x \sigma_x + y\sigma_y + z\sigma_z )/2##
so ##\alpha^2 = (1+z)/2##
and ##\alpha \beta = A + iB = (x + iy)2##

This method is also valid inside the Bloch sphere.
the center of the sphere gives you the equiprobable mixture (|0><0| + |1><1|)2
 
Thanks Naima,

I've implemented the β = cos(φ)sin(θ/2) + i⋅sin(φ)sin(θ/2) method and it seems to be working perfectly:
BetaA = cos(φ)sin(θ/2)
BetaB = sin(φ)sin(θ/2)

However, it's good to know how to handle qubits that might happen to be in mixed states.

Regards,
Elroy
 

Similar threads

Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 26 ·
Replies
26
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 0 ·
Replies
0
Views
1K