Skip to content

Commit

Permalink
Updated QuantumLinearSolve documentation
Browse files Browse the repository at this point in the history
Added detailed explanation of the implementation
  • Loading branch information
sebrodfal committed Sep 9, 2024
1 parent a486561 commit f858c19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Git LFS file not shown
6 changes: 3 additions & 3 deletions QuantumFramework/Kernel/ExampleRepository.m
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@

multiplexer=QuantumCircuitOperator["Multiplexer"[Sequence@@Keys[pauliDecompose]]];

ancillary=QuantumState[Sqrt@Values[pauliDecompose]];
ancillary=QuantumState[Sqrt@Values[pauliDecompose],"Label"->"\!\(\*SqrtBox[\(m\)]\)"];

ansatzqubits=Range[ancillary["Qudits"]+1,multiplexer["Range"]];

Expand Down Expand Up @@ -435,11 +435,11 @@
If[complexQ,
\[Omega] = Table[Unique[\[FormalOmega]],{i,2*plength}];
(*If b is complex, then the QuantumState ansatz is the form of \[Sum]Subscript[\[Alpha], j]+Subscript[I\[Beta], j]|0\[Ellipsis]\[RightAngleBracket])*)
Ansatz = QuantumState[(#[[1]]+#[[2]]I)&@Partition[\[Omega],Length[\[Omega]]/2],"Label"->"\!\(\*OverscriptBox[\(x\), \(^\)]\)(\[Omega])","Parameters"->\[Omega]]
Ansatz = QuantumState[(#[[1]]+#[[2]]I)&@Partition[\[Omega],Length[\[Omega]]/2],"Label"->"Ansatz","Parameters"->\[Omega]]
,
\[Omega] = Table[Unique[\[FormalOmega]],{i,plength}];
(*If b is real, then the QuantumState ansatz is the form of \[Sum]Subscript[\[Alpha], j]|0\[Ellipsis]\[RightAngleBracket])*)
Ansatz = QuantumState[\[Omega],"Label"->"\!\(\*OverscriptBox[\(x\), \(^\)]\)(\[Omega])","Parameters"->\[Omega]]
Ansatz = QuantumState[\[Omega],"Label"->"Ansatz","Parameters"->\[Omega]]
];

,
Expand Down

0 comments on commit f858c19

Please sign in to comment.