Skip to content

Commit

Permalink
lower atol in qsd
Browse files Browse the repository at this point in the history
  • Loading branch information
NoureldinYosri committed Oct 14, 2024
1 parent 9ff9b6b commit c6fc04d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,15 +231,15 @@ def _msb_demuxer(
# Last term is given by ( I ⊗ W ), demultiplexed
# Remove most-significant (demuxed) control-qubit
# Yield operations for QSD on W
yield from quantum_shannon_decomposition(demux_qubits[1:], W, atol=1e-6)
yield from quantum_shannon_decomposition(demux_qubits[1:], W, atol=1e-5)

# Use complex phase of d_i to give theta_i (so d_i* gives -theta_i)
# Observe that middle part looks like Σ_i( Rz(theta_i)⊗|i><i| )
# Yield ops from multiplexed Rz part
yield from _multiplexed_cossin(demux_qubits, -np.angle(d), ops.rz)

# Yield operations for QSD on V
yield from quantum_shannon_decomposition(demux_qubits[1:], V, atol=1e-6)
yield from quantum_shannon_decomposition(demux_qubits[1:], V, atol=1e-5)


def _nth_gray(n: int) -> int:
Expand Down

0 comments on commit c6fc04d

Please sign in to comment.