Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions docs/src/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -598,10 +598,6 @@ passive_state

## [Pauli](@id API: Pauli)

```@docs
PauliBasis
```

```@docs
PauliTransferMatrix
```
Expand Down Expand Up @@ -640,4 +636,4 @@ lazytensor_cachesize

```@docs
lazytensor_clear_cache
```
```
3 changes: 1 addition & 2 deletions test/test_metrics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ rho_mix = DenseOperator(rho_ent.basis_l, diagm(ComplexF64[1.0,1.0,1.0,1.0]))
@test_throws ArgumentError entanglement_entropy(rho_mix, (1,2))
@test_throws ArgumentError entanglement_entropy(rho_mix, 3)

q2 = PauliBasis(2)
CNOT = DenseOperator(q2, q2, diagm(0 => [1,1,0,0], 1 => [0,0,1], -1 => [0,0,1]))
CNOT = dm(spinup(b1))identityoperator(b1) + dm(spindown(b1))sigmax(b1)
CNOT_sop = SuperOperator(CNOT)
CNOT_chi = ChiMatrix(CNOT)
CNOT_ptm = PauliTransferMatrix(CNOT)
Expand Down
7 changes: 3 additions & 4 deletions test/test_pauli.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ using QuantumOpticsBase

@testset "pauli" begin

@test_throws MethodError PauliBasis(1.4)

b = SpinBasis(1//2)
# Test conversion of unitary matrices to superoperators.
q2 = PauliBasis(2)
q3 = PauliBasis(3)
q2 = b^2
q3 = b^3
Comment on lines +8 to +11
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PauliBasis is just being renamed, not completely removed, right? There is still value to having a convenient way to represent multi-qubit basis. This probably should just use the new name. Same for the other changes.

CZ = DenseOperator(q2, q2, diagm(0 => [1,1,1,-1]))
CZ_sop = SuperOperator(CZ)

Expand Down
Loading