Calculate quaternion rotations between two values

I have a quaternion Q1:
X: -0.023995593190193176
Y: -0.4076451063156128
Z: 0.04357096180319786
W: 0.9117847681045532

and I have a keyframe value Q2:
X: 0.176469
Y: -0.368251
Z: 0.479782
W: 0.776569

Now my question is how can I get the correct keyframe values if there would be no extra start values ? I mean if Q1 is 1,0,0,0 (w,x,y,z). (no extra start values) So basically I need to rotate my object to the same pose but from the default values (1,0,0,0) start not from Q1.

Are you looking for this?
https://docs.blender.org/api/2.79/mathutils.html#mathutils.Quaternion.rotation_difference

I guess not because I got incorrect values. The new Q2 X value should be 0.
EDIT

Sorry I misslooked something and that function is exactly what I am looking for, so thank you :smiley: